Keysproperty operations Corbelstone Residential

#227 · Duplicate ticket

reverted Tue 08:20 · by Joris K. (maintenance lead, scripted) · ticket 5093

Ledger row
policy v2
The call
undo: POST /tickets/5093/merge into=5092
Action, tier
merge_duplicate_ticket, tier 0
Decided by
rules: Same common_light in the same building, 355 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 78 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 #76 (done).

Evidence

{
  "amount_at_risk": null,
  "building_id": 78,
  "category": "common_light",
  "currency": null,
  "minutes_apart": 355,
  "original_source": "phone",
  "original_ticket_id": 5092,
  "original_vendor_id": 94,
  "scope": "common",
  "source": "site_team",
  "stake_note": "a second vendor call-out for one fault",
  "started_at": "2026-10-25T22:54:51.166267",
  "summary": "Hallway light out",
  "ticket_id": 5093,
  "unit_id": null,
  "vendor_id_on_duplicate": 82
}

Before and after

{
  "after": {
    "restored_to": {
      "tickets": [
        {
          "closed_at": "2026-10-29T17:40:32.361127",
          "duplicate_of": null,
          "id": 5093,
          "status": "closed"
        }
      ]
    },
    "undone": [
      {
        "closed_at": "2026-10-29T17:40:32.361127",
        "duplicate_of": null,
        "id": 5093,
        "restored": "tickets",
        "status": "closed"
      },
      {
        "compensated": "ticket_events",
        "id": 27009,
        "ticket_id": 5093,
        "type": "merged_as_duplicate_reverted"
      }
    ]
  },
  "before": {
    "ticket_events": [
      {
        "id": 27004,
        "ticket_id": 5093,
        "type": "merged_as_duplicate"
      }
    ],
    "tickets": [
      {
        "closed_at": "2026-10-27T08:00:00",
        "duplicate_of": 5092,
        "id": 5093,
        "status": "merged"
      }
    ]
  },
  "endpoint": "undo: POST /tickets/5093/merge into=5092",
  "note": "Rolled back 2 change(s).",
  "ok": true,
  "rollback_fn_name": null
}

Arguments

{
  "original_ticket_id": 5092,
  "ticket_id": 5093
}