# MVP-KDS-003 — Correct operational metadata after finalization

## Story

As an operator, I want to correct queue number and note after finalization while preserving the
commercial record and an audit trail.

## Scenarios

### MVP-KDS-003-S01 — Edit note after checkout

- **Given** a finalized order
- **When** its order-level note is edited
- **Then** the new note is visible and the timestamped old-to-new change is preserved
- **Evidence:** E2E plus integration.

### MVP-KDS-003-S02 — Edit queue number

- **Given** a finalized order
- **When** its queue number is edited
- **Then** formatting is preserved, the display updates, and the timestamped change is preserved
- **Evidence:** E2E plus integration.

### MVP-KDS-003-S03 — Clear optional metadata

- **Given** a finalized order has a note or queue number
- **When** the operator clears it
- **Then** absence is represented normally and the change is recorded
- **Evidence:** E2E plus integration.

### MVP-KDS-003-S04 — Contents remain immutable

- **Given** a finalized commercial order
- **When** operational metadata changes
- **Then** its item contents, prices, VAT, and checkout state remain unchanged
- **Evidence:** database integration.

## Invariants and exclusions

Queue number and note are the only finalized operational fields editable here. They remain distinct
from immutable item snapshots and from checkout/settlement state. No finalized-item editor.

## Implementation tasks

[MVP-TASK-024](../tasks/MVP-TASK-024.md).
