@@ -3,7 +3,7 @@ title: Localization Runtime and Product Coverage
33authors:
44 - Gio Della-Libera
55created: 2026-07-16
6- last_updated: 2026-07-19
6+ last_updated: 2026-07-20
77status: draft
88issue:
99rfc_pr: https://github.com/openclaw/rfcs/pull/42
@@ -53,6 +53,10 @@ Accepting this RFC approves these product contracts:
5353 the product aggregation layer rejects duplicate IDs or order claims and
5454 generates the manifest of locale/surface maturity cells, revisions, checks,
5555 review evidence, and promotion blockers. Release claims fail closed.
56+ 6. A migrated surface satisfies the localization-ready ownership standard:
57+ semantic meaning, locale authority, catalog/rendering, compatibility,
58+ privacy, conformance evidence, and deletion of the superseded presentation
59+ path all have named owners and proof.
5660
5761This RFC does not authorize broad exception/log extraction, runtime model
5862translation, translation of commands or protocol values, AI self-review, or a
@@ -350,6 +354,57 @@ OpenClaw distinguishes four categories:
350354This classification prevents localization from weakening protocol stability or
351355changing executable content.
352356
357+ ### Localization-ready ownership
358+
359+ Localization separates ownership rather than transferring it to localization
360+ core:
361+
362+ - the semantic owner defines the message meaning, stable key, allowed
363+ parameters, reviewed English fallback, and any safety or recovery semantics;
364+ - the rendering owner selects the legitimate locale context, owns the catalog
365+ and renderer, and preserves literal values and platform constraints;
366+ - localization core owns generic context, validation, fallback, and rendering
367+ primitives, but does not invent message meaning or recipient locale; and
368+ - the coverage owner aggregates owner-published evidence without becoming the
369+ source of message or translation truth.
370+
371+ One team may fill multiple roles, but every adopted message family or surface
372+ must identify them explicitly. A renderer must not reinterpret an error,
373+ decision, finding, status, or recovery action merely to make it translatable.
374+
375+ A localization-ready adoption has:
376+
377+ 1. a named semantic owner and authoritative descriptor-construction boundary;
378+ 2. a named rendering/catalog owner and authoritative locale-resolution
379+ boundary;
380+ 3. stable machine identity, typed parameters, and reviewed English fallback;
381+ 4. one immutable locale context and catalog snapshot per operation;
382+ 5. explicit literal, presentation, sensitivity, and safety classification;
383+ 6. locale-invariant codes, commands, decisions, structured output, and policy;
384+ 7. deterministic accepted, fallback, invalid-input, and rollback behavior;
385+ 8. compatibility proof for every affected protocol or automation consumer;
386+ 9. coverage and required human-review evidence bound to exact revisions; and
387+ 10. deletion of the hardcoded, duplicated, parsed-prose, or edge-invented
388+ presentation path that the descriptor replaces.
389+
390+ Each implementation slice records this evidence in its PR description, focused
391+ fixture, or owner-local design note. This is review evidence, not a runtime
392+ registry or new manifest schema.
393+
394+ Stop rather than broaden the localization framework when:
395+
396+ - no semantic owner can approve a stable meaning and parameter schema;
397+ - no legitimate recipient or operator locale is available;
398+ - a generic exception or external prose has no bounded product-owned
399+ descriptor;
400+ - required safety or linguistic review is absent;
401+ - compatibility requires changing stable machine output; or
402+ - the old presentation authority cannot be removed or clearly bounded.
403+
404+ In those cases OpenClaw preserves stable machine output and reviewed English
405+ fallback, records the surface as incomplete where applicable, and leaves the
406+ underlying operation unchanged.
407+
353408### Locale identity and compatibility
354409
355410Locale identifiers follow BCP 47. OpenClaw maintains a central registry of
@@ -723,12 +778,18 @@ Migration is incremental:
723778
7247791. Add shared contracts without changing output.
7257802. Capture one immutable locale context at the owning surface entry.
726- 3. Give current English messages stable keys and descriptors.
727- 4. Classify every parameter as literal data or product-owned presentation.
728- 5. Localize one bounded renderer without changing structured output.
729- 6. Add optional protocol metadata where the owner approves it.
730- 7. Migrate clients and surfaces.
731- 8. Raise coverage gates directory by directory.
781+ 3. Confirm the semantic owner, rendering owner, and authoritative descriptor
782+ and locale-resolution boundaries.
783+ 4. Give current English messages stable keys and descriptors.
784+ 5. Classify every parameter as literal data or product-owned presentation,
785+ including sensitivity and safety treatment.
786+ 6. Localize one bounded renderer without changing structured output.
787+ 7. Add optional protocol metadata where the owner approves it.
788+ 8. Prove accepted, fallback, compatibility, privacy, and rollback behavior.
789+ 9. Delete or explicitly bound the superseded hardcoded or duplicated
790+ presentation path.
791+ 10. Migrate clients and surfaces and raise coverage gates directory by
792+ directory.
732793
733794English remains the source and compatibility fallback. Existing locale IDs,
734795environment variables, persisted preferences, Gateway error messages, command
0 commit comments