fix: add @testing-library/dom peer dep; security gate PASS=10 on macOS

- frontend/package.json: add @testing-library/dom ^10.0.0 (missing peer
  dep of @testing-library/react that caused test failure on macOS)
- docs: update security gate result to PASS=10 FAIL=0 SKIP=0 (macOS
  with local ornith:9b) vs PASS=7 SKIP=1 on Windows (no Ollama)
- audit logs: real evidence from running all 10 gates (adversarial suite,
  model router, red-team 30-sample, judge gate, frontend Vitest)
- remove 10 timestamp-named trace stubs (not referenced by
  pipeline-context.yaml; UUID stubs in place and validated)

Verified: security-gate.sh PASS=10 FAIL=0 SKIP=0
          adversarial-harness-tests.sh PASS=40 FAIL=0
          npm test -w frontend: 16 PASS / 0 FAIL

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
thanhnv
2026-07-01 11:05:49 +09:00
co-authored by Claude Sonnet 4.6
parent ea6b3a7c7d
commit f74a5b6e42
29 changed files with 181 additions and 320 deletions
@@ -30,7 +30,7 @@ Scores are conservative estimates; a full independent audit is needed to confirm
| `run-casan4-harness-tests.sh` | **35 PASS / 0 FAIL** |
| `adversarial-harness-tests.sh` | **40 PASS / 0 FAIL** ← up from 37/3 |
| `verify-audit-chain.sh` | **AUDIT_CHAIN_VALID anchor=signed** |
| `security-gate.sh` | **PASS=7 FAIL=0 SKIP=1** (Ollama) |
| `security-gate.sh` | **PASS=10 FAIL=0 SKIP=0** (macOS, local ornith:9b) |
| `npm test -w frontend` | **16 PASS / 0 FAIL** (Vitest) |
### How this was reached
@@ -130,7 +130,11 @@ Three failures from pre-wave4 were fixed:
---
## WV4-F: Final Security Gate — PASS=7 FAIL=0 SKIP=1 ✓
## WV4-F: Final Security Gate — PASS=10 FAIL=0 SKIP=0 ✓
**Windows (Wave 4 team, 2026-07-01):** PASS=7 FAIL=0 SKIP=1 (Ollama tunnel down; model gates skipped, non-blocking)
**macOS re-verification (2026-07-01, local ornith:9b at 127.0.0.1:11434):**
```
== CASAN security gate ==
@@ -140,12 +144,14 @@ Three failures from pre-wave4 were fixed:
GATE PASS tool-call audit (signed)
GATE PASS secrets scan (WP-S4)
GATE PASS no-bypass + circuit breaker
GATE SKIP model router + red-team + judge-gate (Ollama tunnel down)
GATE PASS frontend runtime tests (WV4-A) ← new Wave 4 gate
== verdict: PASS=7 FAIL=0 SKIP=1 ==
GATE PASS model router tests
GATE PASS red-team H4 metrics (30 samples)
GATE PASS judge gate tests (WP-B)
GATE PASS frontend runtime tests (WV4-A)
== verdict: PASS=10 FAIL=0 SKIP=0 ==
```
Note: SKIP is non-blocking — Ollama not running locally. All required gates green.
Note: `@testing-library/dom ^10.0.0` missing peer dep was added to `frontend/package.json` devDependencies; re-verified all 16 frontend tests pass before running gate.
---
@@ -172,7 +178,7 @@ Note: SKIP is non-blocking — Ollama not running locally. All required gates gr
| File | Change |
|---|---|
| `frontend/package.json` | Added vitest + testing-library devDeps; updated test script |
| `frontend/package.json` | Added vitest + testing-library devDeps; updated test script; added `@testing-library/dom ^10.0.0` missing peer dep |
| `frontend/vite.config.ts` | Added test config (jsdom, setupFiles) |
| `frontend/src/__tests__/setup.ts` | New — jest-dom setup |
| `frontend/src/__tests__/okr.test.tsx` | New — 16 real Vitest tests |