Skip to content

fix(i18n): refresh native source baseline - #115024

Merged
vincentkoc merged 1 commit into
mainfrom
fix/native-source-baseline-20260728
Jul 28, 2026
Merged

vincentkoc merged 1 commit into
mainfrom
fix/native-source-baseline-20260728

Conversation

@vincentkoc

Copy link
Copy Markdown
Member

What Problem This Solves

Resolves a problem where release validation and the Native App Locale Refresh workflow failed after native source line movements left the stable-ID inventory stale.

Why This Change Was Made

Regenerates the canonical native source inventory from current main. The stable IDs and source strings are unchanged; only eight recorded source-line offsets move.

User Impact

No direct user-visible change. Release validation and native locale automation can proceed from a current inventory.

Evidence

  • node --import tsx scripts/native-app-i18n.ts baseline --write
  • node --import tsx scripts/native-app-i18n.ts check
  • git diff --check
  • autoreview: clean, no accepted/actionable findings
  • Reproduced in Native App Locale Refresh run 30335378281: locale workers failed before translation with inventory drift.

@vincentkoc
vincentkoc marked this pull request as ready for review July 28, 2026 06:55
@vincentkoc vincentkoc self-assigned this Jul 28, 2026
@openclaw-barnacle openclaw-barnacle Bot added size: XS maintainer Maintainer-authored PR labels Jul 28, 2026
@vincentkoc

Copy link
Copy Markdown
Member Author

@clawsweeper review

@clawsweeper

clawsweeper Bot commented Jul 28, 2026

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

Command router queued. I will update this comment with the next step.

@clawsweeper clawsweeper Bot added 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. P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. labels Jul 28, 2026
@clawsweeper

clawsweeper Bot commented Jul 28, 2026

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge. Reviewed July 28, 2026, 3:06 AM ET / 07:06 UTC.

ClawSweeper review

What this changes

The branch updates eight recorded Swift source-line offsets in the native localization inventory so Native App Locale Refresh validation matches the current source layout.

Merge readiness

⚠️ Ready for maintainer review - 3 items remain

Keep this maintainer-owned PR open. The supplied diff is a narrow refresh of generated native-localization line metadata, with no concrete patch defect or security concern visible in the available PR evidence; it should be refreshed against current main and landed once the repository-native check confirms the regenerated inventory.

Priority: P3
Reviewed head: 5c9564c42871a6771ca0c68959f5e3c691f4f914

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) A focused, plausibly correct generated-baseline refresh with appropriate stated validation; rebase-and-regenerate on the current merge head is the remaining confidence step.
Proof confidence 🐚 platinum hermit (4/6) Not applicable: This MEMBER-authored automation-maintenance PR is not subject to the external-contributor proof gate; the PR body provides relevant after-change generator/check commands and a failed automation-run reference.
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 automation-maintenance PR is not subject to the external-contributor proof gate; the PR body provides relevant after-change generator/check commands and a failed automation-run reference.
Evidence reviewed 4 items Narrow generated-baseline diff: The supplied PR file list shows a single modified inventory file with eight additions and eight deletions; each shown change only updates a line field while retaining the stable ID, path, source string, kind, and surface.
Generator contract and claimed validation: The PR body identifies scripts/native-app-i18n.ts as the canonical baseline generator and reports both baseline generation and check-mode validation after the source movements.
Active maintainer-owned item: The supplied GitHub context identifies the author association as MEMBER and applies the maintainer label; the review policy requires this workflow to keep such items open for explicit maintainer handling.
Findings None None.
Security None None.

How this fits together

The native localization inventory records stable source identifiers and their native-app source locations. The native i18n generator scans Apple source files into that inventory, and locale-refresh/release automation checks it before translation work proceeds.

flowchart LR
  A[Apple native source files] --> B[Native i18n generator]
  B --> C[Stable source inventory]
  C --> D[Inventory check]
  D --> E[Locale refresh automation]
  E --> F[Native localization updates]
Loading

Before merge

  • Resolve merge risk (P1) - The branch is behind main; regenerate and run native-i18n check against the exact merge head so the inventory does not preserve offsets from an older base.
  • Resolve merge risk (P1) - The review environment could not independently execute read-only source/history commands, so the contributor’s reported generator output has not been re-run in this review.
  • Complete next step (P2) - This is an active MEMBER-authored PR with a narrow validation/rebase follow-up, not an automated repair-lane candidate.
Agent review details

Security

None.

PR surface

Other 0. Total 0 across 1 file.

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

Review metrics

None.

Merge-risk options

Maintainer options:

  1. Decide the mitigation before merge
    Rebase onto current main, regenerate only apps/.i18n/native-source.json with the canonical native i18n command, and land the resulting deterministic baseline when check mode is clean.
  2. Pause or close
    Do not merge this PR until maintainers decide whether the risk is worth taking.

Technical review

Best possible solution:

Rebase onto current main, regenerate only apps/.i18n/native-source.json with the canonical native i18n command, and land the resulting deterministic baseline when check mode is clean.

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

Yes, source-reproducible: run the canonical native i18n check against current main; the PR reports that stale line metadata caused the locale-refresh run to stop before translation.

Is this the best way to solve the issue?

Yes, regenerating the canonical inventory is the narrowest solution when stable IDs and source strings remain unchanged; the final regenerated output should be taken from the exact merge head rather than manually edited.

AGENTS.md: found and applied where relevant.

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

Labels

Label changes:

  • add P3: This is a one-file, no-direct-user-visible maintenance refresh for native localization automation.
  • add rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🐚 platinum hermit 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 automation-maintenance PR is not subject to the external-contributor proof gate; the PR body provides relevant after-change generator/check commands and a failed automation-run reference.

Label justifications:

  • P3: This is a one-file, no-direct-user-visible maintenance refresh for native localization automation.
  • rating: 🐚 platinum hermit: Overall readiness is 🐚 platinum hermit; proof is 🐚 platinum hermit 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 automation-maintenance PR is not subject to the external-contributor proof gate; the PR body provides relevant after-change generator/check commands and a failed automation-run reference.

Evidence

What I checked:

  • Narrow generated-baseline diff: The supplied PR file list shows a single modified inventory file with eight additions and eight deletions; each shown change only updates a line field while retaining the stable ID, path, source string, kind, and surface. (apps/.i18n/native-source.json:25843, 5c9564c42871)
  • Generator contract and claimed validation: The PR body identifies scripts/native-app-i18n.ts as the canonical baseline generator and reports both baseline generation and check-mode validation after the source movements. (scripts/native-app-i18n.ts:1, 5c9564c42871)
  • Active maintainer-owned item: The supplied GitHub context identifies the author association as MEMBER and applies the maintainer label; the review policy requires this workflow to keep such items open for explicit maintainer handling.
  • Current-main and release context: The review context identifies current main as c903ca8 and the latest release as v2026.7.1; this PR is unmerged and therefore cannot be treated as implemented on main or shipped. (c903ca8158d7)

Likely related people:

  • vincentkoc: The supplied context identifies a MEMBER-authored maintenance PR with direct reproduction and generator-validation evidence for the native locale-refresh path; local history inspection was unavailable in this read-only session. (role: recent area contributor; confidence: medium; commits: 5c9564c42871; files: apps/.i18n/native-source.json, scripts/native-app-i18n.ts)

Rank-up moves

Optional improvements that raise the rating; they are not merge blockers.

  • Rebase onto current main, regenerate the inventory, and attach the clean native-i18n check output if the rebase changes any recorded offsets.

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 9d5ecc7 into main Jul 28, 2026
71 of 105 checks passed
@vincentkoc
vincentkoc deleted the fix/native-source-baseline-20260728 branch July 28, 2026 07:12
@vincentkoc

Copy link
Copy Markdown
Member Author

Landed as merge commit 9d5ecc7.

The repository has GitHub merge commits disabled, while this landing was explicitly requested without squash, so I pushed the exact two-parent merge result to main.

Final merge-head proof on b0a8346ae2c21eb0826cec4a63432390d54ff4e6:

  • node --import tsx scripts/native-app-i18n.ts baseline --write -> changed=false
  • node --import tsx scripts/native-app-i18n.ts check -> passed
  • git diff HEAD^1..HEAD --check -> passed
  • latest ClawSweeper review: no actionable findings

github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Jul 29, 2026
…seline-20260728

* commit '12587c05b686f5dc3be17320d96ff359313dcd5d':
  fix(i18n): refresh native source baseline
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

maintainer Maintainer-authored PR P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. 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