Keysproperty operations Corbelstone Residential

#259 · Duplicate ticket

reverted Thu 16:00 · by Joris K. (maintenance lead, scripted) · ticket 5358

Ledger row
policy v2
The call
undo: POST /tickets/5358/merge into=5357
Action, tier
merge_duplicate_ticket, tier 0
Decided by
rules: Same cleaning 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 26 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 #258 (done).

Evidence

{
  "amount_at_risk": null,
  "building_id": 26,
  "category": "cleaning",
  "currency": null,
  "minutes_apart": 360,
  "original_source": "tenant_app",
  "original_ticket_id": 5357,
  "original_vendor_id": 255,
  "scope": "common",
  "source": "phone",
  "stake_note": "a second vendor call-out for one fault",
  "started_at": "2026-10-29T15:38:27.268859",
  "summary": "Common area needs cleaning",
  "ticket_id": 5358,
  "unit_id": null,
  "vendor_id_on_duplicate": 271
}

Before and after

{
  "after": {
    "restored_to": {
      "tickets": [
        {
          "closed_at": "2026-10-31T11:37:14.255084",
          "duplicate_of": 5357,
          "id": 5358,
          "status": "merged"
        }
      ]
    },
    "undone": [
      {
        "closed_at": "2026-10-31T11:37:14.255084",
        "duplicate_of": 5357,
        "id": 5358,
        "restored": "tickets",
        "status": "merged"
      },
      {
        "compensated": "ticket_events",
        "id": 27036,
        "ticket_id": 5358,
        "type": "merged_as_duplicate_reverted"
      }
    ]
  },
  "before": {
    "ticket_events": [
      {
        "id": 27035,
        "ticket_id": 5358,
        "type": "merged_as_duplicate"
      }
    ],
    "tickets": [
      {
        "closed_at": "2026-10-29T15:40:00",
        "duplicate_of": 5357,
        "id": 5358,
        "status": "merged"
      }
    ]
  },
  "endpoint": "undo: POST /tickets/5358/merge into=5357",
  "note": "Rolled back 2 change(s).",
  "ok": true,
  "rollback_fn_name": null
}

Arguments

{
  "original_ticket_id": 5357,
  "ticket_id": 5358
}