You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 68fe133
Browse filesBrowse the repository at this point in the historyBrowse files
MERGE["3. Maintainer merges the reviewed English PR<br/>protected <code>main</code> now contains the exact source revision"]
166
-
REFRESH["4. That trusted <code>main</code> push starts<br/><code>Localization Catalog Refresh</code><br/>provider credentials are available only here"]
UPDATE["4. Automation commits translations to the same PR<br/><code>generated/zh-CN.json</code> + <code>generated/zh-TW.json</code><br/>an exact-head lease rejects a moved branch"]
167
+
CHECK["5. The same PR reruns strict checks and review<br/><code>localization:catalogs:check</code><br/>keys • ICU • placeholders • protected literals"]
168
+
MERGE["6. A maintainer merges the complete review unit<br/>same-repo: English + translations together<br/>fallback: generated follow-up after English"]
169
+
SHIP["7. The owner artifact ships<br/>the catalog becomes available to that surface"]
170
170
RENDER["8. The owner renders at its presentation edge<br/><code>LocalizationContext(locale = zh-CN)</code><br/>为 openclaw 启用 zsh shell completion?"]
171
+
FORK["Fork or cross-repository source PR<br/>merge reviewed English first<br/>trusted <code>main</code> refresh opens one generated follow-up PR"]
171
172
FAIL["Failure or rejection<br/>publish nothing • English fallback stays live<br/>target cells remain partial and visible"]
and `G46` together: change one routine English source message, observe
57
-
credential-free CI detect the stale targets, merge the reviewed English source,
58
-
then observe that trusted `main` push run asynchronous generation and validation
59
-
and open a generated pull request. Later owners adopt that lane only for their
56
+
and `G46` together: change one routine English source message, observe the
57
+
credential-free ready-PR gate fail on stale targets, run the maintainer-authorized
58
+
refresh against the exact PR head, and observe automation update that same PR so
59
+
strict validation can turn green. Fork and cross-repository sources retain the
60
+
trusted post-merge generated-PR fallback. Later owners adopt that lane only for their
60
61
declared families, namespaces, or directories, with both the scoped gate and
61
62
owner-owned refresh configured in the same adoption slice.
62
63
Its review branch contains `F01`, the exact five-file `F03` ownership delta,
@@ -164,17 +165,18 @@ translation service for every message family.
164
165
165
166
| Change in an adopted or newly introduced scope | Required enforcement | Boundary |
166
167
| --- | --- | --- |
167
-
| Add or change a reviewed English catalog key |`G45` credential-free authoring/drift gate |Reject stale targets, invalid ICU, placeholder or protected-literal drift, and hand-edited generated output. |
168
+
| Add or change a reviewed English catalog key |`G45` credential-free authoring/drift gate |Fail a ready same-repository PR on stale targets; reject invalid ICU, placeholder or protected-literal drift, and hand-edited generated output. Keep drafts and non-updatable branches advisory. |
168
169
| Add a product-facing source registration, file family, or declared source root |`G47` disposition gate | Require adoption, a conforming existing owner pipeline, or a named English-only, platform-constrained, or deferred disposition. |
169
170
| Add a raw product-owned literal inside a family, namespace, or narrow directory already declared migrated | Owner-scoped hardcoded-string inventory such as blocking `L10N001`| Block only for the declared migrated scope. `G47` does not heuristically scan every repository literal. |
170
-
| Generate or publish a translation candidate |`G46` trusted exact-source workflow | Run only with trusted credentials, validate before publication, and open or update a generated pull request. |
171
+
| Generate or publish a translation candidate |`G46` trusted exact-source workflow | Run only protected-base tooling with trusted credentials, validate before publication, then update the exact same-repository PR head or open/update one generated fallback PR. |
171
172
| Reuse Control UI, native, or docs automation | Owner-pipeline conformance record | Map its detection, generation, validation, evidence, publication, and review behavior to `G45`/`G46`; do not replace a conforming pipeline. |
172
173
| Promote a locale/surface maturity or product claim |`E43`/`E44` aggregation and review evidence | Consume only landed declarations, generated artifacts, and current required review evidence. |
173
174
174
-
One logical slice may therefore span a source/adoption pull request and a
175
-
generated-catalog pull request. Landing only the source half can enroll the
176
-
scope, but it does not complete an entry whose exit bar requires generated
177
-
artifacts or named language/security review.
175
+
One logical slice normally keeps source/adoption and generated catalogs in one
176
+
pull request. A fork or cross-repository path may span a source PR and a
177
+
generated fallback PR. Landing only the source half can enroll the scope, but
178
+
it does not complete an entry whose exit bar requires generated artifacts or
179
+
named language/security review.
178
180
179
181
Stop the slice when no owner can approve stable meaning, no legitimate locale
180
182
exists, safety review is missing, stable machine output would change, or the
@@ -191,7 +193,7 @@ Completion names are tracking cohorts, not single PRs or a linear stack:
191
193
| Runtime safety | Bounded user-facing runtime and Gateway errors |`F05` and `R16`-`R24` use owner-approved descriptors, edge rendering, and compatible English fallback. |
192
194
| Channels and capabilities | Server-rendered channels, command menus, command metadata, and skill/plugin metadata |`M25`-`M36` land each public contract and locale authority independently. |
193
195
| Native and docs | Android, Apple, and documentation |`P39`-`P42` extend existing owner pipelines and record the Persian/Thai disposition. |
194
-
| Authoring automation | Shared tooling plus each adopting owner |`G45`-`G46` prove scoped deterministic enforcement and trusted generated-PR refresh; `G47` requires a disposition for newly introduced product-string surfaces. |
196
+
| Authoring automation | Shared tooling plus each adopting owner |`G45`-`G46` prove scoped deterministic enforcement, trusted in-place refresh, and generated-PR fallback; `G47` requires a disposition for newly introduced product-string surfaces. |
195
197
| Release promotion | Product-wide |`E43`-`E44` aggregate only landed scoped evidence and produce an honest release claim. |
196
198
197
199
### September 1 delivery target
@@ -239,19 +241,19 @@ Provider secrets are never exposed to untrusted pull-request code.
239
241
`G45` and `G46` establish the reusable reference path before broad owner
240
242
adoption. One routine, non-safety message family must prove:
241
243
242
-
1. an English source edit is detected on an untrusted pull request without
244
+
1. an English source edit is detected on a pull request without
243
245
provider credentials;
244
-
2.the pull-request check reports the exact stale target catalogs while
246
+
2.a ready same-repository pull-request check fails with the exact stale target catalogs while
245
247
blocking malformed registration, source, ICU, placeholder, or
246
248
protected-literal changes;
247
-
3.merging the reviewed English source to protected`main`automatically starts
248
-
a trusted exact-source workflow with provider and publisher credentials;
249
-
4. that workflow generates locale candidates and opens or updates a separate
250
-
generated pull request rather than pushing directly;
249
+
3.a maintainer dispatch starts protected-`main`workflow and generator code
250
+
against the source PR's resolved exact head, without executing PR-owned code;
251
+
4. that workflow generates locale candidates and commits them to the unchanged
252
+
source branch under an exact-head lease;
251
253
5. strict generated-catalog validation succeeds before publication and records
252
254
source-pinned generation evidence;
253
-
6. failed or stale generation publishes nothing and leaves the affected cell
254
-
partial.
255
+
6. failed or stale generation publishes nothing, while fork or cross-repository
256
+
sources use one trusted post-merge generated follow-up PR.
255
257
256
258
The exemplar proves plumbing, not linguistic completion. Its generated output
257
259
does not approve itself, and safety families require their stricter owner and
@@ -277,8 +279,8 @@ passes after a valid disposition is added.
277
279
After the exemplar lands, every subsequent slice that adds or migrates
278
280
deterministic product strings must leave its area enrolled end to end. The PR
279
281
defines the adopted family, namespace, or directory; enables its blocking
280
-
credential-free gate; and configures the area's trusted asynchronous refresh,
281
-
validation, evidence, and generated-PR path. The same slice updates its
282
+
credential-free gate; and configures the area's trusted in-place refresh plus
283
+
post-merge generated-PR fallback, validation, and evidence. The same slice updates its
282
284
checked-in inventory disposition, public contributor workflow index, nearest
283
285
owner-internal guidance, and any additional public contract documentation so
284
286
the new maintenance contract is usable at merge time. Existing Control UI,
Copy file name to clipboardExpand all lines: rfcs/0024/localization-coverage-v1-spec.md
+24-18Lines changed: 24 additions & 18 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -384,21 +384,26 @@ The maintenance workflow follows a dependency-guard-style state machine:
384
384
385
385
| Phase | Trigger | Behavior |
386
386
| --- | --- | --- |
387
-
| `detect` | English source pull request | Runs without provider credentials. Reports the exact missing targets, stale revisions, fallback, and review drift. It does not publish translations from untrusted code. |
388
-
| `refresh` | Trusted `main` push after the source PR merges, schedule, or manual dispatch | Generates candidate translations per locale, validates isolated artifacts, and opens or updates a generated pull request. Failed generation or validation aborts publication. |
387
+
| `detect` | English source pull request | Runs without provider credentials. For a ready same-repository PR, fails with the exact missing or stale targets until refresh output is present. Drafts and branches the repository cannot update remain advisory. It never publishes translations from pull-request code. |
388
+
| `refresh` | Maintainer dispatch for a ready same-repository PR, or trusted `main` push after a fork/cross-repository source merge | Runs protected-base tooling against an exact source revision, generates and validates all affected locale candidates as one batch, then either commits them to the unchanged source branch under an exact-head lease or opens/updates one generated fallback PR. Failed generation or validation aborts publication. |
389
389
| `enforce` | Pull request and release | Blocks invalid catalogs and any `complete` claim whose source, artifacts, or required review are stale. |
390
390
391
-
The refresh workflow must check out a trusted exact source revision reachable
392
-
from a protected base-repository ref, keep provider credentials unavailable to
393
-
untrusted pull-request code, and publish through a scoped generated-PR
0 commit comments