Mag-skip sa main content

v3.2.0: Industrial-Grade na Quality Infrastructure

· 1 min read
Creator of i18n-rosetta

Ang v3.2.0 ay ang quality release. 702 tests, 163 test suites, at zero tolerance para sa silent failures.

Mga Nagbago​

Quality Gate (5 checks)​

Dumadaan na ngayon ang bawat translation sa five deterministic validation checks bago ito i-write sa disk:

  1. Empty/blank — Walang ni-return ang model
  2. Source echo — Ni-return ng model ang English input
  3. Hallucination loop — Paulit-ulit na trigram patterns
  4. Length inflation — Ang output ay 4×+ na mas mahaba kaysa sa source
  5. Script compliance — Maling script para sa locale

Walang translation na isusulat nang hindi pumapasa sa lahat ng five checks. Ang mga failed translations ay naka-log at ire-retry.

Retry Cascade​

Kapag nag-fail ang isang batch, magre-retry ang rosetta gamit ang 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 — Nire-reject ang __proto__, constructor keys sa parse time
  • Path traversal guard — Hindi pwedeng mag-write ang mga crafted locale codes sa labas ng configured directories
  • Response validation — Tanging ang mga keys na ipinadala lang ang tatanggapin pabalik

Test Infrastructure​

SuiteTestsAno ang Sinasaklaw
Core (8 suites)280+Config, sync, CLI, watch, audit, pairs, format, init
Red team89Adversarial inputs, encoding attacks
Contract120API integration contracts
Performance36Batch optimization, throughput regression
Coverage702 totalFull pipeline

Prompt Caching​

Naka-split na ngayon ang system messages mula sa user messages, kaya nag-e-enable ito ng prompt cache hits sa mga providers tulad ng Anthropic at Google. Malaki ang nababawas nito sa token costs para sa mga multi-batch syncs.

Tingnan ang Quality Gate docs at Security docs para sa full technical details.