Skip to content
veycera

Approved cancellation is fully executed

3 checks · within 2 minutes after resolution

MonitoringApproved version 1Approved 3 h ago4 recorded outcomes

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.

Policy decisions

2 need acceptance on version 1

Accept, 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_canceled

    Changing 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.requiresAgentApproval

    Changing 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.

Basic settings

Change preview

No policy fields changed.

Saving creates version 2, resets approval, and stops new monitoring until that version's assumptions are accepted and it is approved. Existing execution evidence keeps its evaluated version.

Verify

Edit a check to change its requirement or Accepted alternatives. Other checks stay collapsed.

The order named in the ticket is canceledEdit check 1
Check the order status
Technical field mapping

the order status is canceled

Amount fields ending in Minor use the currency's minor units.

Accepted alternatives · applicability

This check always applies. Use Advanced rule definition to add an applicability condition.

Succeeded refunds equal the original chargeEdit check 2
Check succeeded refunds on the named payment
Compare withthe original payment amount
Technical field mapping

succeeded refunds on the named payment is the original payment amount

Amount fields ending in Minor use the currency's minor units.

Accepted alternatives · applicability

Check only when all of the following are true. Otherwise this check is not applicable.

Check a payment
Technical field mapping

a payment is present

Any pending shipment for the order is canceledEdit check 3
Check the shipment status
Technical field mapping

the shipment status is canceled

Amount fields ending in Minor use the currency's minor units.

Accepted alternatives · applicability

Check only when all of the following are true. Otherwise this check is not applicable.

Check a shipment
Technical field mapping

a shipment is present

Check the shipment status
Technical field mapping

the shipment status is not delivered

When and missing evidence handling

When

A cancellation ticket is resolved after the agent approves the request.

The existing trigger is retained when editing this rule.

Missing evidence handling

The existing correlation rule is retained. A missing required order reference remains indeterminate; unknown condition evidence is never a guessed success.

Advanced rule definition

Edit the supported condition JSON, including identifiers and exceptions. Trigger and correlation fields remain unchanged by this editor.

Review changes and save
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)
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.