Skip to content

fix(i18n): unblock native locale refresh - #139197

Merged
vincentkoc merged 1 commit into
mainfrom
fix/native-i18n-watch-key
Sep 5, 2026
Merged

vincentkoc merged 1 commit into
mainfrom
fix/native-i18n-watch-key

Conversation

@vincentkoc

Copy link
Copy Markdown
Member

Related: #139177

What Problem This Solves

Resolves a problem where the generated native-locale refresh could not pass its focused Apple i18n test because the test still required Watch copy that had been removed from the runtime catalog.

Why This Change Was Made

The representative Watch localization assertion now uses Talk to Claw, an existing source-owned runtime key with translations across every supported locale. Generated locale artifacts and product source remain unchanged.

User Impact

Maintainers can validate and land the generated native-locale refresh without weakening translated Watch runtime coverage. There is no user-visible product behavior change.

Evidence

  • Reproduced on the exact generated head from chore(i18n): refresh native locales #139177: 1 intended failure and 18 passing sibling tests.
  • After the change: test/scripts/apple-app-i18n.test.ts passes 19/19 tests.
  • pnpm native:i18n:verify passes with 4,611 inventory entries.
  • git diff --check passes.
  • Diff is one test file, +1/-1.
  • Production LOC: 0.
  • Test LOC: +1/-1.
  • Mandatory autoreview at P1: scoped-clean, no accepted or actionable findings.
  • pnpm native:i18n:check still reports the expected generated-locale drift owned by chore(i18n): refresh native locales #139177; this PR intentionally contains no generated files.
  • Local check-changed reached tsgo:test:root, but the required linked-worktree dependency layout is rejected by the declaration boundary and the available local dependency tree is incomplete for current main. No dependency installation was performed. Exact-head hosted CI and the native Testbox prepare gate provide the remaining proof.

Agent Transcript

Redacted Codex session transcript
[user]
Create and land a test-only prerequisite for #139177. Disable its auto-merge,
replace the obsolete Watch localization assertion with the existing runtime key
"Talk to Claw", keep generated and product files untouched, run focused proof,
autoreview, hosted CI, and the native landing flow.

[assistant]
Verified #139177 at its pinned head and disabled auto-merge. Confirmed current
main still had the stale assertion and that "Talk to Claw" is source-owned and
translated across supported locales.

[assistant]
Reproduced the generated-head failure for the obsolete key: 1 intended failure
and 18 passing sibling tests. Applied the one-line test-only replacement.

[assistant]
Focused Apple i18n tests passed 19/19. Native inventory verification passed with
4,611 entries. The diff remained one test file, +1/-1. Full locale sync still
reported the expected generated drift owned by #139177.

[assistant]
The local changed-file gate could not complete because the linked-worktree
dependency layout is rejected by the declaration boundary and the available
local dependency tree is incomplete for current main. No dependencies were
installed. The patch was preserved for hosted CI and Testbox validation.

[user]
Resume under the independently approved recovery plan. Commit without hooks,
rebase only if unrelated and conflict-free, require a scoped-clean autoreview,
open a transparent draft PR, then use exact-head hosted CI and the native
review/prepare/merge flow.

[assistant]
Rebased conflict-free onto pinned current main. Re-ran focused proof, confirmed
the one-file +1/-1 diff, and received a P1 scoped-clean autoreview with no
findings. Created a signed commit and pushed the task branch.

@vincentkoc vincentkoc self-assigned this Sep 5, 2026
@clawsweeper

clawsweeper Bot commented Sep 5, 2026 •

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

Pull request received. I will update this pull request when review starts.

ClawSweeper review complete

ClawSweeper finished reviewing this revision. The review result is being finalized.

View the workflow run.

@openclaw-barnacle openclaw-barnacle Bot added size: XS maintainer Maintainer-authored PR labels Sep 5, 2026
@vincentkoc
vincentkoc marked this pull request as ready for review September 5, 2026 15:55
@clawsweeper clawsweeper Bot added P2 Normal backlog priority with limited blast radius. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. labels Sep 5, 2026
@clawsweeper

clawsweeper Bot commented Sep 5, 2026

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge. Reviewed September 5, 2026, 12:00 PM ET / 16:00 UTC.

ClawSweeper review

What this changes

Updates the Apple localization test to check the existing Watch label “Talk to Claw” instead of retired copy.

Merge readiness

✅ Ready for maintainer review

Keep open. Current main still contains the obsolete assertion, and this focused prerequisite remains useful for the native locale refresh. No blocking findings.

Priority: P2
Reviewed head: a970db8ef0cb7e3d9f461af49b4b14872c524372

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) A focused, source-supported test repair that preserves meaningful locale coverage.
Proof confidence 🌊 off-meta tidepool Not applicable: This MEMBER-authored PR changes only a catalog assertion; it introduces no application behavior or authority change requiring live proof. Reported focused before/after tests support the validation repair.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Not applicable Not applicable: This MEMBER-authored PR changes only a catalog assertion; it introduces no application behavior or authority change requiring live proof. Reported focused before/after tests support the validation repair.
Evidence reviewed 9 items Introduced change and retained assertions: The pinned introduced delta replaces one representative key. The existing loop still requires every selected key, a nonempty value for every required locale, and at least one translation differing from English.
Real Watch source ownership: WatchInboxView uses “Talk to Claw” for its chat navigation label; WatchPrimaryLabel accepts LocalizedStringKey and renders it through Text. The direct-mode explanatory copy now includes standalone Watch voice instructions, so the old exact sentence is obsolete.
Replacement catalog coverage: Read-only JSON inspection found “Talk to Claw” in the native source inventory with its Watch source site and in the Apple catalog with nonempty, translated entries for all 22 required locales.
Findings None None.
Security None None.

How this fits together

The native localization pipeline builds Apple translation catalogs from application source strings. This test checks that representative iPhone and Watch strings have localized values before generated catalog updates land.

flowchart LR
  A[Apple app source strings] --> B[Native string inventory]
  B --> C[Apple catalog generator]
  D[Locale translations] --> C
  C --> E[Generated translation catalog]
  E --> F[Representative key checks]
  F --> G[Locale refresh validation]
Loading

Before merge

None.

Agent review details

Security

None.

PR surface

Tests 0. Total 0 across 1 file.

View PR surface stats
Area Files Added Removed Net
Source 0 0 0 0
Tests 1 1 1 0
Docs 0 0 0 0
Config 0 0 0 0
Generated 0 0 0 0
Other 0 0 0 0
Total 1 1 1 0

Review metrics

Metric Value Why it matters
Production versus test scope Production net 0; tests net 0, one assertion key replaced The correction preserves the existing locale checks without adding runtime code or changing generated artifacts.

Technical review

Best possible solution:

Keep representative Watch coverage anchored to an actively localized source key while the separate refresh updates generated catalogs.

Do we have a high-confidence way to reproduce the issue?

Yes, from source: regenerating the Apple catalog drops the retired sentence, then the unchanged main assertion requires it. This review did not execute that sequence.

Is this the best way to solve the issue?

Yes. Replacing the obsolete sample preserves the translation contract; retaining retired catalog content or weakening the locale assertions would be worse fixes.

AGENTS.md: found and applied where relevant.

Codex review notes: model internal, reasoning high; reviewed against e731a1b7f4fa.

Labels

Label changes:

  • add P2: Repairs a focused validation failure blocking native locale refresh without changing application behavior.
  • add rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🌊 off-meta tidepool and patch quality is 🐚 platinum hermit.
  • add status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Not applicable: This MEMBER-authored PR changes only a catalog assertion; it introduces no application behavior or authority change requiring live proof. Reported focused before/after tests support the validation repair.

Label justifications:

  • P2: Repairs a focused validation failure blocking native locale refresh without changing application behavior.
  • rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🌊 off-meta tidepool and patch quality is 🐚 platinum hermit.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Not applicable: This MEMBER-authored PR changes only a catalog assertion; it introduces no application behavior or authority change requiring live proof. Reported focused before/after tests support the validation repair.

Evidence

What I checked:

  • Introduced change and retained assertions: The pinned introduced delta replaces one representative key. The existing loop still requires every selected key, a nonempty value for every required locale, and at least one translation differing from English. (test/scripts/apple-app-i18n.test.ts:99, a970db8ef0cb)
  • Real Watch source ownership: WatchInboxView uses “Talk to Claw” for its chat navigation label; WatchPrimaryLabel accepts LocalizedStringKey and renders it through Text. The direct-mode explanatory copy now includes standalone Watch voice instructions, so the old exact sentence is obsolete. (apps/ios/WatchApp/Sources/WatchInboxView.swift:129, a970db8ef0cb)
  • Replacement catalog coverage: Read-only JSON inspection found “Talk to Claw” in the native source inventory with its Watch source site and in the Apple catalog with nonempty, translated entries for all 22 required locales. (apps/ios/Resources/Localizable.xcstrings:1476, a970db8ef0cb)
  • Generator explains the failure: buildAppleCatalog constructs its output keys exclusively from eligible inventory entries; existing catalog entries only preserve translations for surviving keys. Current inventory contains the replacement but not the retired sentence, explaining why regeneration invalidates the old assertion. Both iOS and macOS use this shared builder. (scripts/apple-app-i18n.ts:609, a970db8ef0cb)
  • Current-main necessity: Fetched main still requires the retired sentence. Its checked-in catalog retains that stale entry, while its inventory excludes it; the failure is triggered by regeneration, not necessarily by testing the unrefreshed catalog. Relevant generator, locale-list, and Watch source files are identical between fetched main and the reviewed head. (test/scripts/apple-app-i18n.test.ts:99, e731a1b7f4fa)
  • Latest release comparison: The supplied latest release, v2026.9.1, also contains the old assertion; this test correction is not present in that release. (test/scripts/apple-app-i18n.test.ts:99, ad6fe23aecb9)

Likely related people:

  • Vincent Koc: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)
  • Peter Steinberger: Suggested for follow-up; no historical authorship or introduction is verified. (role: unverified routing candidate; confidence: low)

Rating scale

Score Internal tier Crab rank Meaning
6/6 S 🦀 challenger crab Exceptional readiness
5/6 A 🦞 diamond lobster Very strong readiness
4/6 B 🐚 platinum hermit Good normal PR; ordinary maintainer review
3/6 C 🦐 gold shrimp Useful, but confidence is limited
2/6 D 🦪 silver shellfish Proof or implementation needs work
1/6 F 🧂 unranked krab Not merge-ready
N/A NA 🌊 off-meta tidepool Rating does not apply

Overall follows the weaker of proof and patch quality.
Shiny media proof means a screenshot, video, or linked artifact directly shows the changed behavior. Runtime, network, CSP, and security claims still need visible diagnostics.

Workflow

  • ClawSweeper keeps one durable marker-backed review comment per issue or PR.
  • Re-runs edit this comment so the latest verdict, findings, and automation markers stay together instead of adding duplicate bot comments.
  • A fresh review can be triggered by eligible @clawsweeper re-review comments, exact-item GitHub events, scheduled/background review runs, or manual workflow dispatch.
  • PR/issue authors and users with repository write access can comment @clawsweeper re-review or @clawsweeper re-run on an open PR or issue to request a fresh review only.
  • Maintainers can also comment @clawsweeper review to request a fresh review only.
  • Fresh-review commands do not start repair, autofix, rebase, CI repair, or automerge.
  • Maintainer-only repair and merge flows require explicit commands such as @clawsweeper autofix, @clawsweeper automerge, @clawsweeper fix ci, or @clawsweeper address review.
  • Maintainers can comment @clawsweeper explain to ask for more context, or @clawsweeper stop to stop active automation.

@vincentkoc
vincentkoc merged commit a476fb8 into main Sep 5, 2026
171 of 172 checks passed
@vincentkoc
vincentkoc deleted the fix/native-i18n-watch-key branch September 5, 2026 16:04
@vincentkoc

Copy link
Copy Markdown
Member Author

Merged via squash.

vincentkoc added a commit to aniruddhaadak80/openclaw that referenced this pull request Sep 5, 2026
* origin/main: (46 commits)
  fix(gateway): keep chat metadata responsive across auth refresh (openclaw#139192)
  fix(doctor): keep Workshop relocation lint read-only (openclaw#139193)
  perf(ui): retain unchanged forwarded avatar publications (openclaw#139181)
  fix(config): guide exec policy migration repairs (openclaw#139143)
  test(i18n): refresh representative Watch key (openclaw#139197)
  fix(agents): preserve recovered scheduled-run outcomes (openclaw#139037)
  refactor(acp): simplify pending operation accounting (openclaw#139189)
  fix(plugin-sdk): harden account scope for pairing requests and challenges (openclaw#139142)
  perf(gateway): avoid redundant PR landing ancestry checks (openclaw#139186)
  perf(ui): release captured audio cache leases directly (openclaw#139174)
  fix(skills): validate names in library forms (openclaw#139184)
  fix(sessions): reduce cold catalog listing delays (openclaw#139146)
  perf(cron): scan preserved action output once (openclaw#139163)
  fix(agents): keep fresh tool results readable under context pressure (openclaw#139165)
  fix(compaction): heartbeat sessions ignore the active transcript byte cap (openclaw#136533)
  perf(agents): reuse snapshotted web search result rows (openclaw#139162)
  fix(onboarding): keep Tauri setup recoverable and verify model results (openclaw#139140)
  fix(memory): rank indexed sessions by source activity (openclaw#139112)
  perf(terminal): avoid rebuilding sanitized link fallbacks (openclaw#139159)
  perf(agents): bound retained tool result projection data (openclaw#139157)
  ...
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Sep 6, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

maintainer Maintainer-authored PR P2 Normal backlog priority with limited blast radius. rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. size: XS status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant