Skip to content

fix(platform): let a Shopify order's fulfillment_status be null #5343

Open

Description

@tale-code-bot

Status quo. Shopify's list_orders and get_order declare an order's fulfillment_status as a string, at main ee8e36b49dbb1aae0e09a6cd4aaf3b56974f55c6:

Shopify's own values differ. In the REST Admin API reference for the Order resource, an order's fulfillment_status is one of:

  • fulfilled: every line item has been fulfilled;
  • null: none of the line items have been fulfilled;
  • partial;
  • restocked.

So for the most common order, a new one nothing has shipped for yet, Shopify answers null. 'unfulfilled' is not a value Shopify sends there. The bodies pass Shopify's orders on unchanged, so a live call returns null where the action promises a string:

  • A step or an agent that trusts the declared output reads a string that is not there.
  • No scenario can stand for an unfulfilled order: the catalog test (every scenario output fits the output the action declares, services/platform/lib/shared/schemas/shipped-connectors.test.ts) refuses null for a string.

The scenarios that #5320 ships (task TALE-412) leave that order out for this reason.

Asked.

  • Declare fulfillment_status: string | null on both actions, as Twilio's list_messages and get_message declare date_sent: string | null on feature-train (feat(platform): ship scenarios for the Twilio connector).
  • Make list_orders' mock answer null for its unfulfilled order.
  • Once feat(platform): ship scenarios for the Shopify connector #5320's scenarios have landed, add an unfulfilled order to a list_orders scenario and to a get_order scenario, each proven in SCENARIO_PROOFS.

Found while shipping Shopify's scenarios (#5320, task TALE-412).

Activity

  1. added
    agent-ready
    on Nov 3, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    agent-readybugservice: platform

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions