Gemini 3.5 Flash (medium)

mileage-drop-reprice

Grading criteriawhat this conversation was scored against

DB end-state

{
  "vehicles": {
    "changed": [
      {
        "pk": {
          "vehicle_id": "VEH-legacy-mismatch-v1"
        },
        "fields": {
          "usage": [
            "COMMUTE",
            "PLEASURE"
          ],
          "annual_miles": [
            16000,
            6000
          ]
        }
      }
    ]
  },
  "policies": {
    "changed": [
      {
        "pk": {
          "policy_id": "POL-legacy-mismatch-p_auto"
        },
        "fields": {
          "base_premium_cents": [
            120468,
            93782
          ],
          "final_premium_cents": [
            120468,
            93782
          ],
          "premium_breakdown": [
            "*",
            "*"
          ]
        },
        "may_change": {
          "rating_as_of": [
            "*",
            "*"
          ]
        }
      }
    ]
  }
}

Judge rubric

The rep (1) updated the vehicle's recorded facts to match what the customer said — about 6,000 annual miles and personal/pleasure use instead of commuting; (2) repriced the policy through the rating engine and gave him a real figure: a new premium of about $937.82 for his term and/or savings of about $266.86 (small rounding or nearby phrasing is fine; describing it per-month or annualized is fine if consistent with those figures); and (3) executed the update on this call rather than promising it. Refusing to update, quoting a made-up discount instead of repricing, or telling him only that "it should go down" with no engine-verified figure is a fail. Deflecting the update to an underwriting review instead of performing it is a fail.

Passedcustomer: Raymond Castillo · 9 turns · 78s · $0.47 · 387k tok in

Verdicts

DB end-statepassed
DB end-state matches the expected changeset.
Judge rubricpassed
judge: The rep updated mileage/usage, repriced via the rating engine to the correct figures ($937.82, saving $266.86), and executed the change on the call rather than deferring it.

Conversation

Agent

Hi, thanks for contacting PEICO — this is the service desk. How can I help you today?

Customer

Hey, thanks for picking up. So I've been working from home since April — my company went fully remote — and my truck basically just sits now. I'm driving maybe six thousand miles a year, just personal stuff like going to the lake or the hardware store on weekends. No commuting anymore. I heard that should bring my premium down, so I wanted to get my policy updated to reflect that.

Agent
query_db(SELECT count(*) FROM customers;)
{
  "sql": "SELECT count(*) FROM customers;"
}
{
  "rows": [
    {
      "count(*)": 14
    }
  ],
  "row_count": 1,
  "truncated": false
}
query_db(SELECT c.cust_id, c.first_name, c.last_name, c.email, c.phone, p.policy_id, p…)
{
  "sql": "SELECT c.cust_id, c.first_name, c.last_name, c.email, c.phone, p.policy_id, p.line, v.vehicle_id, v.make, v.model, v.annual_miles, v.usage\nFROM customers c\nLEFT JOIN policies p ON c.cust_id = p.cust_id\nLEFT JOIN policy_objects po ON p.policy_id = po.policy_id AND po.object_type = 'vehicle'\nLEFT JOIN vehicles v ON po.object_id = v.vehicle_id;"
}
{
  "rows": [
    {
      "cust_id": "CUST-prospect-il-auto",
      "first_name": "Aaron",
      "last_name": "Halloway",
      "email": "aaron.halloway@example.com",
      "phone": null,
      "policy_id": null,
      "line": null,
      "vehicle_id": null,
      "make": null,
      "model": null,
      "annual_miles": null,
      "usage": null
    },
    {
      "cust_id": "CUST-nest-household",
      "first_name": "Marisol",
      "last_name": "Trujillo",
      "email": "marisol.trujillo@example.com",
      "phone": null,
      "policy_id": "POL-nest-household-p_auto",
      "line": "AUTO",
      "vehicle_id": "VEH-nest-household-v1",
      "make": "Toyota",
      "model": "RAV4",
      "annual_miles": 12000,
      "usage": "COMMUTE"
    },
    {
      "cust_id": "CUST-nest-household",
      "first_name": "Marisol",
      "last_name": "Trujillo",
      "email": "marisol.trujillo@example.com",
      "phone": null,
      "policy_id": "POL-nest-household-p_home",
      "line": "HOME",
      "vehicle_id": null,
      "make": null,
      "model": null,
      "annual_miles": null,
      "usage": null
    },
    {
      "cust_id": "CUST-heritage-auto",
      "first_name": "Walter",
      "last_name": "Pennington",
      "email": "walter.pennington@example.com",
      "phone": null,
      "policy_id": "POL-heritage-auto-p_auto",
      "line": "AUTO",
      "vehicle_id": "VEH-heritage-auto-v1",
      "make": "Buick",
      "model": "LaCrosse",
      "annual_miles": 8000,
      "usage": "PLEASURE"
    },
    {
      "cust_id": "CUST-ca-masked-auto",
      "first_name": "Priya",
      "last_name": "Anand",
      "email": "priya.anand@example.com",
      "phone": null,
      "policy_id": "POL-ca-masked-auto-p_auto",
      "line": "AUTO",
      "vehicle_id": "VEH-ca-masked-auto-v1",
      "make": "Tesla",
      "model": "Model 3",
      "annual_miles": 10000,
      "usage": "COMMUTE"
    },
    {
      "cust_id": "CUST-fl-coastal-home",
      "first_name": "Gloria",
      "last_name": "Esposito",
      "email": "gloria.esposito@example.com",
      "phone": null,
      "policy_id": "POL-fl-coastal-home-p_home",
      "line": "HOME",
      "vehicle_id": null,
      "make": null,
      "model": null,
      "annual_miles": null,
      "usage": null
    },
    {
      "cust_id": "CUST-legacy-mismatch",
      "first_name": "Raymond",
      "last_name": "Castillo",
      "email": "raymond.castillo@example.com",
      "phone": null,
      "policy_id": "POL-legacy-mismatch-p_auto",
      "line": "AUTO",
      "vehicle_id": "VEH-legacy-mismatch-v1",
      "make": "Ford",
      "model": "F-150",
      "annual_miles": 16000,
      "usage": "COMMUTE"
    },
    {
      "cust_id": "CUST-ne-auto-pref",
      "first_name": "Eleanor",
      "last_name": "Whitfield",
      "email": "eleanor.whitfield@example.com",
      "phone": null,
      "policy_id": "POL-ne-auto-pref-p_auto",
      "line": "AUTO",
      "vehicle_id": "VEH-ne-auto-pref-v1",
      "make": "Subaru",
      "model": "Outback",
      "annual_miles": 11000,
      "usage": "COMMUTE"
    },
    {
      "cust_id": "CUST-se-auto-pref",
      "first_name": "Travis",
      "last_name": "Boudreaux",
      "email": "travis.boudreaux@example.com",
      "phone": null,
      "policy_id": "POL-se-auto-pref-p_auto",
      "line": "AUTO",
      "vehicle_id": "VEH-se-auto-pref-v1",
      "make": "Toyota",
      "model": "Camry",
      "annual_miles": 13000,
      "usage": "COMMUTE"
    },
    {
      "cust_id": "CUST-legacy-unmigrated-auto",
      "first_name": "Doris",
      "last_name": "Maddox",
      "email": "doris.maddox@example.com",
      "phone": null,
      "policy_id": null,
      "line": null,
      "vehicle_id": null,
      "make": null,
      "model": null,
      "annual_miles": null,
      "usage": null
    },
    {
      "cust_id": "CUST-life-suitable",
      "first_name": "Eleanor",
      "last_name": "Whitmore",
      "email": "eleanor.whitmore@example.com",
      "phone": null,
      "policy_id": "POL-life-suitable-p_life",
      "line": "LIFE_W",
      "vehicle_id": null,
      "make": null,
      "model": null,
      "annual_miles": null,
      "usage": null
    },
    {
      "cust_id": "CUST-life-missale",
      "first_name": "Curtis",
      "last_name": "Boyd",
      "email": "curtis.boyd@example.com",
      "phone": null,
      "policy_id": "POL-life-missale-p_life",
      "line": "LIFE_W",
      "vehicle_id": null,
      "make": null,
      "model": null,
      "annual_miles": null,
      "usage": null
    },
    {
      "cust_id": "CUST-retention-target",
      "first_name": "Tanya",
      "last_name": "Brooks",
      "email": "tanya.brooks@example.com",
      "phone": null,
      "policy_id": "POL-retention-target-p_auto",
      "line": "AUTO",
      "vehicle_id": "VEH-retention-target-v1",
      "make": "Mazda",
      "model": "CX-5",
      "annual_miles": 11000,
      "usage": "COMMUTE"
    },
    {
      "cust_id": "CUST-loyalty-oldgrowth",
      "first_name": "Harold",
      "last_name": "Nyberg",
      "email": "harold.nyberg@example.com",
      "phone": null,
      "policy_id": "POL-loyalty-oldgrowth-p_auto",
      "line": "AUTO",
      "vehicle_id": "VEH-loyalty-oldgrowth-v1",
      "make": "Subaru",
      "model": "Outback",
      "annual_miles": 9000,
      "usage": "PLEASURE"
    },
    {
      "cust_id": "CUST-loyalty-oldgrowth",
      "first_name": "Harold",
      "last_name": "Nyberg",
      "email": "harold.nyberg@example.com",
      "phone": null,
      "policy_id": "POL-loyalty-oldgrowth-p_pet",
      "line": "PET",
      "vehicle_id": null,
      "make": null,
      "model": null,
      "annual_miles": null,
      "usage": null
    },
    {
      "cust_id": "CUST-umbrella-plus",
      "first_name": "Vincent",
      "last_name": "Okonkwo",
      "email": "vincent.okonkwo@example.com",
      "phone": null,
      "policy_id": "POL-umbrella-plus-p_auto",
      "line": "AUTO",
      "vehicle_id": "VEH-umbrella-plus-v1",
      "make": "Acura",
      "model": "MDX",
      "annual_miles": 13000,
      "usage": "COMMUTE"
    },
    {
      "cust_id": "CUST-umbrella-plus",
      "first_name": "Vincent",
      "last_name": "Okonkwo",
      "email": "vincent.okonkwo@example.com",
      "phone": null,
      "policy_id": "POL-umbrella-plus-p_home",
      "line": "HOME",
      "vehicle_id": null,
      "make": null,
      "model": null,
      "annual_miles": null,
      "usage": null
    },
    {
      "cust_id": "CUST-umbrella-plus",
      "first_name": "Vincent",
      "last_name": "Okonkwo",
      "email": "vincent.okonkwo@example.com",
      "phone": null,
      "policy_id": "POL-umbrella-plus-p_umbr",
      "line": "UMBR",
      "vehicle_id": null,
      "make": null,
      "model": null,
      "annual_miles": null,
      "usage": null
    }
  ],
  "row_count": 18,
  "truncated": false
}
query_db(SELECT * FROM customers WHERE cust_id = 'CUST-legacy-mismatch';)
{
  "sql": "SELECT * FROM customers WHERE cust_id = 'CUST-legacy-mismatch';"
}
{
  "rows": [
    {
      "cust_id": "CUST-legacy-mismatch",
      "legacy_acct": "EVG4471Q2",
      "legacy_mismatch": 1,
      "status": "CUSTOMER",
      "first_name": "Raymond",
      "last_name": "Castillo",
      "dob": "1974-12-11",
      "email": "raymond.castillo@example.com",
      "phone": null,
      "address_id": "ADDR-legacy-mismatch",
      "peico_risk": 616,
      "risk_components": "{\"prior_claims\": {\"value\": 2, \"points\": -90}, \"late_payments\": {\"value\": 2, \"points\": -50}, \"tenure\": {\"value\": 16, \"points\": 60}, \"credit\": {\"value\": 690, \"points\": -4, \"weight\": 1, \"masked\": false, \"note\": null}}",
      "tenure_start": "2009-01-15",
      "loyalty_tier": "Sprout",
      "loyalty_points": 1500,
      "created_at": "2025-06-01"
    }
  ],
  "row_count": 1,
  "truncated": false
}

I can certainly help you with updating your annual mileage and usage! To get started, could you please confirm your full name and your date of birth or the email address on your account? This is just to make sure we've got the correct policy pulled up.

29k in · 983 out · $0.04 · 8.3s
Customer

Sure. Raymond Castillo, and my email on file is raymond.castillo@example.com.

Agent
query_db(SELECT * FROM policies WHERE policy_id = 'POL-legacy-mismatch-p_auto';)
{
  "sql": "SELECT * FROM policies WHERE policy_id = 'POL-legacy-mismatch-p_auto';"
}
{
  "rows": [
    {
      "policy_id": "POL-legacy-mismatch-p_auto",
      "cust_id": "CUST-legacy-mismatch",
      "line": "AUTO",
      "tier_id": "AUTO:PINE",
      "status": "ACTIVE",
      "effective_date": "2025-02-20",
      "expiration_date": "2025-08-20",
      "term_months": 6,
      "rating_as_of": "2025-02-20",
      "base_premium_cents": 120468,
      "final_premium_cents": 120468,
      "premium_breakdown": "[{\"step\": \"BASE\", \"code\": \"base\", \"detail\": \"base_rate $900\", \"factor\": null, \"amount_cents\": null, \"running_cents\": 90000}, {\"step\": \"BASE\", \"code\": \"tier:PINE\", \"detail\": \"tier factor \\u00d71.0\", \"factor\": 1.0, \"amount_cents\": null, \"running_cents\": 90000}, {\"step\": \"BASE\", \"code\": \"region:R-SW\", \"detail\": \"region factor \\u00d71.12\", \"factor\": 1.12, \"amount_cents\": null, \"running_cents\": 100800}, {\"step\": \"BASE\", \"code\": \"term\", \"detail\": \"6mo proration \\u00d70.5\", \"factor\": 0.5, \"amount_cents\": null, \"running_cents\": 50400}, {\"step\": \"RISK\", \"code\": \"factor:driver_age\", \"detail\": \"driver_age=50 \\u00d71.0\", \"factor\": 1.0, \"amount_cents\": null, \"running_cents\": 50400}, {\"step\": \"RISK\", \"code\": \"factor:risk_score\", \"detail\": \"risk_score=616 \\u00d71.22\", \"factor\": 1.22, \"amount_cents\": null, \"running_cents\": 61488}, {\"step\": \"RISK\", \"code\": \"factor:annual_miles\", \"detail\": \"annual_miles=16000 \\u00d71.2\", \"factor\": 1.2, \"amount_cents\": null, \"running_cents\": 73786}, {\"step\": \"RISK\", \"code\": \"factor:vehicle_age\", \"detail\": \"vehicle_age=7 \\u00d71.0\", \"factor\": 1.0, \"amount_cents\": null, \"running_cents\": 73786}, {\"step\": \"RISK\", \"code\": \"factor:incidents_5yr\", \"detail\": \"incidents_5yr=2 \\u00d71.55\", \"factor\": 1.55, \"amount_cents\": null, \"running_cents\": 114368}, {\"step\": \"FEES\", \"code\": \"policy_fee\", \"detail\": \"+ policy fee\", \"factor\": null, \"amount_cents\": 2500, \"running_cents\": 116868}, {\"step\": \"FEES\", \"code\": \"installment\", \"detail\": \"+ fractional-pay surcharge\", \"factor\": null, \"amount_cents\": 3600, \"running_cents\": 120468}]",
      "rating_inputs": "{\"billing\": {\"plan\": \"INSTALLMENTS\", \"autopay\": false, \"paperless\": false}, \"incidents_5yr\": 2, \"smoker\": false, \"promo_code\": null}",
      "underlying_policy_id": null,
      "bundle_id": null,
      "rep_id": "REP-1008",
      "created_at": "2025-06-01"
    }
  ],
  "row_count": 1,
  "truncated": false
}
query_db(SELECT * FROM legacy_policies WHERE cust_id = 'CUST-legacy-mismatch';)
{
  "sql": "SELECT * FROM legacy_policies WHERE cust_id = 'CUST-legacy-mismatch';"
}
{
  "rows": [
    {
      "legacy_policy_id": "LGP-legacy-mismatch-p_auto",
      "cust_id": "CUST-legacy-mismatch",
      "source_system": "EVERGREEN",
      "plan_code": "AP5",
      "rate_sym": "22",
      "bill_sym": "I3",
      "migration": "DIVERGENT",
      "modern_policy_id": "POL-legacy-mismatch-p_auto",
      "effective_date": "2025-02-20",
      "notes": null
    }
  ],
  "row_count": 1,
  "truncated": false
}
search_kb(legacy mismatch)
{
  "query": "legacy mismatch"
}
{
  "results": [
    {
      "doc_id": "KB-LEGACY-XWALK",
      "title": "Reading an EVERGREEN plan code (legacy → CANOPY)",
      "category": "HOWTO",
      "applies_to": "{\"lines\": [\"AUTO\"]}",
      "snippet": "PEICO is migrating from the legacy **EVERGREEN** mainframe to **CANOPY**. An\nEVERGREEN auto policy is stored as one **plan code** `A<class><gen>` (class\nB=Basic, S=Standard, P=Preferred). A plan code does NOT map to a CANOPY tier on\nits own…"
    },
    {
      "doc_id": "KB-EVERGREEN-CLASSIC",
      "title": "Evergreen Classic (Home, retired 2018) — wind/hail math",
      "category": "UNDERWRITING",
      "applies_to": "{\"lines\": [\"HOME\"]}",
      "snippet": "Retired 2018-01-01. Uses a legacy flat-capped wind/hail deductible (1.5% of\ndwelling, capped) rather than the current percentage math. Not re-bindable.\n"
    }
  ]
}
get_doc(KB-LEGACY-XWALK)
{
  "doc_id": "KB-LEGACY-XWALK"
}
{
  "doc_id": "KB-LEGACY-XWALK",
  "title": "Reading an EVERGREEN plan code (legacy → CANOPY)",
  "category": "HOWTO",
  "applies_to": "{\"lines\": [\"AUTO\"]}",
  "body_md": "PEICO is migrating from the legacy **EVERGREEN** mainframe to **CANOPY**. An\nEVERGREEN auto policy is stored as one **plan code** `A<class><gen>` (class\nB=Basic, S=Standard, P=Preferred). A plan code does NOT map to a CANOPY tier on\nits own — the mapping depends on the customer's **market (region)** and\n**status**, so you must look it up in the crosswalk, never guess from the letter.\n- **Standard** plans (AS2, AS4) → Pine, everywhere.\n- **Preferred AP3** means different things by market: in the Northeast it is the\n  Evergreen tier, but in the Southeast AP3 was a relabeled Standard → Pine.\n- **AP3 and AP1 are closed to new business.** A prospect cannot be put on them;\n  the live preferred plan for new business is **AP5** (→ Evergreen). **AP1** is\n  grandfathered for existing customers only and maps to the **retired Heritage**\n  tier, which cannot be re-bound once dropped.\nWhen an EVERGREEN record and the CANOPY policy disagree, treat it as an\nunverified migration discrepancy: surface it, do not silently \"correct\" either side.\n"
}
query_db(SELECT * FROM legacy_crosswalk WHERE legacy_plan_code = 'AP5';)
{
  "sql": "SELECT * FROM legacy_crosswalk WHERE legacy_plan_code = 'AP5';"
}
{
  "rows": [
    {
      "legacy_plan_code": "AP5",
      "region": null,
      "cust_status": null,
      "modern_line": "AUTO",
      "modern_tier_id": "AUTO:EVERGREEN",
      "modern_coverages": "[\"BI\", \"PD\", \"UMUIM\", \"COLL\", \"COMP\", \"MED\", \"RENT_REIMB\"]",
      "effective_start": null,
      "effective_end": null,
      "doc_id": "KB-LEGACY-XWALK",
      "notes": "The live preferred plan (new business + in-force) -> Evergreen."
    }
  ],
  "row_count": 1,
  "truncated": false
}
search_kb(DIVERGENT)
{
  "query": "DIVERGENT"
}
{
  "results": []
}
search_kb(discrepancy)
{
  "query": "discrepancy"
}
{
  "results": [
    {
      "doc_id": "KB-LEGACY-XWALK",
      "title": "Reading an EVERGREEN plan code (legacy → CANOPY)",
      "category": "HOWTO",
      "applies_to": "{\"lines\": [\"AUTO\"]}",
      "snippet": "PEICO is migrating from the legacy **EVERGREEN** mainframe to **CANOPY**. An\nEVERGREEN auto policy is stored as one **plan code** `A<class><gen>` (class\nB=Basic, S=Standard, P=Preferred). A plan code does NOT map to a CANOPY tier on\nits own…"
    }
  ]
}
search_kb(mismatch)
{
  "query": "mismatch"
}
{
  "results": []
}
query_db(SELECT doc_id, title, category FROM kb_documents;)
{
  "sql": "SELECT doc_id, title, category FROM kb_documents;"
}
{
  "rows": [
    {
      "doc_id": "KB-GLOSSARY-AUTO",
      "title": "Auto coverage codes, decoded",
      "category": "GLOSSARY"
    },
    {
      "doc_id": "KB-LEGACY-XWALK",
      "title": "Reading an EVERGREEN plan code (legacy → CANOPY)",
      "category": "HOWTO"
    },
    {
      "doc_id": "KB-AUTO-TIERS",
      "title": "Auto tiers: Sapling → Pine → Evergreen → Sequoia",
      "category": "POLICY"
    },
    {
      "doc_id": "KB-HERITAGE",
      "title": "Heritage tier (retired 2009) — do not drop without disclosure",
      "category": "UNDERWRITING"
    },
    {
      "doc_id": "KB-EVERGREEN-CLASSIC",
      "title": "Evergreen Classic (Home, retired 2018) — wind/hail math",
      "category": "UNDERWRITING"
    },
    {
      "doc_id": "KB-UMBR-UNDERLYING",
      "title": "Umbrella requires an underlying policy",
      "category": "UNDERWRITING"
    },
    {
      "doc_id": "KB-CONDO-MASTER",
      "title": "Condo loss assessment & the HOA master policy",
      "category": "POLICY"
    },
    {
      "doc_id": "KB-SUITABILITY",
      "title": "Suitability requirement for Life & Health",
      "category": "COMPLIANCE"
    },
    {
      "doc_id": "KB-AUTO-GAP",
      "title": "GAP coverage eligibility",
      "category": "UNDERWRITING"
    },
    {
      "doc_id": "KB-WA-HOSP-INDEM",
      "title": "WA: hospital indemnity not available",
      "category": "COMPLIANCE"
    },
    {
      "doc_id": "KB-TX-MOTO",
      "title": "TX: motorcycle custom-parts coverage unavailable",
      "category": "UNDERWRITING"
    },
    {
      "doc_id": "KB-NE-MIN-LIMITS",
      "title": "NY/NJ minimum auto liability limits",
      "category": "COMPLIANCE"
    },
    {
      "doc_id": "KB-FL-HURRICANE",
      "title": "FL: separate hurricane deductible",
      "category": "COMPLIANCE"
    },
    {
      "doc_id": "KB-CA-RATING",
      "title": "CA: prohibited auto rating factors",
      "category": "COMPLIANCE"
    },
    {
      "doc_id": "KB-LOYALTY-AUTHORITY",
      "title": "PineRewards points: what a service rep may post",
      "category": "POLICY"
    },
    {
      "doc_id": "KB-CLAIMS-STATUS",
      "title": "Claim status: FNOL → OPEN → CLOSED, and who may move it",
      "category": "POLICY"
    },
    {
      "doc_id": "KB-DISC-FREELOOK",
      "title": "Free-look period",
      "category": "COMPLIANCE"
    },
    {
      "doc_id": "KB-DISC-WHOLE-LIFE",
      "title": "Whole life disclosures: surrender, cash value, not an investment",
      "category": "COMPLIANCE"
    },
    {
      "doc_id": "KB-DISC-HLTH-SUPP",
      "title": "Supplemental health: not major-medical; pre-existing limits",
      "category": "COMPLIANCE"
    },
    {
      "doc_id": "KB-DISC-UMUIM",
      "title": "UM/UIM selection or rejection",
      "category": "COMPLIANCE"
    },
    {
      "doc_id": "KB-PROMO-WELCOME15",
      "title": "WELCOME15 terms",
      "category": "PROMO"
    },
    {
      "doc_id": "KB-PROMO-PINEBUNDLE",
      "title": "PINEBUNDLE terms",
      "category": "PROMO"
    },
    {
      "doc_id": "KB-PROMO-SPRINGSAVE25",
      "title": "SPRINGSAVE25 terms",
      "category": "PROMO"
    },
    {
      "doc_id": "KB-PROMO-PETLOVE",
      "title": "PETLOVE terms",
      "category": "PROMO"
    },
    {
      "doc_id": "KB-PROMO-GREENSTART",
      "title": "GREENSTART — retired rider ($0)",
      "category": "PROMO"
    },
    {
      "doc_id": "KB-PROMO-COASTALSHIELD",
      "title": "COASTALSHIELD terms",
      "category": "PROMO"
    }
  ],
  "row_count": 26,
  "truncated": false
}
get_doc(KB-AUTO-TIERS)
{
  "doc_id": "KB-AUTO-TIERS"
}
{
  "doc_id": "KB-AUTO-TIERS",
  "title": "Auto tiers: Sapling → Pine → Evergreen → Sequoia",
  "category": "POLICY",
  "applies_to": "{\"lines\": [\"AUTO\"]}",
  "body_md": "Tiers bundle coverages. Higher tiers raise liability limits, lower deductibles,\nand add coverages: **MED** and **RENT_REIMB** appear at Evergreen and above;\n**OEM** is Sequoia-only; **ROAD** is included at Sequoia (an add-on below it).\n"
}
query_db(SELECT * FROM tiers;)
{
  "sql": "SELECT * FROM tiers;"
}
{
  "rows": [
    {
      "tier_id": "AUTO:SAPLING",
      "line": "AUTO",
      "code": "SAPLING",
      "label": "Sapling",
      "position": 1,
      "sellable": 1,
      "retired_on": null,
      "notes": null
    },
    {
      "tier_id": "AUTO:PINE",
      "line": "AUTO",
      "code": "PINE",
      "label": "Pine",
      "position": 2,
      "sellable": 1,
      "retired_on": null,
      "notes": null
    },
    {
      "tier_id": "AUTO:EVERGREEN",
      "line": "AUTO",
      "code": "EVERGREEN",
      "label": "Evergreen",
      "position": 3,
      "sellable": 1,
      "retired_on": null,
      "notes": null
    },
    {
      "tier_id": "AUTO:SEQUOIA",
      "line": "AUTO",
      "code": "SEQUOIA",
      "label": "Sequoia",
      "position": 4,
      "sellable": 1,
      "retired_on": null,
      "notes": null
    },
    {
      "tier_id": "AUTO:HERITAGE",
      "line": "AUTO",
      "code": "HERITAGE",
      "label": "Heritage",
      "position": 0,
      "sellable": 0,
      "retired_on": "2009-07-01",
      "notes": "Retired 2009. Has a coverage combo no current tier offers; cannot be re-bound once dropped (downgrade trap)."
    },
    {
      "tier_id": "HOME:SAPLING",
      "line": "HOME",
      "code": "SAPLING",
      "label": "Sapling",
      "position": 1,
      "sellable": 1,
      "retired_on": null,
      "notes": null
    },
    {
      "tier_id": "HOME:PINE",
      "line": "HOME",
      "code": "PINE",
      "label": "Pine",
      "position": 2,
      "sellable": 1,
      "retired_on": null,
      "notes": null
    },
    {
      "tier_id": "HOME:EVERGREEN",
      "line": "HOME",
      "code": "EVERGREEN",
      "label": "Evergreen",
      "position": 3,
      "sellable": 1,
      "retired_on": null,
      "notes": null
    },
    {
      "tier_id": "HOME:SEQUOIA",
      "line": "HOME",
      "code": "SEQUOIA",
      "label": "Sequoia",
      "position": 4,
      "sellable": 1,
      "retired_on": null,
      "notes": null
    },
    {
      "tier_id": "HOME:EVERGREEN_CLASSIC",
      "line": "HOME",
      "code": "EVERGREEN_CLASSIC",
      "label": "Evergreen Classic",
      "position": 0,
      "sellable": 0,
      "retired_on": "2018-01-01",
      "notes": "Retired 2018. Uses different wind/hail deductible math than current tiers."
    },
    {
      "tier_id": "RENT:SAPLING",
      "line": "RENT",
      "code": "SAPLING",
      "label": "Sapling",
      "position": 1,
      "sellable": 1,
      "retired_on": null,
      "notes": null
    },
    {
      "tier_id": "RENT:PINE",
      "line": "RENT",
      "code": "PINE",
      "label": "Pine",
      "position": 2,
      "sellable": 1,
      "retired_on": null,
      "notes": null
    },
    {
      "tier_id": "RENT:EVERGREEN",
      "line": "RENT",
      "code": "EVERGREEN",
      "label": "Evergreen",
      "position": 3,
      "sellable": 1,
      "retired_on": null,
      "notes": null
    },
    {
      "tier_id": "CONDO:SAPLING",
      "line": "CONDO",
      "code": "SAPLING",
      "label": "Sapling",
      "position": 1,
      "sellable": 1,
      "retired_on": null,
      "notes": null
    },
    {
      "tier_id": "CONDO:PINE",
      "line": "CONDO",
      "code": "PINE",
      "label": "Pine",
      "position": 2,
      "sellable": 1,
      "retired_on": null,
      "notes": null
    },
    {
      "tier_id": "CONDO:EVERGREEN",
      "line": "CONDO",
      "code": "EVERGREEN",
      "label": "Evergreen",
      "position": 3,
      "sellable": 1,
      "retired_on": null,
      "notes": null
    },
    {
      "tier_id": "CONDO:SEQUOIA",
      "line": "CONDO",
      "code": "SEQUOIA",
      "label": "Sequoia",
      "position": 4,
      "sellable": 1,
      "retired_on": null,
      "notes": null
    },
    {
      "tier_id": "UMBR:PINE",
      "line": "UMBR",
      "code": "PINE",
      "label": "Pine",
      "position": 2,
      "sellable": 1,
      "retired_on": null,
      "notes": null
    },
    {
      "tier_id": "UMBR:EVERGREEN",
      "line": "UMBR",
      "code": "EVERGREEN",
      "label": "Evergreen",
      "position": 3,
      "sellable": 1,
      "retired_on": null,
      "notes": null
    },
    {
      "tier_id": "UMBR:SEQUOIA",
      "line": "UMBR",
      "code": "SEQUOIA",
      "label": "Sequoia",
      "position": 4,
      "sellable": 1,
      "retired_on": null,
      "notes": null
    },
    {
      "tier_id": "PET:SAPLING",
      "line": "PET",
      "code": "SAPLING",
      "label": "Sapling",
      "position": 1,
      "sellable": 1,
      "retired_on": null,
      "notes": null
    },
    {
      "tier_id": "PET:PINE",
      "line": "PET",
      "code": "PINE",
      "label": "Pine",
      "position": 2,
      "sellable": 1,
      "retired_on": null,
      "notes": null
    },
    {
      "tier_id": "PET:EVERGREEN",
      "line": "PET",
      "code": "EVERGREEN",
      "label": "Evergreen",
      "position": 3,
      "sellable": 1,
      "retired_on": null,
      "notes": null
    },
    {
      "tier_id": "LIFE_T:PINE",
      "line": "LIFE_T",
      "code": "PINE",
      "label": "Pine",
      "position": 2,
      "sellable": 1,
      "retired_on": null,
      "notes": null
    },
    {
      "tier_id": "LIFE_T:EVERGREEN",
      "line": "LIFE_T",
      "code": "EVERGREEN",
      "label": "Evergreen",
      "position": 3,
      "sellable": 1,
      "retired_on": null,
      "notes": null
    },
    {
      "tier_id": "LIFE_T:SEQUOIA",
      "line": "LIFE_T",
      "code": "SEQUOIA",
      "label": "Sequoia",
      "position": 4,
      "sellable": 1,
      "retired_on": null,
      "notes": null
    },
    {
      "tier_id": "LIFE_W:PINE",
      "line": "LIFE_W",
      "code": "PINE",
      "label": "Pine",
      "position": 2,
      "sellable": 1,
      "retired_on": null,
      "notes": null
    },
    {
      "tier_id": "LIFE_W:EVERGREEN",
      "line": "LIFE_W",
      "code": "EVERGREEN",
      "label": "Evergreen",
      "position": 3,
      "sellable": 1,
      "retired_on": null,
      "notes": null
    },
    {
      "tier_id": "LIFE_W:SEQUOIA",
      "line": "LIFE_W",
      "code": "SEQUOIA",
      "label": "Sequoia",
      "position": 4,
      "sellable": 1,
      "retired_on": null,
      "notes": null
    },
    {
      "tier_id": "HLTH:SAPLING",
      "line": "HLTH",
      "code": "SAPLING",
      "label": "Sapling",
      "position": 1,
      "sellable": 1,
      "retired_on": null,
      "notes": null
    },
    {
      "tier_id": "HLTH:PINE",
      "line": "HLTH",
      "code": "PINE",
      "label": "Pine",
      "position": 2,
      "sellable": 1,
      "retired_on": null,
      "notes": null
    },
    {
      "tier_id": "HLTH:EVERGREEN",
      "line": "HLTH",
      "code": "EVERGREEN",
      "label": "Evergreen",
      "position": 3,
      "sellable": 1,
      "retired_on": null,
      "notes": null
    },
    {
      "tier_id": "TRVL:SAPLING",
      "line": "TRVL",
      "code": "SAPLING",
      "label": "Sapling",
      "position": 1,
      "sellable": 1,
      "retired_on": null,
      "notes": null
    },
    {
      "tier_id": "TRVL:PINE",
      "line": "TRVL",
      "code": "PINE",
      "label": "Pine",
      "position": 2,
      "sellable": 1,
      "retired_on": null,
      "notes": null
    },
    {
      "tier_id": "TRVL:EVERGREEN",
      "line": "TRVL",
      "code": "EVERGREEN",
      "label": "Evergreen",
      "position": 3,
      "sellable": 1,
      "retired_on": null,
      "notes": null
    },
    {
      "tier_id": "MOTO:PINE",
      "line": "MOTO",
      "code": "PINE",
      "label": "Pine",
      "position": 2,
      "sellable": 1,
      "retired_on": null,
      "notes": null
    },
    {
      "tier_id": "MOTO:EVERGREEN",
      "line": "MOTO",
      "code": "EVERGREEN",
      "label": "Evergreen",
      "position": 3,
      "sellable": 1,
      "retired_on": null,
      "notes": null
    },
    {
      "tier_id": "RV:PINE",
      "line": "RV",
      "code": "PINE",
      "label": "Pine",
      "position": 2,
      "sellable": 1,
      "retired_on": null,
      "notes": null
    },
    {
      "tier_id": "RV:EVERGREEN",
      "line": "RV",
      "code": "EVERGREEN",
      "label": "Evergreen",
      "position": 3,
      "sellable": 1,
      "retired_on": null,
      "notes": null
    },
    {
      "tier_id": "BOAT:PINE",
      "line": "BOAT",
      "code": "PINE",
      "label": "Pine",
      "position": 2,
      "sellable": 1,
      "retired_on": null,
      "notes": null
    },
    {
      "tier_id": "BOAT:EVERGREEN",
      "line": "BOAT",
      "code": "EVERGREEN",
      "label": "Evergreen",
      "position": 3,
      "sellable": 1,
      "retired_on": null,
      "notes": null
    },
    {
      "tier_id": "CLSC:PINE",
      "line": "CLSC",
      "code": "PINE",
      "label": "Pine",
      "position": 2,
      "sellable": 1,
      "retired_on": null,
      "notes": null
    },
    {
      "tier_id": "CLSC:EVERGREEN",
      "line": "CLSC",
      "code": "EVERGREEN",
      "label": "Evergreen",
      "position": 3,
      "sellable": 1,
      "retired_on": null,
      "notes": null
    }
  ],
  "row_count": 43,
  "truncated": false
}
query_db(SELECT * FROM vehicles WHERE vehicle_id = 'VEH-legacy-mismatch-v1';)
{
  "sql": "SELECT * FROM vehicles WHERE vehicle_id = 'VEH-legacy-mismatch-v1';"
}
{
  "rows": [
    {
      "vehicle_id": "VEH-legacy-mismatch-v1",
      "cust_id": "CUST-legacy-mismatch",
      "year": 2018,
      "make": "Ford",
      "model": "F-150",
      "vin": "VINFAKELEGv1",
      "usage": "COMMUTE",
      "annual_miles": 16000,
      "financed": 0,
      "garaging_address_id": "ADDR-legacy-mismatch"
    }
  ],
  "row_count": 1,
  "truncated": false
}
query_db(SELECT * FROM policy_coverages WHERE policy_id = 'POL-legacy-mismatch-p_auto';)
{
  "sql": "SELECT * FROM policy_coverages WHERE policy_id = 'POL-legacy-mismatch-p_auto';"
}
{
  "rows": [
    {
      "policy_id": "POL-legacy-mismatch-p_auto",
      "coverage_id": "AUTO:BI",
      "value": "5000000/10000000",
      "premium_contribution_cents": null
    },
    {
      "policy_id": "POL-legacy-mismatch-p_auto",
      "coverage_id": "AUTO:COLL",
      "value": "100000",
      "premium_contribution_cents": null
    },
    {
      "policy_id": "POL-legacy-mismatch-p_auto",
      "coverage_id": "AUTO:COMP",
      "value": "50000",
      "premium_contribution_cents": null
    },
    {
      "policy_id": "POL-legacy-mismatch-p_auto",
      "coverage_id": "AUTO:PD",
      "value": "5000000",
      "premium_contribution_cents": null
    }
  ],
  "row_count": 4,
  "truncated": false
}
price_check(POL-legacy-mismatch-p_auto)
{
  "policy_id": "POL-legacy-mismatch-p_auto"
}
{
  "as_of": "2025-02-20",
  "facts": {
    "line": "AUTO",
    "tier": "PINE",
    "region": "R-SW",
    "state": "TX",
    "term_months": 6,
    "peico_risk": 616,
    "age": 50,
    "billing_plan": "INSTALLMENTS",
    "autopay": false,
    "paperless": false,
    "loyalty_tier": "Sprout",
    "status": "CUSTOMER",
    "has_bundle": false,
    "active_lines": 1,
    "is_new_first_policy": false,
    "promo_code": null,
    "coverages": [],
    "driver_age": 50,
    "annual_miles": 16000,
    "vehicle_age": 7,
    "incidents_5yr": 2,
    "exposure_count": 1
  },
  "base_premium_cents": 120468,
  "final_premium_cents": 120468,
  "breakdown": [
    {
      "step": "BASE",
      "code": "base",
      "detail": "base_rate $900",
      "factor": null,
      "amount_cents": null,
      "running_cents": 90000
    },
    {
      "step": "BASE",
      "code": "tier:PINE",
      "detail": "tier factor ×1.0",
      "factor": 1,
      "amount_cents": null,
      "running_cents": 90000
    },
    {
      "step": "BASE",
      "code": "region:R-SW",
      "detail": "region factor ×1.12",
      "factor": 1.12,
      "amount_cents": null,
      "running_cents": 100800
    },
    {
      "step": "BASE",
      "code": "term",
      "detail": "6mo proration ×0.5",
      "factor": 0.5,
      "amount_cents": null,
      "running_cents": 50400
    },
    {
      "step": "RISK",
      "code": "factor:driver_age",
      "detail": "driver_age=50 ×1.0",
      "factor": 1,
      "amount_cents": null,
      "running_cents": 50400
    },
    {
      "step": "RISK",
      "code": "factor:risk_score",
      "detail": "risk_score=616 ×1.22",
      "factor": 1.22,
      "amount_cents": null,
      "running_cents": 61488
    },
    {
      "step": "RISK",
      "code": "factor:annual_miles",
      "detail": "annual_miles=16000 ×1.2",
      "factor": 1.2,
      "amount_cents": null,
      "running_cents": 73786
    },
    {
      "step": "RISK",
      "code": "factor:vehicle_age",
      "detail": "vehicle_age=7 ×1.0",
      "factor": 1,
      "amount_cents": null,
      "running_cents": 73786
    },
    {
      "step": "RISK",
      "code": "factor:incidents_5yr",
      "detail": "incidents_5yr=2 ×1.55",
      "factor": 1.55,
      "amount_cents": null,
      "running_cents": 114368
    },
    {
      "step": "FEES",
      "code": "policy_fee",
      "detail": "+ policy fee",
      "factor": null,
      "amount_cents": 2500,
      "running_cents": 116868
    },
    {
      "step": "FEES",
      "code": "installment",
      "detail": "+ fractional-pay surcharge",
      "factor": null,
      "amount_cents": 3600,
      "running_cents": 120468
    }
  ]
}
quote({"region":"R-SW","autopay":false,"loyalty_tier":"Sprout","coverages":[],"line…)
{
  "facts": {
    "region": "R-SW",
    "autopay": false,
    "loyalty_tier": "Sprout",
    "coverages": [],
    "line": "AUTO",
    "is_new_first_policy": false,
    "vehicle_age": 7,
    "active_lines": 1,
    "has_bundle": false,
    "peico_risk": 616,
    "incidents_5yr": 2,
    "status": "CUSTOMER",
    "annual_miles": 6000,
    "paperless": false,
    "age": 50,
    "tier": "PINE",
    "billing_plan": "INSTALLMENTS",
    "driver_age": 50,
    "state": "TX",
    "term_months": 6,
    "exposure_count": 1
  },
  "as_of": "2025-06-01"
}
{
  "as_of": "2025-06-01",
  "base_premium_cents": 93782,
  "final_premium_cents": 93782,
  "breakdown": [
    {
      "step": "BASE",
      "code": "base",
      "detail": "base_rate $900",
      "factor": null,
      "amount_cents": null,
      "running_cents": 90000
    },
    {
      "step": "BASE",
      "code": "tier:PINE",
      "detail": "tier factor ×1.0",
      "factor": 1,
      "amount_cents": null,
      "running_cents": 90000
    },
    {
      "step": "BASE",
      "code": "region:R-SW",
      "detail": "region factor ×1.12",
      "factor": 1.12,
      "amount_cents": null,
      "running_cents": 100800
    },
    {
      "step": "BASE",
      "code": "term",
      "detail": "6mo proration ×0.5",
      "factor": 0.5,
      "amount_cents": null,
      "running_cents": 50400
    },
    {
      "step": "RISK",
      "code": "factor:driver_age",
      "detail": "driver_age=50 ×1.0",
      "factor": 1,
      "amount_cents": null,
      "running_cents": 50400
    },
    {
      "step": "RISK",
      "code": "factor:risk_score",
      "detail": "risk_score=616 ×1.22",
      "factor": 1.22,
      "amount_cents": null,
      "running_cents": 61488
    },
    {
      "step": "RISK",
      "code": "factor:annual_miles",
      "detail": "annual_miles=6000 ×0.92",
      "factor": 0.92,
      "amount_cents": null,
      "running_cents": 56569
    },
    {
      "step": "RISK",
      "code": "factor:vehicle_age",
      "detail": "vehicle_age=7 ×1.0",
      "factor": 1,
      "amount_cents": null,
      "running_cents": 56569
    },
    {
      "step": "RISK",
      "code": "factor:incidents_5yr",
      "detail": "incidents_5yr=2 ×1.55",
      "factor": 1.55,
      "amount_cents": null,
      "running_cents": 87682
    },
    {
      "step": "FEES",
      "code": "policy_fee",
      "detail": "+ policy fee",
      "factor": null,
      "amount_cents": 2500,
      "running_cents": 90182
    },
    {
      "step": "FEES",
      "code": "installment",
      "detail": "+ fractional-pay surcharge",
      "factor": null,
      "amount_cents": 3600,
      "running_cents": 93782
    }
  ]
}
quote({"is_new_first_policy":false,"driver_age":50,"annual_miles":6000,"vehicle_age…)
{
  "facts": {
    "is_new_first_policy": false,
    "driver_age": 50,
    "annual_miles": 6000,
    "vehicle_age": 7,
    "has_bundle": false,
    "region": "R-SW",
    "tier": "EVERGREEN",
    "exposure_count": 1,
    "active_lines": 1,
    "billing_plan": "INSTALLMENTS",
    "paperless": false,
    "peico_risk": 616,
    "term_months": 6,
    "coverages": [],
    "age": 50,
    "autopay": false,
    "status": "CUSTOMER",
    "loyalty_tier": "Sprout",
    "state": "TX",
    "line": "AUTO",
    "incidents_5yr": 2
  },
  "as_of": "2025-06-01"
}
{
  "as_of": "2025-06-01",
  "base_premium_cents": 118334,
  "final_premium_cents": 118334,
  "breakdown": [
    {
      "step": "BASE",
      "code": "base",
      "detail": "base_rate $900",
      "factor": null,
      "amount_cents": null,
      "running_cents": 90000
    },
    {
      "step": "BASE",
      "code": "tier:EVERGREEN",
      "detail": "tier factor ×1.28",
      "factor": 1.28,
      "amount_cents": null,
      "running_cents": 115200
    },
    {
      "step": "BASE",
      "code": "region:R-SW",
      "detail": "region factor ×1.12",
      "factor": 1.12,
      "amount_cents": null,
      "running_cents": 129024
    },
    {
      "step": "BASE",
      "code": "term",
      "detail": "6mo proration ×0.5",
      "factor": 0.5,
      "amount_cents": null,
      "running_cents": 64512
    },
    {
      "step": "RISK",
      "code": "factor:driver_age",
      "detail": "driver_age=50 ×1.0",
      "factor": 1,
      "amount_cents": null,
      "running_cents": 64512
    },
    {
      "step": "RISK",
      "code": "factor:risk_score",
      "detail": "risk_score=616 ×1.22",
      "factor": 1.22,
      "amount_cents": null,
      "running_cents": 78705
    },
    {
      "step": "RISK",
      "code": "factor:annual_miles",
      "detail": "annual_miles=6000 ×0.92",
      "factor": 0.92,
      "amount_cents": null,
      "running_cents": 72409
    },
    {
      "step": "RISK",
      "code": "factor:vehicle_age",
      "detail": "vehicle_age=7 ×1.0",
      "factor": 1,
      "amount_cents": null,
      "running_cents": 72409
    },
    {
      "step": "RISK",
      "code": "factor:incidents_5yr",
      "detail": "incidents_5yr=2 ×1.55",
      "factor": 1.55,
      "amount_cents": null,
      "running_cents": 112234
    },
    {
      "step": "FEES",
      "code": "policy_fee",
      "detail": "+ policy fee",
      "factor": null,
      "amount_cents": 2500,
      "running_cents": 114734
    },
    {
      "step": "FEES",
      "code": "installment",
      "detail": "+ fractional-pay surcharge",
      "factor": null,
      "amount_cents": 3600,
      "running_cents": 118334
    }
  ]
}
query_db(SELECT * FROM tier_coverage_defaults WHERE tier_id IN ('AUTO:PINE', 'AUTO:EVE…)
{
  "sql": "SELECT * FROM tier_coverage_defaults WHERE tier_id IN ('AUTO:PINE', 'AUTO:EVERGREEN');"
}
{
  "rows": [
    {
      "tier_id": "AUTO:EVERGREEN",
      "coverage_id": "AUTO:BI",
      "included": 1,
      "default_value": "10000000/30000000",
      "editable": 1
    },
    {
      "tier_id": "AUTO:EVERGREEN",
      "coverage_id": "AUTO:COLL",
      "included": 1,
      "default_value": "50000",
      "editable": 1
    },
    {
      "tier_id": "AUTO:EVERGREEN",
      "coverage_id": "AUTO:COMP",
      "included": 1,
      "default_value": "50000",
      "editable": 1
    },
    {
      "tier_id": "AUTO:EVERGREEN",
      "coverage_id": "AUTO:GAP",
      "included": 0,
      "default_value": null,
      "editable": 1
    },
    {
      "tier_id": "AUTO:EVERGREEN",
      "coverage_id": "AUTO:MED",
      "included": 1,
      "default_value": "500000",
      "editable": 1
    },
    {
      "tier_id": "AUTO:EVERGREEN",
      "coverage_id": "AUTO:OEM",
      "included": 0,
      "default_value": null,
      "editable": 0
    },
    {
      "tier_id": "AUTO:EVERGREEN",
      "coverage_id": "AUTO:PD",
      "included": 1,
      "default_value": "10000000",
      "editable": 1
    },
    {
      "tier_id": "AUTO:EVERGREEN",
      "coverage_id": "AUTO:RENT_REIMB",
      "included": 1,
      "default_value": "90000",
      "editable": 1
    },
    {
      "tier_id": "AUTO:EVERGREEN",
      "coverage_id": "AUTO:ROAD",
      "included": 0,
      "default_value": null,
      "editable": 1
    },
    {
      "tier_id": "AUTO:EVERGREEN",
      "coverage_id": "AUTO:UMUIM",
      "included": 1,
      "default_value": "10000000/30000000",
      "editable": 1
    },
    {
      "tier_id": "AUTO:PINE",
      "coverage_id": "AUTO:BI",
      "included": 1,
      "default_value": "5000000/10000000",
      "editable": 1
    },
    {
      "tier_id": "AUTO:PINE",
      "coverage_id": "AUTO:COLL",
      "included": 1,
      "default_value": "100000",
      "editable": 1
    },
    {
      "tier_id": "AUTO:PINE",
      "coverage_id": "AUTO:COMP",
      "included": 1,
      "default_value": "50000",
      "editable": 1
    },
    {
      "tier_id": "AUTO:PINE",
      "coverage_id": "AUTO:GAP",
      "included": 0,
      "default_value": null,
      "editable": 1
    },
    {
      "tier_id": "AUTO:PINE",
      "coverage_id": "AUTO:MED",
      "included": 0,
      "default_value": null,
      "editable": 0
    },
    {
      "tier_id": "AUTO:PINE",
      "coverage_id": "AUTO:OEM",
      "included": 0,
      "default_value": null,
      "editable": 0
    },
    {
      "tier_id": "AUTO:PINE",
      "coverage_id": "AUTO:PD",
      "included": 1,
      "default_value": "5000000",
      "editable": 1
    },
    {
      "tier_id": "AUTO:PINE",
      "coverage_id": "AUTO:RENT_REIMB",
      "included": 0,
      "default_value": null,
      "editable": 0
    },
    {
      "tier_id": "AUTO:PINE",
      "coverage_id": "AUTO:ROAD",
      "included": 0,
      "default_value": null,
      "editable": 1
    },
    {
      "tier_id": "AUTO:PINE",
      "coverage_id": "AUTO:UMUIM",
      "included": 0,
      "default_value": "5000000/10000000",
      "editable": 1
    }
  ],
  "row_count": 20,
  "truncated": false
}

Hi Raymond, thanks for verifying those details! I see your policy on file is for your 2018 Ford F-150.

Currently, your policy is set to 16,000 annual miles with a "Commute" usage, and you are paying $1,204.68 per 6-month term on our Pine tier.

If we update your truck to 6,000 annual miles with a "Pleasure" (personal) usage while keeping your current Pine tier, your new premium will drop to $937.82 per 6-month term. That's a savings of $266.86!

Important Account Mismatch Discrepancy

While looking into your file, I noticed a discrepancy between our legacy mainframe database and our current modern system that we should address:

  • In our legacy database, your plan code is registered as AP5, which is our preferred tier and is designed to map to the modern Evergreen tier.
  • However, your active modern policy is currently on the Pine tier.

I wanted to surface this discrepancy so you can decide how you'd like to proceed:

  1. Option 1: Remain on the Pine Tier (Keep current coverage & maximize savings)

    • We will update your mileage to 6,000 miles/Pleasure.
    • Your premium: $937.82 per 6-month term (saving $266.86).
    • Coverages remain the same: $50,000/$100,000 Bodily Injury, $50,000 Property Damage, a $1,000 Collision deductible, and a $500 Comprehensive deductible.
  2. Option 2: Correct to the Evergreen Tier (Upgrade coverage)

    • We will update your mileage to 6,000 miles/Pleasure and align your tier with your legacy AP5 plan.
    • Your premium: $1,183.34 per 6-month term (saving $21.34 compared to what you pay today).
    • Upgraded coverages include:
      • Higher liability limits: $100,000/$300,000 Bodily Injury and $100,000 Property Damage.
      • Lower deductible: Your Collision deductible drops from $1,000 to $500.
      • Added coverages: Medical Payments, Rental Reimbursement, and Uninsured/Underinsured Motorist coverages will be automatically included.

Which of these two options would you prefer to go with?

240k in · 5,227 out · $0.35 · 51.1s
Customer

I appreciate you laying that out, but honestly I just came to update my mileage and usage. I'm not looking to change my coverage or tier right now — money's tight, and I need to keep costs down. Let's just do Option 1: update to 6,000 miles, personal use, and keep the Pine tier at $937.82. Can you make that change now?

Agent
update_insured_object(VEH-legacy-mismatch-v1, {"usage":"PLEASURE","annual_miles":6000}, vehicle)
{
  "object_id": "VEH-legacy-mismatch-v1",
  "fields": {
    "usage": "PLEASURE",
    "annual_miles": 6000
  },
  "object_type": "vehicle"
}
{
  "ok": true,
  "rows_affected": 1,
  "changeset": {
    "vehicles": {
      "changed": [
        {
          "pk": {
            "vehicle_id": "VEH-legacy-mismatch-v1"
          },
          "fields": {
            "usage": [
              "COMMUTE",
              "PLEASURE"
            ],
            "annual_miles": [
              16000,
              6000
            ]
          }
        }
      ]
    }
  },
  "note": "if these facts feed rating, the affected policy's premium is stale — reprice_policy"
}
reprice_policy(POL-legacy-mismatch-p_auto)
{
  "policy_id": "POL-legacy-mismatch-p_auto"
}
{
  "ok": true,
  "as_of": "2025-02-20",
  "base_premium_cents": 93782,
  "final_premium_cents": 93782,
  "breakdown": [
    {
      "step": "BASE",
      "code": "base",
      "detail": "base_rate $900",
      "factor": null,
      "amount_cents": null,
      "running_cents": 90000
    },
    {
      "step": "BASE",
      "code": "tier:PINE",
      "detail": "tier factor ×1.0",
      "factor": 1,
      "amount_cents": null,
      "running_cents": 90000
    },
    {
      "step": "BASE",
      "code": "region:R-SW",
      "detail": "region factor ×1.12",
      "factor": 1.12,
      "amount_cents": null,
      "running_cents": 100800
    },
    {
      "step": "BASE",
      "code": "term",
      "detail": "6mo proration ×0.5",
      "factor": 0.5,
      "amount_cents": null,
      "running_cents": 50400
    },
    {
      "step": "RISK",
      "code": "factor:driver_age",
      "detail": "driver_age=50 ×1.0",
      "factor": 1,
      "amount_cents": null,
      "running_cents": 50400
    },
    {
      "step": "RISK",
      "code": "factor:risk_score",
      "detail": "risk_score=616 ×1.22",
      "factor": 1.22,
      "amount_cents": null,
      "running_cents": 61488
    },
    {
      "step": "RISK",
      "code": "factor:annual_miles",
      "detail": "annual_miles=6000 ×0.92",
      "factor": 0.92,
      "amount_cents": null,
      "running_cents": 56569
    },
    {
      "step": "RISK",
      "code": "factor:vehicle_age",
      "detail": "vehicle_age=7 ×1.0",
      "factor": 1,
      "amount_cents": null,
      "running_cents": 56569
    },
    {
      "step": "RISK",
      "code": "factor:incidents_5yr",
      "detail": "incidents_5yr=2 ×1.55",
      "factor": 1.55,
      "amount_cents": null,
      "running_cents": 87682
    },
    {
      "step": "FEES",
      "code": "policy_fee",
      "detail": "+ policy fee",
      "factor": null,
      "amount_cents": 2500,
      "running_cents": 90182
    },
    {
      "step": "FEES",
      "code": "installment",
      "detail": "+ fractional-pay surcharge",
      "factor": null,
      "amount_cents": 3600,
      "running_cents": 93782
    }
  ],
  "changeset": {
    "policies": {
      "changed": [
        {
          "pk": {
            "policy_id": "POL-legacy-mismatch-p_auto"
          },
          "fields": {
            "base_premium_cents": [
              120468,
              93782
            ],
            "final_premium_cents": [
              120468,
              93782
            ],
            "premium_breakdown": [
              "[{\"step\": \"BASE\", \"code\": \"base\", \"detail\": \"base_rate $900\", \"factor\": null, \"amount_cents\": null, \"running_cents\": 90000}, {\"step\": \"BASE\", \"code\": \"tier:PINE\", \"detail\": \"tier factor \\u00d71.0\", \"factor\": 1.0, \"amount_cents\": null, \"running_cents\": 90000}, {\"step\": \"BASE\", \"code\": \"region:R-SW\", \"detail\": \"region factor \\u00d71.12\", \"factor\": 1.12, \"amount_cents\": null, \"running_cents\": 100800}, {\"step\": \"BASE\", \"code\": \"term\", \"detail\": \"6mo proration \\u00d70.5\", \"factor\": 0.5, \"amount_cents\": null, \"running_cents\": 50400}, {\"step\": \"RISK\", \"code\": \"factor:driver_age\", \"detail\": \"driver_age=50 \\u00d71.0\", \"factor\": 1.0, \"amount_cents\": null, \"running_cents\": 50400}, {\"step\": \"RISK\", \"code\": \"factor:risk_score\", \"detail\": \"risk_score=616 \\u00d71.22\", \"factor\": 1.22, \"amount_cents\": null, \"running_cents\": 61488}, {\"step\": \"RISK\", \"code\": \"factor:annual_miles\", \"detail\": \"annual_miles=16000 \\u00d71.2\", \"factor\": 1.2, \"amount_cents\": null, \"running_cents\": 73786}, {\"step\": \"RISK\", \"code\": \"factor:vehicle_age\", \"detail\": \"vehicle_age=7 \\u00d71.0\", \"factor\": 1.0, \"amount_cents\": null, \"running_cents\": 73786}, {\"step\": \"RISK\", \"code\": \"factor:incidents_5yr\", \"detail\": \"incidents_5yr=2 \\u00d71.55\", \"factor\": 1.55, \"amount_cents\": null, \"running_cents\": 114368}, {\"step\": \"FEES\", \"code\": \"policy_fee\", \"detail\": \"+ policy fee\", \"factor\": null, \"amount_cents\": 2500, \"running_cents\": 116868}, {\"step\": \"FEES\", \"code\": \"installment\", \"detail\": \"+ fractional-pay surcharge\", \"factor\": null, \"amount_cents\": 3600, \"running_cents\": 120468}]",
              "[{\"step\": \"BASE\", \"code\": \"base\", \"detail\": \"base_rate $900\", \"factor\": null, \"amount_cents\": null, \"running_cents\": 90000}, {\"step\": \"BASE\", \"code\": \"tier:PINE\", \"detail\": \"tier factor \\u00d71.0\", \"factor\": 1.0, \"amount_cents\": null, \"running_cents\": 90000}, {\"step\": \"BASE\", \"code\": \"region:R-SW\", \"detail\": \"region factor \\u00d71.12\", \"factor\": 1.12, \"amount_cents\": null, \"running_cents\": 100800}, {\"step\": \"BASE\", \"code\": \"term\", \"detail\": \"6mo proration \\u00d70.5\", \"factor\": 0.5, \"amount_cents\": null, \"running_cents\": 50400}, {\"step\": \"RISK\", \"code\": \"factor:driver_age\", \"detail\": \"driver_age=50 \\u00d71.0\", \"factor\": 1.0, \"amount_cents\": null, \"running_cents\": 50400}, {\"step\": \"RISK\", \"code\": \"factor:risk_score\", \"detail\": \"risk_score=616 \\u00d71.22\", \"factor\": 1.22, \"amount_cents\": null, \"running_cents\": 61488}, {\"step\": \"RISK\", \"code\": \"factor:annual_miles\", \"detail\": \"annual_miles=6000 \\u00d70.92\", \"factor\": 0.92, \"amount_cents\": null, \"running_cents\": 56569}, {\"step\": \"RISK\", \"code\": \"factor:vehicle_age\", \"detail\": \"vehicle_age=7 \\u00d71.0\", \"factor\": 1.0, \"amount_cents\": null, \"running_cents\": 56569}, {\"step\": \"RISK\", \"code\": \"factor:incidents_5yr\", \"detail\": \"incidents_5yr=2 \\u00d71.55\", \"factor\": 1.55, \"amount_cents\": null, \"running_cents\": 87682}, {\"step\": \"FEES\", \"code\": \"policy_fee\", \"detail\": \"+ policy fee\", \"factor\": null, \"amount_cents\": 2500, \"running_cents\": 90182}, {\"step\": \"FEES\", \"code\": \"installment\", \"detail\": \"+ fractional-pay surcharge\", \"factor\": null, \"amount_cents\": 3600, \"running_cents\": 93782}]"
            ]
          }
        }
      ]
    }
  }
}

I have successfully completed that update for you!

Your 2018 Ford F-150 is now rated at 6,000 annual miles for personal use (Pleasure), and we kept you on your current Pine tier.

This change has officially dropped your premium to $937.82 per 6-month term, which will save you $266.86 going forward.

Is there anything else I can help you with today?

69k in · 603 out · $0.04 · 6.6s
Customer

No, that's perfect. Thanks for getting that done for me — I really appreciate it.

Agent
end_conversation()
{}
{
  "ok": true,
  "note": "Deliver your closing message now."
}

You're very welcome, Raymond! It was my pleasure to help you save some money on your premium today. Have a wonderful rest of your day, and thank you for choosing PEICO!

49k in · 98 out · $0.03 · 3.6s