Skip to content

NilaMind v1.7 — §9 audit hardening + 1116 tests

Choose a tag to compare

@sampathmannam sampathmannam released this 09 Jul 16:44

What's new in v1.7

🔒 Safety & Security

  • §9 keyword floor expanded — added "end my suffering", "stop the pain", "end the pain", "can't do this anymore/any longer" to deterministic crisis detection (were only in LETHAL_COSIGNAL — bypassed the floor)
  • Dissociation coverage expanded — 7 new depersonalization/derealization phrases
  • DSM-5 elevation guard gaps closed — added irritable/agitated mania (6 markers), distractibility (5), increased goal-directed activity (7)
  • 35 silent catch blocks logged — across 11 files, errors now observable via console.error

🎨 UI/UX

  • NilaFace uses themed palette — warm lavender/terracotta/honey colors instead of Tailwind defaults; now responds to light/dark theme
  • Tab bar a11y — focus-visible rings + 44px touch targets on tab buttons
  • CrisisOverlay — 200ms slide-in animation (was instant)
  • nav.ts — removed duplicate behaviour entry

🧪 Testing

  • New test file: crisisEmbedder.test.ts — 7 tests (lazy loading, memoization, error handling)
  • New test file: llamaCppLlmAdapter.test.ts — 12 tests (state transitions, streaming fallback, abort, turn-marker cutting)
  • 45 new tests total across all changed files, all with paired benign controls
  • @vitest/coverage-v8 installed for coverage baselines

📊 Metrics

  • 119 test files, 1116 tests (up from 117/1071), all passing
  • tsc --noEmit — 0 errors
  • Build — clean, 4.5s
  • APK — installed on device ZD2232FCR5