Repository navigation
v2.0.1 - V2 Readiness Baseline & QA
Rosmarium v2.0.1: V2 Readiness Baseline & QA
This patch release serves as the final stability benchmark before officially kicking off the V2 Phase 1 (Structured Rich Text Engine) development. It resolves a large suite of edge-case bugs, elevates test coverage, implements robust structured logging, and strict-types all core API schemas.
🚀 Key Improvements
🛡️ Core Infrastructure & Server
- Strict Server Type Safety: Eradicated
anytypes across the TypeScript API boundaries (specifically targeting OAuth/SSO configurations) and successfully achieved 0 warnings/errors duringpnpm typecheck. - Protected Endpoints: Secured all internal generation API endpoints (
/generate,/rewrite,/seo-optimize,/alt-text) behind therequireAuth()middleware. - Log Monitoring & Runtime Health: Enforced 100% structured JSON logging across the orchestrator. Switched Drizzle ORM to pipe SQL traces directly to Pino, and explicitly disabled
pino-prettyin production. - Data Redaction: Implemented custom serializers in the server and a
redact_sensitive_dataprocessor in the AI worker (structlog) to filter out credentials, JWTs, API keys,queryprompts, and massive vector payload dumps.
🧠 AI Worker Quality Audit
- BullMQ Consumer: Fixed critical key schema typos preventing the consumer from cleanly fetching jobs from the wait queue (
bull:{queue}:waiting). - RBAC Security Patch: Rectified a python-side vulnerability in
rag/pipeline.pywhere passing an empty tenant authorization array[]would maliciously cast toNone, effectively bypassing the SQL-levelpgvectorfilter entirely. - Vector Index Integrity: Added strict
ValueErrorassertions guaranteeing ingested embeddings strictly map to thesettings.embedding_dimensions.
🧪 API Functional & UI Fixes
- Functional API Edge Cases: Diagnosed and remediated 16 edge-cases across 76 exhaustive functional workflows (fixing 400s erroneously returned instead of 401/403s on unauthorized mutations, correcting graph traversal logic, repairing RAG streaming constraints).
- Admin UI Console Polish: Mapped React application routes correctly (e.g.
sso/providers) and intercepted expected initial-load unauthenticated pings (/api/auth/me) from polluting the browser console. The Playwright trace now registers zero initial-load errors or warnings.
📊 Coverage Baseline Achieved
- TypeScript Server Tests: 277 Passing tests (~65.3% Core Code Coverage)
- Python Worker Tests: 133 Passing tests (~77% Core Code Coverage)
- Total Suite: 410 Unit/Integration Tests. The system is extremely thoroughly verified against regression heading into V2.