diff --git a/docs/UAT-PHASE2.md b/docs/UAT-PHASE2.md
index 33fe7de..10b8b84 100644
--- a/docs/UAT-PHASE2.md
+++ b/docs/UAT-PHASE2.md
@@ -1,6 +1,6 @@
# Phase 2 implementation verification — 13 October 2026
-Final local gate: 29 tests passed, strict TypeScript and lint passed, production build passed with all 27 JavaScript chunks below 500 kB (largest approximately 494 kB). The dependency audit reported zero vulnerabilities.
+Final local gate: 30 tests passed, strict TypeScript and lint passed, production build passed with all 27 JavaScript chunks below 500 kB (largest approximately 494 kB). The dependency audit reported zero vulnerabilities.
| Area | Evidence / outcome |
| ---------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
diff --git a/src/lib/commerce.ts b/src/lib/commerce.ts
index b2e3937..c2fede4 100644
--- a/src/lib/commerce.ts
+++ b/src/lib/commerce.ts
@@ -1,5 +1,5 @@
import { z } from "zod";
-export const uuid = z.string().uuid();
+export const uuid = z.string().uuid().toLowerCase();
export const currency = z.enum(["INR", "USD", "EUR", "GBP"]);
export const decimal = z.string().regex(/^\d+(?:\.\d{1,2})?$/);
export const amount = z.string().regex(/^(0|[1-9]\d{0,9})\.\d{2}$/);
diff --git a/src/pages/CatalogAdminPage.tsx b/src/pages/CatalogAdminPage.tsx
index ee6a2ea..03a8d27 100644
--- a/src/pages/CatalogAdminPage.tsx
+++ b/src/pages/CatalogAdminPage.tsx
@@ -425,7 +425,7 @@ export default function CatalogAdminPage({ id }: { id?: string }) {
{id && !uuid.safeParse(id).success ? (
Invalid product identifier.
) : id ? (
-
+
) : (
)}
diff --git a/src/pages/InventoryPage.tsx b/src/pages/InventoryPage.tsx
index 77d1f8f..94b7f3a 100644
--- a/src/pages/InventoryPage.tsx
+++ b/src/pages/InventoryPage.tsx
@@ -361,7 +361,7 @@ export default function InventoryPage({ id }: { id?: string }) {
{id && !uuid.safeParse(id).success ? (
Invalid stock identifier.
) : id ? (
-
+
) : (
)}
diff --git a/src/pages/OrdersPage.tsx b/src/pages/OrdersPage.tsx
index 786e889..40a2e64 100644
--- a/src/pages/OrdersPage.tsx
+++ b/src/pages/OrdersPage.tsx
@@ -167,7 +167,7 @@ export default function OrdersPage({
{id && !uuid.safeParse(id).success ? (
Invalid order identifier.
) : id ? (
-
+
) : (
)}
diff --git a/test/phase2.test.ts b/test/phase2.test.ts
index 6b3e675..540b089 100644
--- a/test/phase2.test.ts
+++ b/test/phase2.test.ts
@@ -14,6 +14,7 @@ import {
variant,
warehouse,
stock,
+ stockInput,
adminProductSummary,
pricing,
checkoutInput,
@@ -27,6 +28,15 @@ const id = "d66c798a-f764-4b88-8d13-ace328ff1010";
test("organization UUIDs normalize case before session organization checks", () => {
assert.equal(organizationSchema.parse(id.toUpperCase()), id);
});
+test("stock identifiers normalize case before request and retry scopes", () => {
+ assert.equal(
+ stockInput.parse({
+ variantId: id.toUpperCase(),
+ warehouseId: id.toUpperCase(),
+ }).variantId,
+ id,
+ );
+});
test("response schemas accept persisted metadata while write schemas stay strict", () => {
const extra = {
id,