{
 "faults": [
  {
   "id": "B01",
   "title": "May premium lines deferred to June",
   "real_world_cause": "A bordereau export queue carries three processed transactions into the next reporting run.",
   "area": "bordereau",
   "tables": [
    "bdx_premium",
    "bdx_cover"
   ],
   "selection": "Select the first 3 bdx_premium rows with bdx_month = 2026-05 and gross_premium > 0, ordered by transaction_id, then line_no, lexicographically ascending. Use all if fewer qualify; do nothing if none qualify.",
   "changes": "Evaluate selection and retain original values before changing anything. Process selected rows in selection order. Change bdx_month to 2026-06 and assign consecutive line_no values starting at one above the original maximum line_no in 2026-06, or 1 if that month has no lines. Leave booked_date unchanged. Set fx_rate to fx_rates.usd_per_unit for the row's currency and 2026-06, using 1 for USD. Set gross_premium_usd = round(gross_premium * fx_rate); broker_commission_usd = round(the original broker_commissions.amount for transaction_id * fx_rate); mga_commission_usd = round(new gross_premium_usd * binding_terms.mga_commission_rate for line_of_business); net_due_usd = new gross_premium_usd - new mga_commission_usd. In each existing bdx_cover row for 2026-05 and 2026-06, set premium_lines to that month's resulting bdx_premium row count and set gross_premium_usd, broker_commission_usd, mga_commission_usd and net_due_usd to the respective resulting line sums. Leave all other rows and columns unchanged. Round money to cents, half up.",
   "first_month": "2026-05",
   "effect": "May premium line count, gross premium, commissions and carrier net due omit the selected transactions. June includes those transactions incorrectly and translates them at June rates. Correct records would report them in May at May rates.",
   "systems_agree": false,
   "monthly_controls_would_catch": true,
   "monthly_controls_reason": "A reconciliation of reported transactions to their source booked months would expose the May omissions and June inclusions even though the cover sheets add correctly."
  },
  {
   "id": "B02",
   "title": "Cancellation returns reported as positive premium",
   "real_world_cause": "An export formatter removes the minus sign from cancellation premium.",
   "area": "bordereau",
   "tables": [
    "bdx_premium",
    "bdx_cover"
   ],
   "selection": "Select the first 3 bdx_premium rows with bdx_month = 2026-05, transaction_type = CAN and gross_premium < 0, ordered by transaction_id, then line_no, lexicographically ascending. Use all if fewer qualify; do nothing if none qualify.",
   "changes": "Evaluate selection and retain original values first. In each selected row negate gross_premium, gross_premium_usd, broker_commission_usd, mga_commission_usd and net_due_usd. Leave fx_rate unchanged. In the existing 2026-05 bdx_cover row, replace gross_premium_usd, broker_commission_usd, mga_commission_usd and net_due_usd with the respective resulting bdx_premium sums for that month. Leave all other rows and columns unchanged. Round money to cents, half up.",
   "first_month": "2026-05",
   "effect": "Return premium becomes additional premium. Each affected gross premium, commission and net due amount is overstated by twice the absolute value of its original negative amount. Correct records would retain the original negative amounts.",
   "systems_agree": false,
   "monthly_controls_would_catch": true,
   "monthly_controls_reason": "Matching cancellation lines to source premiums would expose the sign reversal despite agreement between the bordereau and its cover sheet."
  },
  {
   "id": "B03",
   "title": "Canadian premium translated at par",
   "real_world_cause": "A reporting job defaults a missing currency lookup to the USD rate.",
   "area": "bordereau",
   "tables": [
    "bdx_premium",
    "bdx_cover"
   ],
   "selection": "Select the first 3 bdx_premium rows with bdx_month = 2026-06, currency = CAD, gross_premium > 0 and 0 < fx_rate < 1, ordered by transaction_id, then line_no, lexicographically ascending. Use all if fewer qualify; do nothing if none qualify.",
   "changes": "Evaluate selection and retain original values first. Set each selected row's fx_rate = 1.000000, gross_premium_usd = gross_premium, broker_commission_usd = the original broker_commissions.amount for transaction_id, mga_commission_usd = round(new gross_premium_usd * binding_terms.mga_commission_rate for line_of_business), and net_due_usd = new gross_premium_usd - new mga_commission_usd. In the existing 2026-06 bdx_cover row replace gross_premium_usd, broker_commission_usd, mga_commission_usd and net_due_usd with the respective resulting bdx_premium sums. Leave all other rows and columns unchanged. Round money to cents, half up.",
   "first_month": "2026-06",
   "effect": "The selected CAD transactions' USD gross premium, commissions and carrier net due are overstated. Correct USD values would use the June CAD rate in fx_rates; the original CAD premiums remain correct.",
   "systems_agree": false,
   "monthly_controls_would_catch": true,
   "monthly_controls_reason": "Checking reported FX rates and translated amounts against fx_rates would reveal the par translation."
  },
  {
   "id": "B04",
   "title": "Claims export omits expense payments",
   "real_world_cause": "A claims report includes indemnity payments but accidentally excludes the expense payment transaction code.",
   "area": "bordereau",
   "tables": [
    "bdx_claims",
    "bdx_cover"
   ],
   "selection": "Select the first 3 bdx_claims rows with bdx_month = 2026-05 whose claim_id has a positive sum of claim_transactions.amount for txn_type = PAY_EXP and booked_date in 2026-05, ordered by claim_id lexicographically ascending. Use all if fewer qualify; do nothing if none qualify.",
   "changes": "Evaluate selection and retain original values first. For each selected claim let E_month be the original sum of PAY_EXP amounts booked in 2026-05 and E_total the original sum of PAY_EXP amounts booked on or before 2026-05-31. In its selected bdx_claims row set paid_in_month = original paid_in_month - E_month, paid_to_date = original paid_to_date - E_total, and incurred = new paid_to_date + reserve_outstanding - recovered_to_date. Set paid_in_month_usd = round(new paid_in_month * fx_rate) and incurred_usd = round(new incurred * fx_rate). In the existing 2026-05 bdx_cover row set paid_in_month_usd to the resulting sum of that field in bdx_claims for the month. Leave all other rows and columns unchanged. Round money to cents, half up.",
   "first_month": "2026-05",
   "effect": "Reported monthly payments exclude May expenses, and cumulative paid and incurred exclude all expenses paid through May for the selected claims. Correct figures would include both PAY_IND and PAY_EXP; reserves and recoveries are unchanged.",
   "systems_agree": false,
   "monthly_controls_would_catch": true,
   "monthly_controls_reason": "Reconciling claims payment movements and cumulative paid balances to the claims ledger would reveal the omitted expenses."
  },
  {
   "id": "B05",
   "title": "Open instalments dropped during conversion",
   "real_world_cause": "A conversion loader skips receivable records after a rejected input block while retaining the generated crosswalk.",
   "area": "conversion",
   "tables": [
    "billing_instalments"
   ],
   "selection": "Select the first 3 conv_crosswalk rows with entity = instalment whose legacy_key matches leg_open_instalments.LEG_INST_NO and whose target_key matches billing_instalments.instalment_id with source_system = LEGACY, ordered by legacy_key, then target_key, lexicographically ascending. Use all if fewer qualify; do nothing if none qualify.",
   "changes": "Evaluate selection and retain original values first. Delete the billing_instalments rows identified by the selected target_key values, deleting each identified row only once. Retain the selected conv_crosswalk rows, all leg_open_instalments rows and leg_control_report unchanged. Do not change premium transactions, commissions or any bordereau because premium reporting follows booked transactions rather than instalment collection. Leave all other rows and columns unchanged.",
   "first_month": "2025-12",
   "effect": "The converted instalment ledger is missing the selected balances and their subsequent collection information. Its cut-over receivable amount is understated by the sum of the selected legacy AMOUNT_CENTS divided by 100, with a negative sum instead understating credits. Correct conversion would retain every selected instalment once.",
   "systems_agree": false,
   "monthly_controls_would_catch": true,
   "monthly_controls_reason": "Conversion record counts, open instalment balances or crosswalk target checks would expose the missing instalments."
  },
  {
   "id": "B06",
   "title": "Expense payment loaded twice at conversion",
   "real_world_cause": "A retry loads a claims payment a second time under a new target identifier.",
   "area": "conversion",
   "tables": [
    "claim_transactions",
    "conv_crosswalk",
    "bdx_claims",
    "bdx_cover"
   ],
   "selection": "Select the first claim_transactions row with source_system = LEGACY, txn_type = PAY_EXP, amount > 0 and booked_date in 2025-12 that has a conv_crosswalk row with entity = claim_txn and target_key = claim_txn_id. Order by claim_txn_id lexicographically ascending; if multiple crosswalk rows match, use the lowest legacy_key, then batch_id, lexicographically. If none qualify, make no changes.",
   "changes": "Evaluate selection and retain original values first. Add one claim_transactions row with claim_txn_id equal to the next identifier in that table's existing CTX numeric sequence; claim_id, txn_type, booked_date, amount, source_system and conversion_batch_id each equal the corresponding selected row's original value. Add one conv_crosswalk row with entity = claim_txn, legacy_key = the selected matching crosswalk's original legacy_key, target_key = the new claim_txn_id, and batch_id = the selected matching crosswalk's original batch_id. Let A be the duplicated amount. For every existing bdx_claims row for that claim with bdx_month >= 2025-12, increase paid_to_date and incurred by A, and increase paid_in_month by A only for 2025-12. Recompute paid_in_month_usd = round(paid_in_month * fx_rate) and incurred_usd = round(incurred * fx_rate) in those rows. For every affected month, replace the existing bdx_cover.paid_in_month_usd with that month's resulting bdx_claims sum. Keep legacy history, legacy balances and legacy controls unchanged. Leave all other rows and columns unchanged. Round money to cents, half up.",
   "first_month": "2025-12",
   "effect": "Converted claim payments and incurred are overstated by A, December paid movements are overstated by A, and their USD equivalents are overstated at the applicable monthly rates. Correct conversion would load the legacy payment once.",
   "systems_agree": false,
   "monthly_controls_would_catch": true,
   "monthly_controls_reason": "Legacy-to-target movement counts, payment totals or crosswalk uniqueness checks would expose the duplicated payment even though the regenerated reports agree with the target ledger."
  },
  {
   "id": "B07",
   "title": "Monthly billing plans mapped to annual",
   "real_world_cause": "The conversion program uses an annual-plan default instead of applying the monthly-plan mapping.",
   "area": "conversion",
   "tables": [
    "pas_policies"
   ],
   "selection": "Select the first 3 pas_policies rows with source_system = LEGACY and billing_plan = MONTHLY that have a policy conv_crosswalk match to leg_policy_master and whose legacy PLAN_CD maps to MONTHLY in conv_code_map with code_set = PLAN. Order by policy_id lexicographically ascending. Use all if fewer qualify; do nothing if none qualify.",
   "changes": "Evaluate selection and retain original values first. Set billing_plan = ANNUAL in each selected pas_policies row. Keep the code map, crosswalk, legacy policy records, existing billing_instalments and legacy open instalments unchanged; do not regenerate any schedules. No bordereau or cover-sheet field contains the billing plan, so leave them unchanged. Leave all other rows and columns unchanged.",
   "first_month": "2025-12",
   "effect": "The converted policy schedule states one annual payment instead of twelve monthly payments. Existing monetary balances remain unchanged, but future billing operations using billing_plan can demand the wrong payment schedule. Correct target policies would say MONTHLY.",
   "systems_agree": false,
   "monthly_controls_would_catch": true,
   "monthly_controls_reason": "A conversion comparison of mapped billing plans or a comparison of policy plans with their instalment schedules would expose the incorrect annual classification."
  },
  {
   "id": "B08",
   "title": "Reserve movements divided by 100 twice",
   "real_world_cause": "A claims conversion routine applies cents-to-currency scaling to an amount that has already been scaled.",
   "area": "conversion",
   "tables": [
    "claim_transactions",
    "bdx_claims",
    "bdx_cover"
   ],
   "selection": "Select the first 3 claim_transactions rows with source_system = LEGACY, txn_type = RESERVE, amount >= 100.00 and booked_date <= 2025-12-31 that have a claim_txn conv_crosswalk match to leg_claim_history. Order by claim_txn_id lexicographically ascending. Use all if fewer qualify; do nothing if none qualify.",
   "changes": "Evaluate selection and retain original values first. Set each selected claim_transactions.amount = round(original amount / 100). For each affected claim calculate D as the sum of new minus original amounts across its selected rows. In every existing bdx_claims row for that claim with bdx_month >= 2025-12, add D to reserve_outstanding and incurred, then set reserve_usd = round(new reserve_outstanding * fx_rate) and incurred_usd = round(new incurred * fx_rate). For every affected month set the existing bdx_cover.reserve_usd to the resulting bdx_claims reserve_usd sum. Do not alter claim statuses, payment fields, legacy movements, legacy claim balances, legacy controls or crosswalks. Leave all other rows and columns unchanged. Round money to cents, half up.",
   "first_month": "2025-12",
   "effect": "Converted outstanding reserves and incurred are understated by the lost reserve amounts, including in subsequent reported snapshots. A closed claim can consequently show an erroneous negative reserve. Correct conversion would divide legacy integer cents by 100 exactly once.",
   "systems_agree": false,
   "monthly_controls_would_catch": true,
   "monthly_controls_reason": "Reconciling converted reserve movements and cut-over claim balances to legacy cents would expose the scaling error."
  },
  {
   "id": "B09",
   "title": "Legacy commission percentages treated as decimal rates",
   "real_world_cause": "The commission loader treats a legacy percentage such as 12.5 as a decimal rate instead of converting it to 0.125.",
   "area": "conversion",
   "tables": [
    "broker_commissions",
    "bdx_premium",
    "bdx_cover"
   ],
   "selection": "Select the first 3 broker_commissions rows with source_system = LEGACY, amount > 0 and rate > 0 whose transaction has source_system = LEGACY and booked_date in 2025-12, and whose transaction crosswalk matches a leg_commissions row with RATE_PCT > 0. Order by commission_id lexicographically ascending. Use all if fewer qualify; do nothing if none qualify.",
   "changes": "Evaluate selection and retain original values first. For each selected commission set rate = the matched leg_commissions.RATE_PCT interpreted as a decimal number, and amount = round(original pas_transactions.written_premium * new rate). For every bdx_premium row with that transaction_id and bdx_month >= 2025-12, set broker_commission_usd = round(new commission amount * that row's fx_rate). In every affected month's existing bdx_cover row replace broker_commission_usd with the resulting bdx_premium sum. Keep gross premium, MGA commission and net due unchanged because BOOK.md defines net due as gross less MGA commission. Keep pas_brokers, legacy commissions, legacy controls and crosswalks unchanged. Leave all other rows and columns unchanged. Round money to cents, half up.",
   "first_month": "2025-12",
   "effect": "Broker commission liabilities and reported broker commissions become approximately 100 times their correct amounts. Correct rates equal RATE_PCT / 100, with commission rounded from premium times that decimal rate; carrier net due is unaffected under the book's rules.",
   "systems_agree": false,
   "monthly_controls_would_catch": true,
   "monthly_controls_reason": "Comparing converted commissions to legacy amounts or the broker master rate would expose the percentage scaling error."
  },
  {
   "id": "B10",
   "title": "USD policy keyed as CAD throughout the book",
   "real_world_cause": "An operator chooses CAD when entering a USD policy, and every downstream process inherits that currency.",
   "area": "source",
   "tables": [
    "pas_policies",
    "bdx_premium",
    "bdx_risk",
    "bdx_claims",
    "bdx_cover"
   ],
   "selection": "Select the first pas_policies row with source_system = NEW, currency = USD and effective_date in 2026-01, having at least one pas_transactions row booked in 2026-01, no transaction booked before 2026-01-01, and no associated claim reported before 2026-01-01. Require all its transactions, coverages, claims, claim movements, commissions and instalments to have source_system = NEW, and require that none of their identifiers or the policy identifier appear as conv_crosswalk.target_key for their corresponding entity. Order by policy_id lexicographically ascending. If none qualify, make no changes.",
   "changes": "Evaluate selection and retain original values first. Set the selected policy's currency = CAD. For all its bdx_premium rows set currency = CAD, fx_rate = the CAD fx_rates.usd_per_unit for bdx_month, gross_premium_usd = round(gross_premium * new fx_rate), broker_commission_usd = round(the matching broker_commissions.amount * new fx_rate), mga_commission_usd = round(new gross_premium_usd * the matching binding_terms.mga_commission_rate), and net_due_usd = new gross_premium_usd - new mga_commission_usd. Set currency = CAD in all its bdx_risk rows. In all its bdx_claims rows set currency = CAD and fx_rate = the month's CAD rate, then recompute paid_in_month_usd, reserve_usd and incurred_usd as their respective local fields times that rate, rounded. For every month touched, replace the existing bdx_cover gross_premium_usd, broker_commission_usd, mga_commission_usd and net_due_usd with the respective bdx_premium sums, and paid_in_month_usd and reserve_usd with the respective bdx_claims sums. The numeric local premiums, commissions, instalments, limits and claim amounts remain unchanged and now inherit CAD denomination from the policy. No legacy or crosswalk records change. Leave all other rows and columns unchanged. Round money to cents, half up.",
   "first_month": "2026-01",
   "effect": "All selected policy amounts are incorrectly denominated in CAD rather than USD. A positive amount A is reported as round(A * CAD rate) USD rather than A USD, understating it when the rate is below one; negative amounts are reduced in magnitude. Correct records would retain USD currency and a rate of one.",
   "systems_agree": true,
   "monthly_controls_would_catch": false,
   "monthly_controls_reason": "Internal reconciliations would agree throughout, and detection would require checking the currency against an independent policy instruction or document."
  },
  {
   "id": "B11",
   "title": "Expense payment overstated at source",
   "real_world_cause": "A claims operator adds an extra 1000.00 when entering an expense payment, and reporting faithfully uses the entered amount.",
   "area": "source",
   "tables": [
    "claim_transactions",
    "bdx_claims",
    "bdx_cover"
   ],
   "selection": "Select the first claim_transactions row with source_system = NEW, txn_type = PAY_EXP, amount > 0 and booked_date in 2026-01 whose claim has source_system = NEW and reported_date in 2026-01. Require no claim or claim_txn crosswalk to reference that claim or any of its movements. Order by claim_txn_id lexicographically ascending. If none qualify, make no changes.",
   "changes": "Evaluate selection and retain original values first. Increase the selected claim_transactions.amount by 1000.00. In every existing bdx_claims row for its claim with bdx_month >= 2026-01, increase paid_to_date and incurred by 1000.00, and increase paid_in_month by 1000.00 only for 2026-01. Set paid_in_month_usd = round(new paid_in_month * fx_rate) and incurred_usd = round(new incurred * fx_rate) in those rows. For each affected month replace the existing bdx_cover.paid_in_month_usd with the resulting bdx_claims sum. No legacy records, reserves, recoveries, claim statuses or crosswalks change. Leave all other rows and columns unchanged. Round money to cents, half up.",
   "first_month": "2026-01",
   "effect": "January expense payments and every subsequent reported cumulative paid and incurred balance for the claim are overstated by 1000.00 in policy currency, translated at each reporting month's rate. Correct records would contain the original payment amount.",
   "systems_agree": true,
   "monthly_controls_would_catch": false,
   "monthly_controls_reason": "The movement ledger and all reports would reconcile, so detection would require independent payment evidence such as the invoice or disbursement record."
  },
  {
   "id": "B12",
   "title": "Coverage limit entered at half the agreed amount",
   "real_world_cause": "A source policy entry uses half the agreed coverage limit, and the same value flows into transactions and risk reporting.",
   "area": "source",
   "tables": [
    "pas_coverages",
    "pas_transactions",
    "bdx_risk"
   ],
   "selection": "Select the first pas_coverages row with source_system = NEW and limit_amount >= 2.00 whose policy has source_system = NEW and effective_date in 2026-01. Require at least one transaction for the coverage booked in 2026-01, require every transaction for the coverage to have source_system = NEW, booked_date >= 2026-01-01 and limit_after equal to the original coverage limit_amount, and require no coverage or transaction crosswalk to reference these rows. Order by coverage_id lexicographically ascending. If none qualify, make no changes.",
   "changes": "Evaluate selection and retain original values first. Let L = round(original selected pas_coverages.limit_amount / 2). Set that coverage's limit_amount = L. Set limit_after = L in every pas_transactions row for that coverage. Set limit_amount = L in every bdx_risk row for that coverage. Keep referral_flag unchanged; halving an existing limit does not create a new requirement for referral. Keep premiums, annualized changes, commissions, instalments, claims and all bdx_cover fields unchanged because the book specifies no automatic premium recalculation from a limit and the cover sheet contains no limit total. No legacy or crosswalk records change. Leave all other rows and columns unchanged. Round money to cents, half up.",
   "first_month": "2026-01",
   "effect": "The recorded contractual limit and every reported month-end limit for the coverage are understated by original limit_amount minus L. Correct records would show the original full limit; reported premium and claim balances remain unchanged.",
   "systems_agree": true,
   "monthly_controls_would_catch": false,
   "monthly_controls_reason": "The source coverage, transaction history and risk reports would agree, so detection would require comparison with an independent binding instruction or policy document."
  }
 ]
}
