# Stage A: did the right order get recorded?

All data, rules, identifiers, and findings in this demonstration are fictional. It makes no claim about a customer or production system.

Observation time(s): 2026-09-01T12:00:00Z.

Rule version(s): PACK-24-v1.

| Case | Result | Explanation |
|---|---|---|
| A1 | Matches | The completed receiving record explicitly links to the request and satisfies the selected rule. |
| A2 | Mismatch | Receiving record contradicts approved values for: quantity. |
| A3 | Mismatch | Two active receiving orders are explicitly linked to one request, while splits are forbidden. |
| A4 | Pending | The explicitly linked order is processing within the fictional completion deadline. |
| A5 | Mismatch | Receiving record contradicts approved values for: unit_price. |
| A6 | Review needed | The receiving snapshot is marked incomplete, so absence of an order is not proof. |
| C1 | Matches | The completed receiving record explicitly links to the request and satisfies the selected rule. |
| C2 | Matches | The completed receiving record explicitly links to the request and satisfies the selected rule. |
| C3 | Review needed | Receiving order O-009 has conflicting exported values. |

Counts: Matches 3, Mismatch 3, Pending 1, Review needed 2.

No overall accuracy claim is made from these hand-built cases.

## A1: Correct carton conversion

**Matches** — The completed receiving record explicitly links to the request and satisfies the selected rule.

### Expected and observed

| Field | Approved expectation | Receiving evidence |
|---|---|---|
| request id | R-001 | R-001 |
| order id | — | O-001 |
| sku | WIDGET | WIDGET |
| quantity | 240 | 240 |
| unit | item | item |
| unit price | 2.50 | 2.50 |
| price basis | per_item | per_item |
| currency | USD | USD |
| status | — | completed |

### Source evidence

**approved-requests#R-001**

```json
{
  "request_id": "R-001",
  "sku": "WIDGET",
  "quantity": "10",
  "unit": "carton",
  "unit_price": "2.50",
  "price_basis": "per_item",
  "currency": "USD"
}
```

**approved-rules#PACK-24-v1**

```json
{
  "version": "PACK-24-v1",
  "applies_to_sku": "WIDGET",
  "request_unit": "carton",
  "items_per_request_unit": "24",
  "receiving_unit": "item",
  "price_basis": "per_item"
}
```

**receiving-export#E-001**

```json
{
  "as_of": "2026-09-01T12:00:00Z",
  "complete": true
}
```

**receiving-export#E-001/O-001**

```json
{
  "order_id": "O-001",
  "request_id": "R-001",
  "sku": "WIDGET",
  "quantity": "240",
  "unit": "item",
  "unit_price": "2.50",
  "price_basis": "per_item",
  "currency": "USD",
  "status": "completed",
  "recorded_at": "2026-09-01T10:00:00Z"
}
```


## A2: Wrong quantity

**Mismatch** — Receiving record contradicts approved values for: quantity.

### Expected and observed

| Field | Approved expectation | Receiving evidence |
|---|---|---|
| request id | R-002 | R-002 |
| order id | — | O-002 |
| sku | WIDGET | WIDGET |
| quantity | 240 | 10 |
| unit | item | item |
| unit price | 2.50 | 2.50 |
| price basis | per_item | per_item |
| currency | USD | USD |
| status | — | completed |

### Source evidence

**approved-requests#R-002**

```json
{
  "request_id": "R-002",
  "sku": "WIDGET",
  "quantity": "10",
  "unit": "carton",
  "unit_price": "2.50",
  "price_basis": "per_item",
  "currency": "USD"
}
```

**approved-rules#PACK-24-v1**

```json
{
  "version": "PACK-24-v1",
  "applies_to_sku": "WIDGET",
  "request_unit": "carton",
  "items_per_request_unit": "24",
  "receiving_unit": "item",
  "price_basis": "per_item"
}
```

**receiving-export#E-002**

```json
{
  "as_of": "2026-09-01T12:00:00Z",
  "complete": true
}
```

**receiving-export#E-002/O-002**

```json
{
  "order_id": "O-002",
  "request_id": "R-002",
  "sku": "WIDGET",
  "quantity": "10",
  "unit": "item",
  "unit_price": "2.50",
  "price_basis": "per_item",
  "currency": "USD",
  "status": "completed",
  "recorded_at": "2026-09-01T10:00:00Z"
}
```


## A3: Forbidden duplicate creation

**Mismatch** — Two active receiving orders are explicitly linked to one request, while splits are forbidden.

### Expected and observed

| Field | Approved expectation | Receiving evidence |
|---|---|---|
| request id | R-003 | — |
| order ids | — | ['O-003a', 'O-003b'] |
| sku | WIDGET | — |
| quantity | 240 | — |
| unit | item | — |
| unit price | 2.50 | — |
| price basis | per_item | — |
| currency | USD | — |

### Source evidence

**approved-requests#R-003**

```json
{
  "request_id": "R-003",
  "sku": "WIDGET",
  "quantity": "10",
  "unit": "carton",
  "unit_price": "2.50",
  "price_basis": "per_item",
  "currency": "USD"
}
```

**approved-rules#PACK-24-v1**

```json
{
  "version": "PACK-24-v1",
  "applies_to_sku": "WIDGET",
  "request_unit": "carton",
  "items_per_request_unit": "24",
  "receiving_unit": "item",
  "price_basis": "per_item"
}
```

**receiving-export#E-003**

```json
{
  "as_of": "2026-09-01T12:00:00Z",
  "complete": true
}
```

**receiving-export#E-003/O-003a**

```json
{
  "order_id": "O-003a",
  "status": "completed"
}
```

**receiving-export#E-003/O-003b**

```json
{
  "order_id": "O-003b",
  "status": "completed"
}
```


## A4: Completion still pending

**Pending** — The explicitly linked order is processing within the fictional completion deadline.

### Expected and observed

| Field | Approved expectation | Receiving evidence |
|---|---|---|
| request id | R-004 | R-004 |
| order id | — | O-004 |
| sku | WIDGET | WIDGET |
| quantity | 240 | 240 |
| unit | item | item |
| unit price | 2.50 | 2.50 |
| price basis | per_item | per_item |
| currency | USD | USD |
| status | — | processing |

### Source evidence

**approved-requests#R-004**

```json
{
  "request_id": "R-004",
  "sku": "WIDGET",
  "quantity": "10",
  "unit": "carton",
  "unit_price": "2.50",
  "price_basis": "per_item",
  "currency": "USD"
}
```

**approved-rules#PACK-24-v1**

```json
{
  "version": "PACK-24-v1",
  "applies_to_sku": "WIDGET",
  "request_unit": "carton",
  "items_per_request_unit": "24",
  "receiving_unit": "item",
  "price_basis": "per_item"
}
```

**receiving-export#E-004**

```json
{
  "as_of": "2026-09-01T12:00:00Z",
  "complete": true
}
```

**receiving-export#E-004/O-004**

```json
{
  "order_id": "O-004",
  "request_id": "R-004",
  "sku": "WIDGET",
  "quantity": "240",
  "unit": "item",
  "unit_price": "2.50",
  "price_basis": "per_item",
  "currency": "USD",
  "status": "processing",
  "recorded_at": "2026-09-01T10:00:00Z"
}
```


## A5: Changed price

**Mismatch** — Receiving record contradicts approved values for: unit_price.

### Expected and observed

| Field | Approved expectation | Receiving evidence |
|---|---|---|
| request id | R-005 | R-005 |
| order id | — | O-005 |
| sku | WIDGET | WIDGET |
| quantity | 240 | 240 |
| unit | item | item |
| unit price | 2.50 | 2.75 |
| price basis | per_item | per_item |
| currency | USD | USD |
| status | — | completed |

### Source evidence

**approved-requests#R-005**

```json
{
  "request_id": "R-005",
  "sku": "WIDGET",
  "quantity": "10",
  "unit": "carton",
  "unit_price": "2.50",
  "price_basis": "per_item",
  "currency": "USD"
}
```

**approved-rules#PACK-24-v1**

```json
{
  "version": "PACK-24-v1",
  "applies_to_sku": "WIDGET",
  "request_unit": "carton",
  "items_per_request_unit": "24",
  "receiving_unit": "item",
  "price_basis": "per_item"
}
```

**receiving-export#E-005**

```json
{
  "as_of": "2026-09-01T12:00:00Z",
  "complete": true
}
```

**receiving-export#E-005/O-005**

```json
{
  "order_id": "O-005",
  "request_id": "R-005",
  "sku": "WIDGET",
  "quantity": "240",
  "unit": "item",
  "unit_price": "2.75",
  "price_basis": "per_item",
  "currency": "USD",
  "status": "completed",
  "recorded_at": "2026-09-01T10:00:00Z"
}
```


## A6: Incomplete receiving evidence

**Review needed** — The receiving snapshot is marked incomplete, so absence of an order is not proof.

### Expected and observed

| Field | Approved expectation | Receiving evidence |
|---|---|---|
| request id | R-006 | — |
| sku | WIDGET | — |
| quantity | 240 | — |
| unit | item | — |
| unit price | 2.50 | — |
| price basis | per_item | — |
| currency | USD | — |

### Source evidence

**approved-requests#R-006**

```json
{
  "request_id": "R-006",
  "sku": "WIDGET",
  "quantity": "10",
  "unit": "carton",
  "unit_price": "2.50",
  "price_basis": "per_item",
  "currency": "USD"
}
```

**approved-rules#PACK-24-v1**

```json
{
  "version": "PACK-24-v1",
  "applies_to_sku": "WIDGET",
  "request_unit": "carton",
  "items_per_request_unit": "24",
  "receiving_unit": "item",
  "price_basis": "per_item"
}
```

**receiving-export#E-006**

```json
{
  "as_of": "2026-09-01T12:00:00Z",
  "complete": false
}
```


## C1: Repeated export is one order

**Matches** — The completed receiving record explicitly links to the request and satisfies the selected rule.

### Expected and observed

| Field | Approved expectation | Receiving evidence |
|---|---|---|
| request id | R-007 | R-007 |
| order id | — | O-007 |
| sku | WIDGET | WIDGET |
| quantity | 240 | 240 |
| unit | item | item |
| unit price | 2.50 | 2.50 |
| price basis | per_item | per_item |
| currency | USD | USD |
| status | — | completed |

### Source evidence

**approved-requests#R-007**

```json
{
  "request_id": "R-007",
  "sku": "WIDGET",
  "quantity": "10",
  "unit": "carton",
  "unit_price": "2.50",
  "price_basis": "per_item",
  "currency": "USD"
}
```

**approved-rules#PACK-24-v1**

```json
{
  "version": "PACK-24-v1",
  "applies_to_sku": "WIDGET",
  "request_unit": "carton",
  "items_per_request_unit": "24",
  "receiving_unit": "item",
  "price_basis": "per_item"
}
```

**receiving-exports#E-007,E-008**

```json
{
  "as_of": "2026-09-01T12:00:00Z",
  "complete": true
}
```

**receiving-export#E-007/O-007**

```json
{
  "order_id": "O-007",
  "request_id": "R-007",
  "sku": "WIDGET",
  "quantity": "240",
  "unit": "item",
  "unit_price": "2.50",
  "price_basis": "per_item",
  "currency": "USD",
  "status": "completed",
  "recorded_at": "2026-09-01T10:00:00Z"
}
```


## C2: Timed-out submission then correct receiving record

**Matches** — The completed receiving record explicitly links to the request and satisfies the selected rule.

### Expected and observed

| Field | Approved expectation | Receiving evidence |
|---|---|---|
| request id | R-008 | R-008 |
| order id | — | O-008 |
| sku | WIDGET | WIDGET |
| quantity | 240 | 240 |
| unit | item | item |
| unit price | 2.50 | 2.50 |
| price basis | per_item | per_item |
| currency | USD | USD |
| status | — | completed |

### Source evidence

**approved-requests#R-008**

```json
{
  "request_id": "R-008",
  "sku": "WIDGET",
  "quantity": "10",
  "unit": "carton",
  "unit_price": "2.50",
  "price_basis": "per_item",
  "currency": "USD"
}
```

**approved-rules#PACK-24-v1**

```json
{
  "version": "PACK-24-v1",
  "applies_to_sku": "WIDGET",
  "request_unit": "carton",
  "items_per_request_unit": "24",
  "receiving_unit": "item",
  "price_basis": "per_item"
}
```

**receiving-export#E-009**

```json
{
  "as_of": "2026-09-01T12:00:00Z",
  "complete": true
}
```

**submitted-payloads#A-008**

```json
{
  "attempt_id": "A-008",
  "request_id": "R-008",
  "sku": "WIDGET",
  "quantity": "10",
  "unit": "carton",
  "unit_price": "2.50",
  "price_basis": "per_item",
  "currency": "USD",
  "response_status": "timeout",
  "submitted_at": "2026-09-01T09:01:00Z"
}
```

**receiving-export#E-009/O-008**

```json
{
  "order_id": "O-008",
  "request_id": "R-008",
  "sku": "WIDGET",
  "quantity": "240",
  "unit": "item",
  "unit_price": "2.50",
  "price_basis": "per_item",
  "currency": "USD",
  "status": "completed",
  "recorded_at": "2026-09-01T10:00:00Z"
}
```


## C3: Conflicting exports of same order

**Review needed** — Receiving order O-009 has conflicting exported values.

### Expected and observed

| Field | Approved expectation | Receiving evidence |
|---|---|---|
| request id | R-009 | — |
| order id | — | O-009 |
| sku | WIDGET | — |
| quantity | 240 | — |
| unit | item | — |
| unit price | 2.50 | — |
| price basis | per_item | — |
| currency | USD | — |

### Source evidence

**approved-requests#R-009**

```json
{
  "request_id": "R-009",
  "sku": "WIDGET",
  "quantity": "10",
  "unit": "carton",
  "unit_price": "2.50",
  "price_basis": "per_item",
  "currency": "USD"
}
```

**approved-rules#PACK-24-v1**

```json
{
  "version": "PACK-24-v1",
  "applies_to_sku": "WIDGET",
  "request_unit": "carton",
  "items_per_request_unit": "24",
  "receiving_unit": "item",
  "price_basis": "per_item"
}
```

**receiving-exports#E-010,E-011**

```json
{
  "as_of": "2026-09-01T12:00:00Z",
  "complete": true
}
```

**receiving-export#E-010/O-009**

```json
{
  "order_id": "O-009"
}
```

**receiving-export#E-011/O-009**

```json
{
  "order_id": "O-009"
}
```


## Limits

Only the supplied fictional evidence and selected rules are checked. This does not validate a live integration, later fulfillment, or production accuracy. Missing or ambiguous evidence needs human review.
