Approved cancellation is fully executed
3 checks · within 2 minutes after resolution
2 policy decisions are unrecorded for approved version 1. Approval is retained; review before renewed approval.
What retained approval means
This retained or seeded approval does not prove that a person accepted its policy assumptions. Existing approval has been preserved without inventing decisions. New approval still requires acceptance on the version being approved.
Approved policy
- When
- A cancellation ticket is resolved after the agent approves the request.
- Verify
- The order named in the ticket is canceled
- Succeeded refunds equal the original charge
- Any pending shipment for the order is canceled
2 checks are conditional. Their applicability is defined under Accepted alternatives.
- Within
- 2 minutes after the ticket is resolved. Observed unmet conditions become violated at that deadline; condition evidence still unknown after the deadline is indeterminate.
- Missing evidence handling
- Use the order explicitly named in the ticket. If that reference cannot be resolved, the result is indeterminate and needs review. No match is inferred from email or recency.
- Accepted alternatives
When the 2 conditional checks apply
- Succeeded refunds equal the original charge
Check only when a payment is present. Otherwise this check is not applicable.
- Any pending shipment for the order is canceled
Check only when a shipment is present and the shipment status is not delivered. Otherwise this check is not applicable.
- Succeeded refunds equal the original charge
Policy decisions
2 need acceptance on version 1Accept, request a change, or defer. Each decision records who decided and which version it applies to.
- A shipment already delivered is exempt from cancellation (expressed as an applicableWhen guard).Undecided
Source and effect on the rule
Source: policy document Approved cancellation workflowNo historical sample behind itGoverns: fulfillment_canceledChanging it touches condition "Any pending shipment for the order is canceled" (fulfillment_canceled, applies only when shipment.exists eq true and shipment.status neq "delivered"). Recording a change does not alter monitoring: v1 keeps being enforced as written until the conditions are edited, which creates v2 and resets approval.
- Tickets resolved without agent approval (declined or escalated requests) are not monitored.Undecided
Source and effect on the rule
Source: policy document Approved cancellation workflowNo historical sample behind itField: trigger.requiresAgentApprovalChanging it touches the trigger (currently only tickets the agent approved are monitored). Recording a change does not alter monitoring: v1 keeps being enforced as written until the conditions are edited, which creates v2 and resets approval.
Edit rule and preview changes
Changes create a new unapproved version. Read the preview before saving; historical executions keep their original policy.
Rule sources and technical definition
When a support agent approves an order cancellation and resolves the ticket, the corresponding order must be canceled, the correct payment refunded, and any pending fulfillment canceled within two minutes.
- onboarding instruction · customer request
Approved cancellations must be fully executed within two minutes.
- Approved cancellation workflow · policy document
cancels the order in commerce, refunds the charge in payments, cancels any pending shipment in fulfillment, then resolves the ticket
- Commerce API, Payments API, Fulfillment API · api schema
Advanced rule definition (JSON)
{
"id": "ctr_cancellation_refund_yc-recording-v1",
"tenantId": "yc-recording-v1",
"name": "Approved cancellation is fully executed",
"description": "When a support agent approves an order cancellation and resolves the ticket, the corresponding order must be canceled, the correct payment refunded, and any pending fulfillment canceled within two minutes.",
"version": 1,
"trigger": {
"object": "ticket",
"categories": [
"cancellation"
],
"status": "resolved",
"requiresAgentApproval": true
},
"identifiers": {
"order": {
"source": "ticket.orderRef",
"required": true
}
},
"conditions": [
{
"path": "order.status",
"op": "eq",
"value": "canceled",
"id": "order_canceled",
"description": "The order named in the ticket is canceled",
"applicableWhen": []
},
{
"path": "refunds.succeededMinor",
"op": "eq",
"ref": "charge.amountMinor",
"id": "payment_refunded",
"description": "Succeeded refunds equal the original charge",
"applicableWhen": [
{
"path": "charge.exists",
"op": "eq",
"value": true
}
]
},
{
"path": "shipment.status",
"op": "eq",
"value": "canceled",
"id": "fulfillment_canceled",
"description": "Any pending shipment for the order is canceled",
"applicableWhen": [
{
"path": "shipment.exists",
"op": "eq",
"value": true
},
{
"path": "shipment.status",
"op": "neq",
"value": "delivered"
}
]
}
],
"instance": {
"eventTypes": [
"ticket.resolved"
],
"initialRetrySeconds": 30,
"maxRetrySeconds": 600,
"maxAgeSeconds": 86400
},
"deadlineSeconds": 120,
"severity": "high",
"approved": true,
"approvedAt": "2026-10-30T14:32:32.908Z",
"enabled": true,
"draftedBy": "template",
"provenance": {
"sources": [
{
"kind": "customer_request",
"ref": "onboarding instruction",
"excerpt": "Approved cancellations must be fully executed within two minutes."
},
{
"kind": "policy_document",
"ref": "Approved cancellation workflow",
"excerpt": "cancels the order in commerce, refunds the charge in payments, cancels any pending shipment in fulfillment, then resolves the ticket"
},
{
"kind": "api_schema",
"ref": "Commerce API, Payments API, Fulfillment API"
}
],
"assumptions": [
"A shipment already delivered is exempt from cancellation (expressed as an applicableWhen guard).",
"Tickets resolved without agent approval (declined or escalated requests) are not monitored."
]
},
"createdAt": "2026-10-30T14:32:32.908Z",
"updatedAt": "2026-10-30T14:32:32.908Z"
}Recorded outcomes (4)
- Ticket tkt_mvv2ng8x61fgxipfEvaluated version 1 · Demo time · Oct 30, 14:38 UTCVerified
- Ticket tkt_mvv2nfui5s1rvec8Evaluated version 1 · Demo time · Oct 30, 14:38 UTCVerified
- Ticket tkt_mvv2nfg35j9jgzadEvaluated version 1 · Demo time · Oct 30, 14:38 UTCVerified
- Ticket tkt_mvv2nf1k5atn3o3zEvaluated version 1 · Demo time · Oct 30, 14:38 UTCVerified
Version and policy decision history
Rule versions
- Version 1
3 checks · 2 minutes · 3 h ago · 4 recorded executions
Policy decisions
No human policy decisions recorded. Approval alone is not retrofitted as acceptance.