Skip to content

Commit 54b4e5d

Browse files
giodl73-repoCopilot
andcommitted
docs(localization): strengthen ownership and conformance
Co-authored-by: Copilot <[email protected]> Copilot-Session: d1bd0f71-7638-463a-958d-d5b3e2da1047
1 parent df1a29b commit 54b4e5d

5 files changed

Lines changed: 198 additions & 11 deletions

‎rfcs/0024-localization-runtime-and-coverage.md‎

Lines changed: 68 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ title: Localization Runtime and Product Coverage
33
authors:
44
- Gio Della-Libera
55
created: 2026-07-16
6-
last_updated: 2026-07-19
6+
last_updated: 2026-07-20
77
status: draft
88
issue:
99
rfc_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

5761
This RFC does not authorize broad exception/log extraction, runtime model
5862
translation, translation of commands or protocol values, AI self-review, or a
@@ -350,6 +354,57 @@ OpenClaw distinguishes four categories:
350354
This classification prevents localization from weakening protocol stability or
351355
changing 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

355410
Locale identifiers follow BCP 47. OpenClaw maintains a central registry of
@@ -723,12 +778,18 @@ Migration is incremental:
723778

724779
1. Add shared contracts without changing output.
725780
2. 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

733794
English remains the source and compatibility fallback. Existing locale IDs,
734795
environment variables, persisted preferences, Gateway error messages, command

‎rfcs/0024/implementation-plan.md‎

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,8 @@ The preferred foundation stack is implemented and open for review:
2121

2222
The foundation stack validates these cross-cutting rules:
2323

24+
- name the semantic owner, rendering owner, descriptor boundary, and
25+
locale-resolution boundary for each adopted family;
2426
- capture one immutable locale context at the owning command/request entry;
2527
- preserve exact reviewed English for compatibility callers;
2628
- keep human presentation separate from locale-invariant structured output;
@@ -35,10 +37,36 @@ The foundation stack validates these cross-cutting rules:
3537
that the root product report aggregates with duplicate-ID/order rejection;
3638
- bind maturity claims to checked artifacts, catalog revisions, and review
3739
evidence.
40+
- keep public diagnostics free of rendered text, parameters, recipient
41+
identity, paths, commands, tokens, and raw exceptions; and
42+
- delete or explicitly bound the superseded hardcoded, duplicated, parsed-prose,
43+
or edge-invented presentation path.
3844

3945
Earlier smaller drafts remain development provenance only. Review and delivery
4046
should use #111541-#111545.
4147

48+
## Repair And Adoption Rule
49+
50+
Each implementation PR is reviewed as:
51+
52+
```text
53+
one semantic owner
54+
+ one rendering owner
55+
+ one authoritative descriptor boundary
56+
+ one authoritative locale boundary
57+
+ one accepted and one fallback/failure fixture
58+
+ one compatibility and privacy proof
59+
+ one deleted presentation workaround
60+
```
61+
62+
The PR description or focused tests record the corresponding conformance
63+
evidence. Shared localization machinery is not acceptance by itself.
64+
65+
Stop the slice when no owner can approve stable meaning, no legitimate locale
66+
exists, safety review is missing, stable machine output would change, or the
67+
old authority cannot be removed. Preserve reviewed English, keep the surface
68+
incomplete, and do not widen localization core to compensate.
69+
4270
## Completion Stack
4371

4472
The completion stack owns the current 15 owner-declared product surfaces and
@@ -316,6 +344,8 @@ claim only after their artifacts and named review evidence are current.
316344
RFC 0024 v1 is complete when:
317345

318346
- the shared locale, descriptor, fallback, and coverage contracts are shipped;
347+
- every migrated family names semantic and rendering ownership plus its
348+
descriptor and locale boundaries;
319349
- English plus all 21 translation targets are registered and reported;
320350
- Gateway errors and channel safety messages localize through stable
321351
descriptors;
@@ -325,6 +355,12 @@ RFC 0024 v1 is complete when:
325355
- runtime behavior does not depend on English host prose;
326356
- right-to-left locales set direction and isolate literal commands and IDs;
327357
- missing translations fall back safely to English;
358+
- public localization diagnostics remain bounded and content-free by default;
359+
- adopted slices include accepted, fallback/failure, compatibility, privacy,
360+
rollback, and deletion evidence;
361+
- superseded hardcoded, duplicated, parsed-prose, and edge-invented
362+
presentation authorities are removed or explicitly bounded compatibility
363+
paths;
328364
- release artifacts publish an honest localization coverage report; and
329365
- all 313 OpenClaw-controlled translation-target cells are complete;
330366
- any remaining `docs/fa` or `docs/th` platform constraint is explicitly

‎rfcs/0024/localization-coverage-v1-spec.md‎

Lines changed: 40 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -81,6 +81,11 @@ Each product owner publishes a build-time surface declaration with:
8181
- content classes; and
8282
- locale artifact discovery or explicit supported-locale evidence.
8383

84+
The declaration owner is accountable for that surface's catalog, rendering,
85+
artifact, and coverage evidence. It does not take semantic ownership from the
86+
Gateway, command, approval, runtime, policy, or other domain that defines the
87+
message meaning.
88+
8489
The product aggregation layer consumes every owner/domain declaration. It must
8590
fail on duplicate surface IDs, duplicate order claims, missing declared paths,
8691
or declared locale support without a corresponding artifact. The generated
@@ -400,6 +405,32 @@ Allowlist entries require:
400405
- whether the text is developer-only, protocol identity, external prose, or
401406
intentionally literal.
402407

408+
Migrated findings additionally name the replacement descriptor/catalog owner
409+
and the deletion condition for the old path. A surface cannot become `complete`
410+
while the replaced literal, duplicated adapter template, or prose-parsing path
411+
remains an unbounded second authority.
412+
413+
## Adoption Conformance Record
414+
415+
Every migrated message family or coherent surface slice records:
416+
417+
| Field | Required evidence |
418+
| --- | --- |
419+
| Semantic owner | Owner of message meaning, key, parameter schema, fallback, and safety/recovery semantics |
420+
| Rendering owner | Owner of locale authority, catalog, escaping, and final projection |
421+
| Authoritative boundaries | Descriptor construction and locale resolution |
422+
| Accepted fixture | Reviewed English plus at least one non-English rendering |
423+
| Failure fixtures | Missing key/catalog, invalid parameters, incomplete safety review, and renderer failure as applicable |
424+
| Compatibility | Locale-invariant codes, commands, decisions, structured output, and legacy fallback |
425+
| Privacy | Public diagnostic fields and prohibited content |
426+
| Coverage | Surface declaration, catalog/artifact revision, maturity, and required review evidence |
427+
| Rollback | Exact fallback or demotion behavior |
428+
| Deletion | Hardcoded, duplicated, parsed-prose, or edge-invented authority removed |
429+
430+
The record may live in focused fixtures, a PR evidence block, or an owner-local
431+
design note. It is not a runtime registry and does not add fields to the
432+
coverage manifest.
433+
403434
## Safety Review
404435

405436
Approval, authentication, destructive-operation, policy-denial, and
@@ -522,15 +553,19 @@ The new-string lifecycle is:
522553

523554
1. add or change reviewed English at the owning final-render boundary;
524555
2. for a new message, add a stable namespaced key; for a copy-only change,
525-
reuse the existing key; classify every parameter;
556+
reuse the existing key; confirm semantic and rendering ownership; classify
557+
every parameter;
526558
3. update the owning source catalog, glossary, and generation inputs;
527559
4. regenerate only owner-declared artifacts;
528560
5. add English compatibility, non-English, fallback, and protected-literal
529561
proof appropriate to the surface;
530562
6. refresh the coverage manifest and run the documented validation command;
531563
7. demote affected complete locale rows to `partial` until regenerated
532564
translations and required human review are present, and report the stale
533-
translation as a separate finding.
565+
translation as a separate finding;
566+
8. record privacy-safe observability and rollback behavior; and
567+
9. delete the superseded presentation path or record the named compatibility
568+
boundary that still requires it.
534569

535570
Generated catalogs, locale trees, translation memory, and native projections
536571
are edited only through their owning generation workflow. A changed English
@@ -557,4 +592,7 @@ The coverage system conforms to v1 when it can answer, at one commit:
557592
- whether migrated structured outputs are locale-invariant;
558593
- whether product-owned presentation labels are fully catalog-backed;
559594
- whether protected literals remain unchanged; and
595+
- which semantic and rendering owners approved each migrated family;
596+
- whether public diagnostics avoid rendered, literal, and recipient content;
597+
- which superseded presentation authority was deleted; and
560598
- which findings prevent promotion to complete.

‎rfcs/0024/localization-runtime-v1-spec.md‎

Lines changed: 41 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,33 @@ Surface adapters own input discovery, persistence, catalog loading, output
4545
formatting, and wire projection. The kernel is internal in v1 and does not
4646
define a public plugin-provider API.
4747

48+
## Ownership And Adoption
49+
50+
Localization does not own the product meaning that it renders.
51+
52+
- The semantic owner defines the stable message key, allowed parameter schema,
53+
reviewed English fallback, and safety/recovery meaning.
54+
- The rendering owner defines the legitimate locale input, catalog, renderer,
55+
escaping, and platform projection.
56+
- Localization core validates and renders those contracts without inventing
57+
meaning, recipient locale, or machine behavior.
58+
- Coverage aggregates owner-published evidence without becoming a runtime
59+
registry.
60+
61+
Every migrated message family identifies its semantic owner, rendering owner,
62+
descriptor-construction boundary, and locale-resolution boundary in focused
63+
tests, its PR evidence, or an owner-local design note.
64+
65+
Adoption is incomplete until the old hardcoded, duplicated, parsed-prose, or
66+
edge-invented presentation path is deleted or explicitly retained as a named
67+
compatibility fallback. Adding a descriptor beside an equally authoritative
68+
string path is non-conforming.
69+
70+
Do not create a descriptor when no product owner can define bounded meaning and
71+
parameters. Do not invent a recipient locale when the rendering surface lacks
72+
an authoritative preference. Preserve reviewed English and stable machine
73+
output instead.
74+
4875
## Locale Registry
4976

5077
Core owns a registry entry for every recognized locale:
@@ -465,7 +492,11 @@ Diagnostics may record:
465492
- catalog revision;
466493
- missing-key or invalid-parameter finding code.
467494

468-
Diagnostics must not record sensitive parameter values by default.
495+
Public diagnostics and metrics must not record rendered text, message
496+
parameters, recipient or user identity, paths, commands, tokens, raw exceptions,
497+
or other literal values by default. A surface that requires private diagnostic
498+
capture must use an existing trusted/private-data path with explicit opt-in and
499+
must not promote that data into metrics, stability output, or public findings.
469500

470501
## Minimal Contribution Example
471502

@@ -492,6 +523,8 @@ Adding one CLI message requires:
492523
5. Run key, placeholder, fallback, mixed-language, and affected renderer tests.
493524
6. Compare any structured output under English and one non-English locale.
494525
7. Leave `path` literal and escaped by the target renderer.
526+
8. Delete the superseded literal presentation path or document the exact
527+
compatibility caller that still owns it.
495528

496529
## Conformance
497530

@@ -512,6 +545,13 @@ A runtime localization implementation conforms to v1 when:
512545
- old Gateway clients continue to receive usable English messages;
513546
- new clients localize known errors without branching on text;
514547
- approval rendering preserves action semantics in every locale;
548+
- semantic and rendering ownership boundaries are named;
549+
- public diagnostics contain only bounded localization identity and provenance,
550+
not rendered or literal content;
551+
- one owner-local conformance record proves accepted, fallback, invalid,
552+
compatibility, privacy, and rollback behavior;
553+
- the superseded presentation authority is deleted or explicitly retained only
554+
for a named compatibility path;
515555
- localization failure cannot crash the Gateway or authorize an action;
516556
- warmed catalog lookup and rendering of one message with at most 16 scalar
517557
parameters performs no I/O or network access and stays below 5 ms p95 on the

‎rfcs/0024/localized-metadata-v1-spec.md‎

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,6 +114,12 @@ Namespace ownership is enforced by catalog validation and the blocking
114114
Metadata is activation-pinned with the plugin registry snapshot. Reload
115115
atomically replaces the plugin's metadata set.
116116

117+
Capability owners retain semantic ownership of command and skill identity,
118+
execution meaning, and the default English description. Each consuming surface
119+
owns locale selection, platform projection, truncation, and reconcile behavior.
120+
Localization metadata must not become an alternate authority for command
121+
behavior, skill prompts, policy, or invocation.
122+
117123
External runtime-message catalogs are not registered through arbitrary
118124
callbacks or translation-provider hooks. V1 external localization is limited
119125
to the metadata defined in this specification. A post-v1 Plugin SDK seam may
@@ -151,8 +157,14 @@ RFC explicitly promotes that package into the product release portfolio.
151157
A metadata implementation conforms when:
152158

153159
- command and skill identity remain stable across locales;
160+
- semantic capability ownership remains separate from surface rendering and
161+
projection ownership;
154162
- native platform projections preserve reconcile behavior;
155163
- fallback is deterministic;
156164
- duplicate aliases are rejected;
157165
- localized metadata cannot alter execution or policy; and
158-
- one catalog can feed CLI, UI, and supported channel projections.
166+
- one catalog can feed CLI, UI, and supported channel projections;
167+
- public diagnostics omit localized descriptions and literal capability data by
168+
default; and
169+
- English-only duplicate presentation paths replaced by the metadata contract
170+
are deleted or retained only as named compatibility fallbacks.

0 commit comments

Comments
 (0)