Keysproperty operations Corbelstone Residential

#239 · Duplicate ticket

reverted Tue 19:20 · by Ilse V. (duty manager, scripted) · ticket 5246

Ledger row
policy v2
The call
undo: POST /tickets/5246/merge into=5245
Action, tier
merge_duplicate_ticket, tier 0
Decided by
rules: Same common_light in the same building, 360 minutes apart; merge so only one vendor goes.
Controller
Allowed: merge_duplicate_ticket is tier 0 (just do it); within budget (0 of 6 actions at building 117 this hour).
authority
conditions
cooldown
budget
Definition
duplicate_ticket v2
At stake
a second vendor call-out for one fault
Outcome
two separate faults on different floors, not one; both tickets stay open [scripted on-call responses (synthetic)]
Undo
Reopen the duplicate as its own ticket.

Undo

Nothing to undo from here: reverted.

Follows #238 (done).

Evidence

{
  "amount_at_risk": null,
  "building_id": 117,
  "category": "common_light",
  "currency": null,
  "minutes_apart": 360,
  "original_source": "phone",
  "original_ticket_id": 5245,
  "original_vendor_id": 86,
  "scope": "common",
  "source": "tenant_app",
  "stake_note": "a second vendor call-out for one fault",
  "started_at": "2026-10-27T18:59:42.008551",
  "summary": "Hallway light out",
  "ticket_id": 5246,
  "unit_id": null,
  "vendor_id_on_duplicate": 58
}

Before and after

{
  "after": {
    "restored_to": {
      "tickets": [
        {
          "closed_at": "2026-10-28T02:19:01.913592",
          "duplicate_of": 5245,
          "id": 5246,
          "status": "merged"
        }
      ]
    },
    "undone": [
      {
        "closed_at": "2026-10-28T02:19:01.913592",
        "duplicate_of": 5245,
        "id": 5246,
        "restored": "tickets",
        "status": "merged"
      },
      {
        "compensated": "ticket_events",
        "id": 27019,
        "ticket_id": 5246,
        "type": "merged_as_duplicate_reverted"
      }
    ]
  },
  "before": {
    "ticket_events": [
      {
        "id": 27018,
        "ticket_id": 5246,
        "type": "merged_as_duplicate"
      }
    ],
    "tickets": [
      {
        "closed_at": "2026-10-27T19:00:00",
        "duplicate_of": 5245,
        "id": 5246,
        "status": "merged"
      }
    ]
  },
  "endpoint": "undo: POST /tickets/5246/merge into=5245",
  "note": "Rolled back 2 change(s).",
  "ok": true,
  "rollback_fn_name": null
}

Arguments

{
  "original_ticket_id": 5245,
  "ticket_id": 5246
}