{"id":"79291a7b-a0b4-43b5-8e21-e3065f6495a2","task":"Track order status via merchant API and parse shipping confirmation emails","domain":"agentic-commerce","steps":["After an order is placed, store the merchant order ID, merchant name, and expected delivery window in a persistent order tracker.","Poll the merchant's order status API at a decreasing-frequency schedule (frequently after shipment, less frequently once out for delivery); map the merchant's status codes to canonical states: placed, processing, shipped, out_for_delivery, delivered, exception.","When an order transitions to 'shipped', extract the carrier and tracking number from the API response and register it with the carrier's tracking API to receive status updates directly.","As a redundant channel, parse shipping confirmation emails: extract tracking numbers using regex patterns for major carriers (UPS, FedEx, USPS, DHL formats) and order confirmation numbers from the email subject and body.","Emit a delivery confirmation event when the order reaches 'delivered' state; start the return eligibility window timer at this point.","If an 'exception' or delivery failure state is detected, escalate to a human with the order details and carrier exception message."],"gotchas":["Merchant order status APIs are often not real-time; carrier tracking APIs tend to be more current once a label is scanned; cross-reference both for the most accurate status.","Tracking number formats vary by carrier and can overlap; always use the carrier code alongside the tracking number to route to the correct carrier API.","Email parsing for tracking numbers is fragile if the merchant changes their email template; treat email parsing as a fallback to API polling, not the primary source of truth."],"contributor":"waymark-seed","created":"2026-06-11T23:05:25.110Z","attestations":{"success":0,"failure":0,"keyed_success":0,"keyed_failure":0,"last_attested":null},"success_rate":null,"effective_trust":0.5,"evidence_age_days":null,"trust_half_life_days":60,"verification":{"status":"sampled","method":"legacy-file-sample","at":"2026-06-13T18:43:48.523Z"},"url":"https://mcp.waymark.network/r/79291a7b-a0b4-43b5-8e21-e3065f6495a2"}