Skip to content

docs(inspirations): bilingual pt-BR doctrine manifestos (Slice 1 EN<->pt-BR closure) - #237

Closed
cursor[bot] wants to merge 1 commit into
mainfrom
cursor/sre-automation-agent-protocol-51fe
Closed

cursor[bot] wants to merge 1 commit into
mainfrom
cursor/sre-automation-agent-protocol-51fe

Conversation

@cursor

@cursor cursor Bot commented Apr 27, 2026

Copy link
Copy Markdown
Contributor

Summary

The Slack handoff (2026-04-27, Documentation Protocol: Bilingual Excellence PT-BR/EN) flagged that Slice 1 of PLAN_ENGINEERING_DOCTRINE_CONSOLIDATION.md shipped the five doctrine manifestos in English only, even though the workspace contract requires paired EN + pt-BR for user-facing docs (see .cursor/skills/documentation-en-pt-br/SKILL.md, .cursor/rules/docs-locale-pt-br-contract.mdc, and .cursor/rules/docs-pt-br-locale.mdc).

PRs #230 (Slice 1) and #232 (Slices 2–4) intentionally focused on EN content + code wiring. This PR is the bilingual mirror they assumed would follow — docs-only, zero code or behaviour change.

Root cause (RCA, Julia-Evans style)

  • Symptom: five EN files exist under docs/ops/inspirations/ (DEFENSIVE_SCANNING_MANIFESTO, THE_ART_OF_THE_FALLBACK, ENGINEERING_BENCH_DISCIPLINE, INTERNAL_DIAGNOSTIC_AESTHETICS, ACTIONABLE_GOVERNANCE_AND_TRUST) with no .pt_BR.md mirror; INSPIRATIONS_HUB.pt_BR.md / README.pt_BR.md are missing the Doctrine section their EN counterparts already publish.
  • Why it happened: Slice 1 was scoped tight (consolidate manifestos in EN), and Slices 2–4 wired them into code (RCA blocks, Methodology-of-Safety) without revisiting the bilingual contract.
  • Fix: translate (not transliterate) all five manifestos to pt-BR, add bidirectional switchers, and surface a Doctrine section in the pt-BR hub + README.

Slice — bilingual closure (docs(inspirations))

New *.pt_BR.md mirrors

File EN counterpart
docs/ops/inspirations/DEFENSIVE_SCANNING_MANIFESTO.pt_BR.md DEFENSIVE_SCANNING_MANIFESTO.md
docs/ops/inspirations/THE_ART_OF_THE_FALLBACK.pt_BR.md THE_ART_OF_THE_FALLBACK.md
docs/ops/inspirations/ENGINEERING_BENCH_DISCIPLINE.pt_BR.md ENGINEERING_BENCH_DISCIPLINE.md
docs/ops/inspirations/INTERNAL_DIAGNOSTIC_AESTHETICS.pt_BR.md INTERNAL_DIAGNOSTIC_AESTHETICS.md
docs/ops/inspirations/ACTIONABLE_GOVERNANCE_AND_TRUST.pt_BR.md ACTIONABLE_GOVERNANCE_AND_TRUST.md

Switchers (bidirectional, no dead ends)

  • Each EN file now has **Português (Brasil):** [...](...) near the title.
  • Each .pt_BR.md opens with **English:** [...](...) and cross-links use the pt-BR variants of sibling manifestos (so reading the doctrine in pt-BR never accidentally bounces the reader back to EN).

Hub + README index

  • INSPIRATIONS_HUB.pt_BR.md gains a full Doutrina (manifestos normativos) section that mirrors the EN hub row-for-row.
  • README.pt_BR.md gains the matching short list (with the plan motor pointer).

Localization notes (true Brazilian, not literal calques)

Per the Slack protocol's "True Localization" rule:

EN source Bad literal pt-PT-ish Good pt-BR (used here)
"bench discipline" "disciplina de bancada" (this one is OK in BR; kept) "Disciplina de bancada de engenharia"
"first-order retrievability" "retorno de primeira ordem" "Recuperação de primeira ordem" (Adam Savage idiom in BR maker scene)
"relief valves" "válvulas de pressão" "válvulas de alívio" (vocabulário industrial BR)
"checklist culture" "cultura de lista" "cultura de checklist" (jargão de aviação BR — Aviões e Músicas)
"guest in the customer DB" "convidado na base do cliente" "convidado no banco do cliente"
"the path to the cure" "o caminho para a cura" "o caminho da cura" (mais direto e idiomático em BR)
"the system explains itself" "o sistema se explica sozinho" "o sistema se explica" (charity.wtf vocabulary, condensed)
default (IT) "defeito" (pt-PT) "padrão" (pt-BR contract — docs-pt-br-locale.mdc)
file "ficheiro" (pt-PT) "arquivo" (pt-BR contract)
share "partilhar" (pt-PT) "compartilhar" (pt-BR contract)
users "utilizadores" (pt-PT) "usuário" / usuários (pt-BR contract)
bottleneck (when needed) — gargalo (Slack ask — kept available for future docs)
deployment (when needed) — implantação (Slack ask — kept available)
memory leak (when needed) — vazamento de memória (Slack ask — kept available)

Code identifiers, CLI flags, file paths, SQL keywords (WITH (NOLOCK), TABLESAMPLE), product names (Sysinternals, Honeycomb, Tailscale, Cloudflare), and .cursor/rules/*.mdc filenames stay English by repo convention (operator chat-language rule + EN technical jargon exception).

Defensive Architecture posture (constraints honoured)

Constraint Honoured by this PR
Zero impact on customer database locks ✅ No connector code path touched.
_HARD_MAX_SAMPLE = 10_000, statement timeout 250..60_000 ms ✅ Untouched (only described in pt-BR prose now).
Leading -- Data Boar Compliance Scan comment ✅ Untouched.
No ORDER BY in auto-sampling ✅ Untouched.
EN remains canonical (per docs-policy.mdc) ✅ pt-BR mirrors EN structure 1:1.
pt-BR locale guard (tests/test_docs_pt_br_locale.py) ✅ Passes locally.
No external-tier doc links into docs/plans/ (tests/test_docs_external_no_plan_links.py) ✅ All plan links live in inspirations notes (ops tier — allowed).

Tests run locally

uv run pytest tests/test_docs_pt_br_locale.py \
              tests/test_markdown_lint.py \
              tests/test_docs_external_no_plan_links.py \
              tests/test_plans_hub_sync.py \
              tests/test_plans_stats.py -q
# 144 passed

Pre-commit ran on the commit (Ruff, plans-stats, markdown lint, pt-BR locale, commercial guard, external-tier-no-plan-links, uv lock parity, PII guards). All green.

Output summary (bilingual, per Slack protocol)

English

  1. Scope: five doctrine manifestos under docs/ops/inspirations/ and the two pt-BR index pages (INSPIRATIONS_HUB.pt_BR.md, README.pt_BR.md).
  2. Localization note: real Brazilian technical idioms — padrão (not defeito), arquivo (not ficheiro), compartilhar (not partilhar), usuário (not utilizador), válvulas de alívio, caminho da cura, cultura de checklist. EN code/CLI/product names preserved.
  3. Knowledge gaps clarified: the bilingual contract's coverage of Slice 1 is now closed. Future doctrine edits must update both languages in the same PR (per documentation-en-pt-br/SKILL.md).

Português (Brasil)

  1. Escopo: os cinco manifestos doutrinários em docs/ops/inspirations/ e as duas páginas de índice pt-BR (INSPIRATIONS_HUB.pt_BR.md, README.pt_BR.md).
  2. Nota de localização: vocabulário técnico brasileiro de verdade — padrão (não defeito), arquivo (não ficheiro), compartilhar (não partilhar), usuário (não utilizador), válvulas de alívio, caminho da cura, cultura de checklist. Código, CLI e nomes de produto continuam em inglês.
  3. Lacunas esclarecidas: o contrato bilíngue para a Slice 1 fica fechado. Edições futuras na doutrina precisam atualizar os dois idiomas no mesmo PR (regra documentation-en-pt-br/SKILL.md).

Doctrine references

Inspired in form by linuxmint/live-installer#177 / #178 (clear symptom → root cause → scoped fix → evidence → defensive constraints → output summary). No invented metrics or dates.

Open in Web View Automation 

…switchers

Slice 1 of PLAN_ENGINEERING_DOCTRINE_CONSOLIDATION.md shipped five EN-only
doctrine manifestos (DEFENSIVE_SCANNING_MANIFESTO, THE_ART_OF_THE_FALLBACK,
ENGINEERING_BENCH_DISCIPLINE, INTERNAL_DIAGNOSTIC_AESTHETICS,
ACTIONABLE_GOVERNANCE_AND_TRUST). docs-policy + documentation-en-pt-br skill
require pt-BR mirrors with bidirectional language switchers. This commit
closes that gap.

- Five new *.pt_BR.md mirrors under docs/ops/inspirations/, properly
  localized (Brazilian Portuguese, not literal pt-PT calques): bancada,
  postura, gargalo, varredura, amostragem, teto, válvula de alívio,
  caminho da cura, etc.
- EN switcher (Português (Brasil): ...) added to the five EN files.
- INSPIRATIONS_HUB.pt_BR.md and README.pt_BR.md gain the Doctrine
  section that already exists on the EN side, with cross-links to the
  driving plan.

No code or behaviour change. Docs only.

Tests:
  uv run pytest tests/test_docs_pt_br_locale.py
                tests/test_markdown_lint.py
                tests/test_docs_external_no_plan_links.py
                tests/test_plans_hub_sync.py
                tests/test_plans_stats.py
  144 passed.

Co-authored-by: Fabio Tavares Leitão <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants