# ListWorkOrdersByProductionOrder

## Overview

ListWorkOrdersByProductionOrder lists the operation-level execution plan under one production order in sequence order for supervisors and execution UIs.

## Business Rules

- Production-order reference is required.
- Results are ordered by routing sequence.
- Optional filters may restrict by work-order status or assigned work center.
- The query returns summary fields suitable for execution boards, including sequence, status, work-center context, and progress totals.

## Process Flow

```mermaid
flowchart TD
    A[Receive production-order reference and filters] --> B[Query child work orders]
    B --> C[Apply optional status or work-center filters]
    C --> D[Order by sequence]
    D --> E[Return work-order list]
```

## External Dependencies

- None

## Error Scenarios

- **PRODUCTION_ORDER_REFERENCE_REQUIRED**: Production-order reference was not provided.

## Test Cases

- lists work orders for a production order in sequence order
- filters work orders by status when provided
- filters work orders by work center when provided
- returns summary fields with sequence and progress data
- returns an empty list when no work orders exist
- returns error when the production-order reference is missing
