Skip to content

refactor(i18n): remove unused Apple contradiction report - #117182

Merged
steipete merged 1 commit into
mainfrom
codex/100k-wave2-native-contradictions-2d45
Aug 1, 2026
Merged

steipete merged 1 commit into
mainfrom
codex/100k-wave2-native-contradictions-2d45

Conversation

@steipete

@steipete steipete commented Aug 1, 2026 •

Copy link
Copy Markdown
Contributor

What Problem This Solves

Native localization refreshes currently commit an 11,069-line Apple translation-contradiction report even though no Apple app, build, package, runtime, release gate, or localization consumer ever reads it. The duplicate generated sidecar expands every refresh and can make an otherwise correct Apple localization check fail solely because an unused diagnostic file is stale.

Why This Change Was Made

Keep contradiction discovery in the canonical Apple catalog builder and preserve its existing deterministic selection, complete contradiction objects, and CLI summaries; stop serializing those advisory results into a second committed artifact. Update the generated-refresh publication list, generated-path ownership classifier, and their exact contract tests together. Every real generated iOS/macOS/Android artifact remains classified and protected exactly as before.

User Impact

No user-visible localization changes: all 21 non-English locales, 1,607 iOS keys, 1,249 macOS keys, 84 InfoPlist files, existing translations, placeholder validation, app-bundle compilation, and diagnostic contradiction counts remain intact. Maintainers get 11,088 fewer tracked lines and no unused 238 KB generated report.

Evidence

  • Change accounting: +4/-11,092 lines, net -11,088; generated artifact -11,069; production generator logic -16; workflow -1; obsolete exact-fixture entries -2.
  • No consumer remains: repository-wide git grep finds zero references; app packaging reads Localizable.xcstrings, and the npm package excludes apps/.
  • Trusted Blacksmith Testbox lease tbx_01kyxm7e4pp14tgtkey4yjd80m.
  • Strict Apple CLI: iosKeys=1607 macosKeys=1249 infoPlistFiles=84 translationContradictions=1370 macosTranslationContradictions=608 across all 21 locales.
  • Strict native CLI passed, including Android and Apple generated-artifact parity.
  • 113 focused tests passed across Apple catalog generation/app-bundle compilation, native generated-path isolation, and complete workflow publication contracts.
  • Real native refresh sync completed without recreating the removed report; repeated strict Apple/native checks passed.
  • Workflow validation passed, including zizmor and composite-action interpolation guards.
  • Fresh full-diff autoreview: gpt-5.6-sol/high, clean, confidence 0.99; TruffleHog clean.
  • Exact-head hosted CI PASSED: https://github.com/openclaw/openclaw/actions/runs/30681244068 (native-i18n, check-lint, check-prod-types, check-test-types, check-guards, build-artifacts, all Node shards, and required openclaw/ci-gate). The redundant remote full changed gate was intentionally interrupted after all guards, three tsgo projects, and more than 20 clean lint shards once this stronger complete exact-head hosted gate passed; it is not claimed as a completed remote gate.
  • AI-assisted; no transcript attached.

@openclaw-barnacle openclaw-barnacle Bot added scripts Repository scripts size: XL maintainer Maintainer-authored PR labels Aug 1, 2026
@steipete
steipete marked this pull request as ready for review August 1, 2026 03:03
@clawsweeper clawsweeper Bot added proof: sufficient ClawSweeper judged the real behavior proof convincing. 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 Aug 1, 2026
@clawsweeper

clawsweeper Bot commented Aug 1, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge. Reviewed July 31, 2026, 11:32 PM ET / August 1, 2026, 03:32 UTC.

ClawSweeper review

What this changes

This PR stops native localization refreshes from writing and publishing the Apple translation-contradiction JSON report, removes the tracked report, and updates CI scope and contract tests accordingly.

Merge readiness

⚠️ Ready for maintainer review - 2 items remain

The branch cleanly removes a generated diagnostic sidecar while retaining Apple catalog validation and contradiction counts in the CLI output. Current source and tests support the stated in-repository cleanup, but deleting a tracked developer-facing artifact could break undocumented external tooling; the protected maintainer label means a maintainer should explicitly confirm that no supported contract remains before merge.

Priority: P3
Reviewed head: 3b4e35f3b37c61e8c706bbed94b9b261cb530c1d
Owner decision: Required. See Decision needed.

Review scores

Measure Result What it means
Overall readiness 🦞 diamond lobster (5/6) The cleanup is narrowly implemented with stated real refresh proof and aligned contract coverage; only the maintainer-owned external-artifact decision remains.
Proof confidence 🦞 diamond lobster (5/6) Sufficient (logs): The PR body records an after-fix native refresh that did not recreate the report, strict Apple/native checks with contradiction counts, focused tests, and an exact-head hosted CI run; the supplied proof: sufficient label agrees with that evidence.
Patch quality 🦞 diamond lobster (5/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Verified Sufficient (logs): The PR body records an after-fix native refresh that did not recreate the report, strict Apple/native checks with contradiction counts, focused tests, and an exact-head hosted CI run; the supplied proof: sufficient label agrees with that evidence.
Evidence reviewed 4 items Current generation behavior: Current main writes the contradiction sidecar during iOS catalog synchronization and fails a check when it is stale; the same build continues to expose contradiction counts through the normal check output. The PR removes only the sidecar serialization/check, retaining the catalog build and diagnostic counts.
Workflow and CI ownership remain aligned: Current main lists the report as a generated publication path and marks it as a hard-generated native i18n file. The branch removes those two ownership entries together with their exact workflow and classifier expectations, rather than leaving stale scope policy behind.
Artifact provenance: The report currently traces to the native localization update in commit ee9a658. This makes the PR a deliberate removal of a recently introduced generated output, not an unrelated deletion.
Findings None None.
Security None None.

How this fits together

The native localization generator builds iOS and macOS string catalogs plus derived mobile resources from source inventory and locale data. A refresh workflow runs that generator, publishes its recognized generated files, and the changed-file classifier routes those generated updates through native i18n validation.

flowchart LR
  A[Localization source inventory] --> B[Apple catalog builder]
  B --> C[Apple app catalogs]
  B --> D[Contradiction diagnostics]
  C --> E[Native refresh workflow]
  C --> F[Generated-file scope classifier]
  E --> G[Generated localization PR]
  F --> H[Native i18n validation]
Loading

Decision needed

Question Recommendation
Should the committed Apple translation-contradiction JSON report remain a supported developer-facing output outside the repository, or can it be retired now that in-repository validation and CLI diagnostics do not consume it? Retire the sidecar: Confirm that no supported external consumer exists and merge the cleanup, keeping contradiction diagnostics only in the canonical builder and CLI output.

Why: Source and tests establish that OpenClaw itself does not need the sidecar, but only a maintainer can decide whether external tooling or contributor workflows have an intended compatibility claim on the tracked file.

Before merge

  • Resolve merge risk (P1) - Removing the tracked JSON sidecar is compatible with all inspected in-repository paths, but an undocumented external maintainer script could still consume the committed file; repository search cannot establish that external contract is absent.
Agent review details

Security

None.

PR surface

Tests -2, Config -1, Other -11085. Total -11088 across 6 files.

View PR surface stats
Area Files Added Removed Net
Source 0 0 0 0
Tests 2 0 2 -2
Docs 0 0 0 0
Config 1 0 1 -1
Generated 0 0 0 0
Other 3 4 11089 -11085
Total 6 4 11092 -11088

Review metrics

None.

Stored data model

Persistent data-model change detected: serialized state: scripts/apple-app-i18n.ts. Confirm migration or upgrade compatibility proof before merge.

Merge-risk options

Maintainer options:

  1. Confirm the report is unsupported (recommended)
    A maintainer should verify that no documented or supported external workflow reads this committed sidecar, then merge the focused removal.
  2. Keep and define the artifact contract
    If external consumers are intentional, retain the file and add a named ownership and migration plan rather than silently removing it.

Technical review

Best possible solution:

Confirm that the report is not a supported developer-facing artifact, then merge this single canonical cleanup so catalogs and CLI diagnostics remain the only maintained outputs.

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

Not applicable: this PR removes maintenance output rather than repairing a user-reported runtime failure. Source inspection does establish the existing generation/check path and the proposed removal boundary.

Is this the best way to solve the issue?

Unclear until a maintainer confirms the sidecar has no supported external consumer. If it is unsupported, removing generation, workflow publication, scope classification, and exact tests together is the narrowest maintainable solution.

AGENTS.md: found and applied where relevant.

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

Labels

Label changes:

  • add merge-risk: 🚨 compatibility: The PR removes a tracked generated file that may be consumed by unsupported or undocumented external maintainer tooling.
  • add rating: 🦞 diamond lobster: Overall readiness is 🦞 diamond lobster; proof is 🦞 diamond lobster and patch quality is 🦞 diamond lobster.
  • remove rating: 🐚 platinum hermit: Current PR rating is rating: 🦞 diamond lobster, so this older rating label is no longer current.

Label justifications:

  • P3: This is low-risk native localization maintenance cleanup with no demonstrated user-facing regression.
  • merge-risk: 🚨 compatibility: The PR removes a tracked generated file that may be consumed by unsupported or undocumented external maintainer tooling.
  • rating: 🦞 diamond lobster: Overall readiness is 🦞 diamond lobster; proof is 🦞 diamond lobster and patch quality is 🦞 diamond lobster.
  • status: 👀 ready for maintainer look: ClawSweeper has no concrete contributor-facing blocker left for this PR. Sufficient (logs): The PR body records an after-fix native refresh that did not recreate the report, strict Apple/native checks with contradiction counts, focused tests, and an exact-head hosted CI run; the supplied proof: sufficient label agrees with that evidence.
  • proof: sufficient: Contributor real behavior proof is sufficient. The PR body records an after-fix native refresh that did not recreate the report, strict Apple/native checks with contradiction counts, focused tests, and an exact-head hosted CI run; the supplied proof: sufficient label agrees with that evidence.

Evidence

What I checked:

  • Current generation behavior: Current main writes the contradiction sidecar during iOS catalog synchronization and fails a check when it is stale; the same build continues to expose contradiction counts through the normal check output. The PR removes only the sidecar serialization/check, retaining the catalog build and diagnostic counts. (scripts/apple-app-i18n.ts:928, 6938f7dddb63)
  • Workflow and CI ownership remain aligned: Current main lists the report as a generated publication path and marks it as a hard-generated native i18n file. The branch removes those two ownership entries together with their exact workflow and classifier expectations, rather than leaving stale scope policy behind. (.github/workflows/native-app-locale-refresh.yml:308, 3b4e35f3b37c)
  • Artifact provenance: The report currently traces to the native localization update in commit ee9a658. This makes the PR a deliberate removal of a recently introduced generated output, not an unrelated deletion. (apps/.i18n/apple-translation-contradictions.json:1, ee9a658a7d39)
  • Branch relationship to current main: The PR is not already contained in current main. Git history gives merge base 7e78de7, so its central cleanup remains necessary if maintainers approve the artifact-contract decision. (scripts/apple-app-i18n.ts:42, 3b4e35f3b37c)

Likely related people:

  • steipete: Current history attributes the canonical derived-catalog synchronization work to Peter Steinberger, and this PR continues that native i18n ownership area. (role: recent i18n feature owner; confidence: high; commits: e5ac75568134, 3b4e35f3b37c; files: scripts/apple-app-i18n.ts, .github/workflows/native-app-locale-refresh.yml)
  • Vincent Koc: Git history and current-line blame associate the report generation and workflow publication entries with the commit that introduced the current artifact. (role: recent generated-artifact contributor; confidence: high; commits: ee9a658a7d39; files: scripts/apple-app-i18n.ts, .github/workflows/native-app-locale-refresh.yml, apps/.i18n/apple-translation-contradictions.json)

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.

History

Review history (2 earlier review cycles)
  • reviewed 2026-08-01T03:09:37.109Z sha 3b4e35f :: needs maintainer review before merge. :: none
  • reviewed 2026-08-01T03:27:09.101Z sha 3b4e35f :: needs maintainer review before merge. :: none

@steipete steipete closed this Aug 1, 2026
@steipete steipete reopened this Aug 1, 2026
@clawsweeper clawsweeper Bot added rating: 🦞 diamond lobster Very strong PR readiness with only minor maintainer review expected. merge-risk: 🚨 compatibility 🚨 May break existing users, config, migrations, defaults, or upgrade paths. and removed rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. labels Aug 1, 2026
@steipete
steipete merged commit 45c2d59 into main Aug 1, 2026
320 of 331 checks passed
@steipete
steipete deleted the codex/100k-wave2-native-contradictions-2d45 branch August 1, 2026 03:36
@steipete

steipete commented Aug 1, 2026

Copy link
Copy Markdown
Contributor Author

Merged via squash.

vincentkoc added a commit to chenyangjun-xy/openclaw that referenced this pull request Aug 1, 2026
* origin/main:
  fix(onboard): stop a full reset from resetting the default workspace when the config is unreadable (openclaw#114110)
  refactor(i18n): remove unused Apple contradiction report (openclaw#117182)
  fix(google): stop scraping Gemini CLI OAuth credentials (openclaw#117167)
  perf: count large histories before Gateway prewarm (openclaw#117118)
  fix(signal): restore provider-safe original attachment filenames (openclaw#115107)
  refactor(channels): unify setup ownership across bundled channels (openclaw#117188)
  fix: allow gateway service commands for named profiles (openclaw#116314)
  fix(plugins): invalidate bundled artifact locations after metadata refresh (openclaw#117041)
  fix(ollama): honor model requests and pull completion contracts (openclaw#117171)
  fix(agents): prevent fallback after stale lifecycle abort (openclaw#117168)
  fix(telegram): confirm polling before long poll (openclaw#116970)
  fix(tlon): wire autoDiscoverChannels through the settings-store round-trip (openclaw#114949)
  fix(gateway): yield before post-ready background work (openclaw#117083)
  test(google): cover live transcript overflow
  fix(google): bound live transcript accumulation
sunlit-deng pushed a commit to sunlit-deng/openclaw that referenced this pull request Aug 1, 2026
* commit '441d6ab254df14fb6939a8a261f474904ff9c500': (388 commits)
  fix(qqbot): ignore blank app id fallbacks (openclaw#109460)
  fix(feishu): consume implicit reply targets across media delivery (openclaw#117196)
  fix(exec): preserve approved command output when sessions resume (openclaw#117177)
  fix(qa): use public subagent fanout evidence (openclaw#116832)
  fix(googlechat): cancel unread auth response bodies before release (openclaw#115873)
  fix(queue): prevent cron saturation from starving hook dispatch (openclaw#116666)
  fix(gateway): sessions.steer retry no longer interrupts an active run when replaying a cached idempotency key (openclaw#116969)
  fix(irc): config validation rejects documented channels.irc.configWrites key (openclaw#112392)
  fix(mistral): keep terminal error branch lint-clean
  fix(onboard): stop a full reset from resetting the default workspace when the config is unreadable (openclaw#114110)
  refactor(i18n): remove unused Apple contradiction report (openclaw#117182)
  fix(google): stop scraping Gemini CLI OAuth credentials (openclaw#117167)
  perf: count large histories before Gateway prewarm (openclaw#117118)
  fix(signal): restore provider-safe original attachment filenames (openclaw#115107)
  refactor(channels): unify setup ownership across bundled channels (openclaw#117188)
  fix: allow gateway service commands for named profiles (openclaw#116314)
  fix(plugins): invalidate bundled artifact locations after metadata refresh (openclaw#117041)
  fix(ollama): honor model requests and pull completion contracts (openclaw#117171)
  fix(agents): prevent fallback after stale lifecycle abort (openclaw#117168)
  fix(telegram): confirm polling before long poll (openclaw#116970)
  ...
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Aug 1, 2026
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Aug 1, 2026
* origin/main:
  fix(onboard): stop a full reset from resetting the default workspace when the config is unreadable (openclaw#114110)
  refactor(i18n): remove unused Apple contradiction report (openclaw#117182)
  fix(google): stop scraping Gemini CLI OAuth credentials (openclaw#117167)
  perf: count large histories before Gateway prewarm (openclaw#117118)
  fix(signal): restore provider-safe original attachment filenames (openclaw#115107)
  refactor(channels): unify setup ownership across bundled channels (openclaw#117188)
  fix: allow gateway service commands for named profiles (openclaw#116314)
  fix(plugins): invalidate bundled artifact locations after metadata refresh (openclaw#117041)
  fix(ollama): honor model requests and pull completion contracts (openclaw#117171)
  fix(agents): prevent fallback after stale lifecycle abort (openclaw#117168)
  fix(telegram): confirm polling before long poll (openclaw#116970)
  fix(tlon): wire autoDiscoverChannels through the settings-store round-trip (openclaw#114949)
  fix(gateway): yield before post-ready background work (openclaw#117083)
  test(google): cover live transcript overflow
  fix(google): bound live transcript accumulation
github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Aug 1, 2026
* commit 'ae4e662145b6aa162777cdb1c011b3f04ddd230d': (388 commits)
  fix(qqbot): ignore blank app id fallbacks (openclaw#109460)
  fix(feishu): consume implicit reply targets across media delivery (openclaw#117196)
  fix(exec): preserve approved command output when sessions resume (openclaw#117177)
  fix(qa): use public subagent fanout evidence (openclaw#116832)
  fix(googlechat): cancel unread auth response bodies before release (openclaw#115873)
  fix(queue): prevent cron saturation from starving hook dispatch (openclaw#116666)
  fix(gateway): sessions.steer retry no longer interrupts an active run when replaying a cached idempotency key (openclaw#116969)
  fix(irc): config validation rejects documented channels.irc.configWrites key (openclaw#112392)
  fix(mistral): keep terminal error branch lint-clean
  fix(onboard): stop a full reset from resetting the default workspace when the config is unreadable (openclaw#114110)
  refactor(i18n): remove unused Apple contradiction report (openclaw#117182)
  fix(google): stop scraping Gemini CLI OAuth credentials (openclaw#117167)
  perf: count large histories before Gateway prewarm (openclaw#117118)
  fix(signal): restore provider-safe original attachment filenames (openclaw#115107)
  refactor(channels): unify setup ownership across bundled channels (openclaw#117188)
  fix: allow gateway service commands for named profiles (openclaw#116314)
  fix(plugins): invalidate bundled artifact locations after metadata refresh (openclaw#117041)
  fix(ollama): honor model requests and pull completion contracts (openclaw#117171)
  fix(agents): prevent fallback after stale lifecycle abort (openclaw#117168)
  fix(telegram): confirm polling before long poll (openclaw#116970)
  ...
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

maintainer Maintainer-authored PR merge-risk: 🚨 compatibility 🚨 May break existing users, config, migrations, defaults, or upgrade paths. P3 Low-priority cleanup, docs, polish, ergonomics, or speculative work. proof: sufficient ClawSweeper judged the real behavior proof convincing. rating: 🦞 diamond lobster Very strong PR readiness with only minor maintainer review expected. scripts Repository scripts size: XL 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