#422 · Duplicate ticket
done Mon 19:54 · ticket 5646
Ledger row
policy v2
policy v2
- The call
- POST /tickets/5646/merge into=5617
- Action, tier
- merge_duplicate_ticket, tier 0
- Decided by
- rules: Same common_light in the same building, 186 minutes apart; merge so only one vendor goes.
- Controller
- Allowed: merge_duplicate_ticket is tier 0 (just do it); within budget (1 of 6 actions at building 57 this hour).authorityconditionscooldownbudget
- Definition
- duplicate_ticket v2
- At stake
- a second vendor call-out for one fault
- Outcome
- Ticket 5646 merged into ticket 5617.
- Undo
- Reopen the duplicate as its own ticket.
Undo
Restores the before-snapshot below and writes a new row.
Evidence
{
"amount_at_risk": null,
"building_id": 57,
"category": "common_light",
"currency": null,
"minutes_apart": 186,
"original_source": "site_team",
"original_ticket_id": 5617,
"original_vendor_id": null,
"scope": "common",
"source": "tenant_app",
"stake_note": "a second vendor call-out for one fault",
"started_at": "2026-11-02T19:53:39.387066",
"summary": "Hallway light out",
"ticket_id": 5646,
"unit_id": null,
"vendor_id_on_duplicate": null
}Before and after
{
"after": {
"ticket_events": [
{
"id": 27095,
"ticket_id": 5646,
"type": "merged_as_duplicate"
}
],
"tickets": [
{
"closed_at": "2026-11-02T19:54:00",
"duplicate_of": 5617,
"id": 5646,
"status": "merged"
}
]
},
"before": {
"tickets": [
{
"closed_at": null,
"duplicate_of": null,
"id": 5646,
"status": "new"
}
]
},
"endpoint": "POST /tickets/5646/merge into=5617",
"note": "Ticket 5646 merged into ticket 5617.",
"ok": true,
"rollback_fn_name": "undo_merge_duplicate_ticket"
}Arguments
{
"original_ticket_id": 5617,
"ticket_id": 5646
}