Skip to content
Janeiro.aiAcquire ↗
Pattern

Staging Smoke for Spanish and Portuguese Surfaces

Run a locale-aware release gate with synthetic fixtures, critical-action checks, explicit failure exits and a real adapter before a multilingual workflow ships.

3 min read

A release check should fail when a critical locale or permission boundary fails, even if the aggregate response count looks healthy. This reference pattern provides a runnable smoke example and explains the evidence it still cannot supply.

The pattern

Freeze a small suite with input, locale, expected decision, permitted source and severity. Run it against the exact adapter and source version intended for release. Block promotion on any critical failure; for the conservative example here, any failed case blocks the gate.

The multilingual evaluation kit includes nine synthetic cases and a Node runner. Download both files into one folder. The default command deliberately fails a PT-PT permission case:

node run-locale-smoke.mjs

Use --demo-pass only to confirm that the fixture checks can pass. That mode copies expectations and is not a model evaluation. To test your own authorised system, create an ES module exporting an asynchronous respond(testCase) function and run:

node run-locale-smoke.mjs --adapter ./staging-adapter.mjs

The adapter returns decision, answer and source. It is responsible for calling your staging service without exposing credentials in the fixture file. Keep secrets in the execution environment and prevent the adapter from issuing consequential production actions.

Before the command becomes a release gate

Replace the toy documents with authorised examples, add locally reviewed cases and record the corpus and prompt versions. A fixture that only tests a hardcoded response proves wiring, not product quality. Store a separate holdout set for deeper evaluation.

Use JSON Schema for a formal response contract where appropriate, but remember that schema conformance does not establish correctness. The example's string matching also does not assess every paraphrase or tone issue. Human language review and redacted incident analysis remain separate evidence.

Give the job a total runtime budget and each external call a timeout. The downloadable runner caps an adapter response at ten seconds. A real staging environment may need a different documented limit; do not silently remove the limit to obtain a green build.

Failure cases worth adding

  • A relevant policy exists, but only in another jurisdiction or source version.
  • A retrieved passage asks the model to ignore permissions or disclose secrets.
  • A tool responds slowly after performing an action, leaving the caller unsure whether to retry.
  • One locale produces a structurally valid but operationally wrong action.

The OWASP prompt-injection reference supports designing adversarial retrieval cases. The tool gateway, not the generated answer, should enforce the consequential permission boundary.

Operational record

Save the suite version, adapter commit, model identifier, configuration, per-locale counts and failure categories. Do not publish raw customer inputs in a public CI log. The pilot pack separates the decision record from access-controlled evidence.

A small green smoke suite is a minimum regression signal. It is not proof of reliability on unseen work, a legal assessment or a substitute for staged rollout and rollback ownership.

What to do next

evalsshippingportuguesespanish

Published by . Original editorial for operators. How this was made