v3.2.0: Industrial-Grade Quality Infrastructure
· 2 دقائق قراءة
v3.2.0 is the quality release. 702 tests, 163 test suites, zero tolerance for silent failures.
What Changed
Quality Gate (5 checks)
Every translation now passes through five deterministic validation checks before it's written to disk:
- Empty/blank — Model returned nothing
- Source echo — Model returned the English input
- Hallucination loop — Repeated trigram patterns
- Length inflation — Output 4×+ longer than source
- Script compliance — Wrong script for the locale
No translation is written without passing all five checks. Failed translations are logged and retried.
Retry Cascade
When a batch fails, rosetta retries with progressively smaller batches:
Full batch (30 keys) → parse error
└→ Half batch (15 keys) → 2 failures
└→ Individual keys (1 each) → isolates the problem keys
Security Hardening
- Prototype pollution guard —
__proto__,constructorkeys rejected at parse time - Path traversal guard — Crafted locale codes can't write outside configured directories
- Response validation — Only keys that were sent are accepted back
Test Infrastructure
| Suite | Tests | What It Covers |
|---|---|---|
| Core (8 suites) | 280+ | Config, sync, CLI, watch, audit, pairs, format, init |
| Red team | 89 | Adversarial inputs, encoding attacks |
| Contract | 120 | API integration contracts |
| Performance | 36 | Batch optimization, throughput regression |
| Coverage | 702 total | Full pipeline |
Prompt Caching
System messages are now split from user messages, enabling prompt cache hits on providers like Anthropic and Google. This significantly reduces token costs for multi-batch syncs.
See the Quality Gate docs and Security docs for the full technical details.