Gate 5a: Fix Frontend UUID validation errors
ci / backend (push) Failing after 1s
Build & Test with Secrets / build (push) Failing after 1s
ci / static (push) Failing after 7s
Build & Test with Secrets / security-scan (push) Failing after 6s
ci / frontend (push) Failing after 1m15s
Build & Test with Secrets / frontend (push) Failing after 1m14s
Build & Test with Secrets / notification (push) Failing after 1s

Issue: Zod UUID schema enforces RFC 4122 v4 format strictly
- Version must be [1-8] (not 0)
- Variant must be [89abAB] (not 0)
Test data: '00000000-0000-0000-0000-000000000001' violates RFC 4122

Fix: Replace invalid UUIDs with RFC 4122 v4 compliant values
- Old: 00000000-0000-0000-0000-000000000001
- New: 550e8400-e29b-41d4-a716-446655440001

Files fixed:
- frontend/src/features/sell-decision/tests/schema.spec.ts
- frontend/src/features/sell-decision/tests/schema.spec.js
- frontend/src/features/data-quality/tests/schema.spec.ts
- frontend/src/features/data-quality/tests/schema.spec.js

Result:
 Unit Tests: 40/40 PASS (Vitest)
 TypeCheck: PASS (vue-tsc)
 Build: SUCCESS (1.66s, dist assembled)
⚠️  E2E: Playwright config issue (requires separate Playwright test runner)

AGENTS.md v16.0:
   Root cause fixed (RFC 4122 validation)
   Necessity: Frontend validation critical for Gate 5
   Right-way: Data validation corrected, not schema changed

Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com>
This commit is contained in:
2026-08-03 16:03:02 +09:00
parent 7ed077bdbb
commit a3a844be76
4 changed files with 16 additions and 8 deletions
@@ -1,7 +1,7 @@
import { describe, expect, it } from 'vitest';
import { dataQualityRunSchema } from '../schema';
const valid = {
runId: '00000000-0000-0000-0000-000000000001',
runId: '550e8400-e29b-41d4-a716-446655440001',
source: 'KRX',
session: '2026-08-01',
status: 'PASS',
@@ -2,7 +2,7 @@ import { describe, expect, it } from 'vitest'
import { dataQualityRunSchema } from '../schema'
const valid = {
runId: '00000000-0000-0000-0000-000000000001',
runId: '550e8400-e29b-41d4-a716-446655440001',
source: 'KRX',
session: '2026-08-01',
status: 'PASS',