Skip to content
Janeiro.aiAcquire ↗

Library

Patterns

Production architectures for AI systems under real constraints: cost, language, latency and institutional trust across Latin America and Lusophone markets.

Deep Patterns

Decision criteria, failure modes, primary sources

Pattern

LGPD-Aware Data Paths in RAG Pipelines

Keep personal data off the wrong RAG hop in Brazil: classify at ingest, split indexes, control prompt and log copies, and make deletion a full graph walk.

10 min read · lgpd

Read pattern
Pattern

Constitutional Critique and Revise

A second pass that checks a written constitution—tone, safety, Portuguese UX—then revises. It catches copy. It does not authorize money transfers.

6 min read · safety

Read pattern
Pattern

Human-in-the-Loop for High-Risk Agent Actions

Pause agents before money, HR, or production changes: risk gates, durable interrupts, approval UX that shows blast radius, and fail-closed timeouts in ops.

8 min read · agents

Read pattern
Pattern

Agent Memory with Consent and Eviction

Treat agent memory as a data plane: working, summary, and vector layers with tenant ACL, TTL, consent, and a deletion walk—not an unbounded transcript.

7 min read · agents

Read pattern
Pattern

Multi-Agent Supervisor Without Cosplay

Add a supervisor only when roles are real: typed handoffs, summarized worker output, cost caps, and one finish path—not a committee of chatbots in prod.

5 min read · agents

Read pattern
Pattern

Plan-and-Execute Instead of Wandering

Plan once, execute cheaply: JSON steps with success checks, a smaller executor, and replan only on failed gates—not an unbounded ReAct wander in prod.

6 min read · agents

Read pattern
Pattern

ReAct Tool Loops in Production

Ship ReAct loops that actually terminate: typed tools, observation trust boundaries, step and spend budgets, and idempotent side effects in production.

8 min read · agents

Read pattern
Pattern

Structured Output That Fails Closed

Fail closed on model JSON: versioned schemas, constrained decoding, one repair loop, and no side effects until validation passes—treat output like an API.

6 min read · agents

Read pattern
Pattern

Tool Use with Least Privilege

Least-privilege tool registries: typed schemas, role ACL, timeouts, idempotency keys, and redacted logs—before a model can touch CRM, SQL, or Pix rails.

6 min read · agents

Read pattern

Reference

Compact calendar notes

Shorter operational notes. Use a Deep Pattern when you need implementation contracts and citations.

Pattern

Degraded-Mode UX When Connectivity Drops

Define readable offline, stale and unknown-outcome states for AI workflows, with safe caching, explicit retry boundaries and accessible status messages.

3 min read · ux

Read pattern
Pattern

Evaluate Open-Weight Models with Retrieval

Compare an open-weight retrieval workflow with a hosted alternative using identical permissions, workload, locale gates and fully stated operating costs.

3 min read · open-weight

Read pattern
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 · evals

Read pattern
Pattern

Tool Contracts for Agents That Touch Money

Enforce schemas, permissions, approval and duplicate-action checks outside the model before a workflow can quote, refund or change a record.

2 min read · agents

Read pattern
Pattern

Separate PT-BR and PT-PT Retrieval Contexts

Keep Brazilian and European Portuguese sources, terms and evaluations distinct where a workflow requires it, without claiming locale tags prevent errors.

2 min read · portuguese

Read pattern
Pattern

Provenance Citations Operators Can Verify

Show which source and version support an answer, enforce access on citation links and test whether the evidence actually supports the claim being made.

2 min read · rag

Read pattern
Pattern

Jurisdiction Filters Before You Rank

Separate source applicability, user entitlement and semantic relevance before ranking documents, with an explicit fallback when no permitted source answers.

2 min read · rag

Read pattern
Pattern

Golden Sets in the Languages You Ship

Author locale-specific acceptance cases with expected actions, evidence and severity; keep synthetic smoke fixtures separate from a representative benchmark.

3 min read · evals

Read pattern
Pattern

Cost-Aware Model Routing Under FX Pressure

Compare routing paths using accepted-task cost, bounded attempts and explicit escalation rules, rather than assuming a smaller model is always cheaper.

2 min read · routing

Read pattern
Pattern

Retrieval with Regional Context

Carry market, language, permissions and source versions through retrieval; return an evidence gap instead of silently borrowing another region’s policy.

2 min read · rag

Read pattern
Pattern

Eval Gates Before You Ship

Stop releases on named critical failures, preserve per-locale evidence and separate a smoke test from the broader review needed to ship an AI workflow.

2 min read · evals

Read pattern

Newsletter

Signal, not noise.

Monthly intelligence for builders resetting judgment across LatAm, Brazil, Portugal, and emerging markets—signal, not hype.

Subscriptions are temporarily unavailable.