Skip to content

fix(ci): enforce Control UI locale parity for manual CI - #131045

Merged
obviyus merged 1 commit into
openclaw:mainfrom
qingminglong:fix/ci-control-ui-locale-strictness
Aug 29, 2026
Merged

obviyus merged 1 commit into
openclaw:mainfrom
qingminglong:fix/ci-control-ui-locale-strictness

Conversation

@qingminglong

@qingminglong qingminglong commented Aug 27, 2026 •

Copy link
Copy Markdown
Contributor

What Problem This Solves

Ordinary manually dispatched full CI could treat Control UI locale parity as advisory. A run could therefore succeed while generated locale files were stale.

Root cause

The preflight job skipped changed-scope detection for ordinary workflow_dispatch runs. Its Control UI strictness output still read only from that skipped step. The existing native locale output already handled this dispatch case correctly.

Fix

Use the existing native-locale dispatch rule for the Control UI strictness output. Ordinary manual runs are strict. Exact-head release_gate runs keep their changed-scope behavior. Pull request and push routing is unchanged.

Evidence

  • Current main at 214d55e99b374f4fadc4a6bfae0fb8d25c99e1ca: manual run 33239782024 used workflow_dispatch, release_gate=false, and one controlled fallback mismatch. Source verification passed. Locale parity reported drift and exited 1. The current workflow treated that failure as advisory.
  • Proven head 31c61fc2f17cc70e419af7fcd133ca66b5fa810f: manual run 33168537436 used the same event and mismatch. Source verification passed. Locale parity reported drift and exited 1. The Control UI locale job failed as required. Current head 33bd70efc408a7f9836a22d373bfb6d3f70e1728 keeps the same workflow behavior after rebasing onto current main and clarifying the policy text.
  • Anti-cheat: the mismatch changed one generated fallback entry. pnpm ui:i18n:verify passed, while pnpm ui:i18n:check failed with control-ui catalog fallback baseline drift detected on both revisions.

Validation

  • node scripts/run-vitest.mjs run test/scripts/ci-workflow-guards.test.ts: 166 tests passed on the rebased head.
  • The regression test fails on the pre-fix workflow output and passes on this head.
  • Changed-file formatting, workflow checks, script lint, repository ratchets, and git diff --check passed.
  • Delta: workflow config +1/-1; tests +25/-0; production code +0/-0.

Scope

This proof covers ordinary manual CI and the Control UI locale parity boundary. It does not claim that the final PR tree contains a real locale mismatch.

@clawsweeper

clawsweeper Bot commented Aug 27, 2026

Copy link
Copy Markdown
Contributor

🦞👀
ClawSweeper picked this up.

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

@qingminglong
qingminglong marked this pull request as ready for review August 27, 2026 17:08
@clawsweeper clawsweeper Bot added merge-risk: 🚨 automation 🚨 May affect CI, automerge, proof capture, label sync, or maintainer automation. P2 Normal backlog priority with limited blast radius. rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. status: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask. labels Aug 27, 2026
@clawsweeper

clawsweeper Bot commented Aug 27, 2026 •

Copy link
Copy Markdown
Contributor

Codex review: needs maintainer review before merge. Reviewed August 29, 2026, 4:52 AM ET / 08:52 UTC.

ClawSweeper review

What this changes

The PR makes Control UI locale-parity drift fail ordinary manually dispatched CI while retaining changed-scope enforcement for release-gate, push, and pull-request runs.

Merge readiness

⚠️ Ready for maintainer review - 2 items remain

No blocking findings. The head repairs the manual-dispatch strictness gap by using the established native-locale policy, and the prior wording finding is addressed; await normal exact-head CI and maintainer review.

Priority: P2
Reviewed head: 33bd70efc408a7f9836a22d373bfb6d3f70e1728

Review scores

Measure Result What it means
Overall readiness 🐚 platinum hermit (4/6) A focused owner-boundary fix, real controlled workflow evidence, and targeted guard coverage provide normal mergeable quality.
Proof confidence 🐚 platinum hermit (4/6) Sufficient (live_output): The changed production owner is CI preflight, whose strictness output controls the Control UI locale job. The captured PR-body workflow runs exercise ordinary workflow_dispatch with a controlled locale mismatch and report the after-fix job failure; the current head preserves that expression.
Patch quality 🐚 platinum hermit (4/6) No actionable review findings were identified.

Verification

Check Result Evidence
Real behavior Verified Sufficient (live_output): The changed production owner is CI preflight, whose strictness output controls the Control UI locale job. The captured PR-body workflow runs exercise ordinary workflow_dispatch with a controlled locale mismatch and report the after-fix job failure; the current head preserves that expression.
Evidence reviewed 8 items Current-main defect: Before this PR, the current main preflight output read only the changed-scope result, even though ordinary manual dispatches skip the changed-scope step.
Owner boundary and sibling policy: The introduced output exactly matches the existing native-locale manual-dispatch rule; the Control UI consumer fails only when this output is true.
Manual-dispatch dataflow: Changed-scope detection intentionally runs for manual dispatch only when release_gate is true, while the manifest selects Control UI i18n for every manual dispatch; the new preflight output is therefore at the correct producer boundary.
Findings None None.
Security None None.

How this fits together

CI preflight determines whether generated Control UI locale drift is strict, and the locale job uses that result to make its check blocking or advisory. Manual dispatches run the locale check through the manifest, while automatic and release-gate runs rely on changed-scope facts.

flowchart LR
A[Manual or automatic CI event] --> B[Preflight routing]
B --> C[Locale strictness output]
C --> D[Control UI locale check]
D --> E[CI pass or failure]
B --> F[Changed-scope facts]
F --> C
Loading

Before merge

  • Resolve merge risk (P1) - Merging intentionally changes ordinary manually dispatched CI from advisory to blocking when generated locale drift is detected; the supplied controlled workflow evidence supports that policy, while exact-head CI remains pending.
  • Complete next step (P2) - No repair lane is needed: the prior actionable review item is fixed and this review found no discrete mechanical defect.
Agent review details

Security

None.

PR surface

Tests +25, Config 0. Total +25 across 2 files.

View PR surface stats
Area Files Added Removed Net
Source 0 0 0 0
Tests 1 26 1 +25
Docs 0 0 0 0
Config 1 3 3 0
Generated 0 0 0 0
Other 0 0 0 0
Total 2 29 4 +25

Review metrics

Metric Value Why it matters
Production versus test delta production +1/-1; tests +25/-0 The functional workflow change is net-neutral; the remaining logical additions are focused regression coverage.

Merge-risk options

Maintainer options:

  1. Accept the strict manual-CI policy (recommended)
    Merge with the intentional result that ordinary manual runs fail when Control UI locale parity detects drift.

Technical review

Best possible solution:

Keep strictness owned by preflight, sharing the native-locale dispatch rule and retaining changed-scope behavior for release-gate and automatic events.

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

Yes. The captured controlled workflow_dispatch runs use a generated fallback mismatch, and current source traces the advisory result to the skipped changed-scope output on ordinary manual dispatch.

Is this the best way to solve the issue?

Yes. The output belongs at preflight, where manual-dispatch routing is decided; mirroring the established native-locale expression avoids adding a consumer-side exception.

AGENTS.md: found and applied where relevant.

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

Labels

Label justifications:

  • P2: This is a bounded correction to a manual CI enforcement path.
  • merge-risk: 🚨 automation: The PR changes whether a locale-parity failure makes an operator-triggered CI workflow fail.
  • 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. Sufficient (live_output): The changed production owner is CI preflight, whose strictness output controls the Control UI locale job. The captured PR-body workflow runs exercise ordinary workflow_dispatch with a controlled locale mismatch and report the after-fix job failure; the current head preserves that expression.
  • proof: sufficient: Contributor real behavior proof is sufficient. The changed production owner is CI preflight, whose strictness output controls the Control UI locale job. The captured PR-body workflow runs exercise ordinary workflow_dispatch with a controlled locale mismatch and report the after-fix job failure; the current head preserves that expression.

Evidence

What I checked:

  • Current-main defect: Before this PR, the current main preflight output read only the changed-scope result, even though ordinary manual dispatches skip the changed-scope step. (.github/workflows/ci.yml:130, 1e42dbc945f2)
  • Owner boundary and sibling policy: The introduced output exactly matches the existing native-locale manual-dispatch rule; the Control UI consumer fails only when this output is true. (.github/workflows/ci.yml:130, 33bd70efc408)
  • Manual-dispatch dataflow: Changed-scope detection intentionally runs for manual dispatch only when release_gate is true, while the manifest selects Control UI i18n for every manual dispatch; the new preflight output is therefore at the correct producer boundary. (.github/workflows/ci.yml:840, 33bd70efc408)
  • Regression coverage: The updated guard locks the output expression and evaluates ordinary manual dispatch as strict and release-gate dispatch as non-overriding; it also retains the locale-job consumer assertion. (test/scripts/ci-workflow-guards.test.ts:8413, 33bd70efc408)
  • Prior review continuity: The changed comment and test name now limit advisory behavior to automatic source-only drift, resolving the prior P3 wording concern. (.github/workflows/ci.yml:2320, 33bd70efc408)
  • Introduced-change identity: The verified test merge has the pinned main parent followed by this head and contains only the workflow and guard-test changes. (.github/workflows/ci.yml:130, 4cb69c009f0f)

Likely related people:

  • vincentkoc: Authored the prior source-only Control UI locale-policy commit visible in workflow history. (role: adjacent CI policy owner; confidence: medium; commits: ce54cae86d7d; files: .github/workflows/ci.yml)
  • steipete: Recent workflow history includes the Control UI CI-routing and related CI maintenance work. (role: recent CI area contributor; confidence: medium; commits: a6cc62fce5; files: .github/workflows/ci.yml, test/scripts/ci-workflow-guards.test.ts)

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 (6 earlier review cycles)
  • reviewed 2026-08-27T17:16:47.870Z sha c7c33e214b320c3994f51def193aeeb7b545591a :: needs real behavior proof before merge. :: none
  • reviewed 2026-08-28T05:12:08.282Z sha 04aa8ec3fc17bfd91433b39991309f6c0f133369 :: needs real behavior proof before merge. :: none
  • reviewed 2026-08-28T11:47:08.578Z sha 31c61fc2f17cc70e419af7fcd133ca66b5fa810f :: needs real behavior proof before merge. :: none
  • reviewed 2026-08-28T12:06:08.509Z sha 31c61fc2f17cc70e419af7fcd133ca66b5fa810f :: needs maintainer review before merge. :: none
  • reviewed 2026-08-29T07:19:50.250Z sha 31c61fc2f17cc70e419af7fcd133ca66b5fa810f :: needs changes before merge. :: [P3] Clarify the manual-dispatch exception in the locale policy comment
  • reviewed 2026-08-29T07:44:27.695Z sha 4154b6935206c3aaac3e30dc563314af3bd2b151 :: needs changes before merge. :: [P3] Qualify the manual-dispatch locale policy

@qingminglong
qingminglong force-pushed the fix/ci-control-ui-locale-strictness branch 2 times, most recently from 04aa8ec to 31c61fc Compare August 28, 2026 11:39
@qingminglong

Copy link
Copy Markdown
Contributor Author

@clawsweeper re-review

@clawsweeper

clawsweeper Bot commented Aug 28, 2026 •

Copy link
Copy Markdown
Contributor

🦞🧹
ClawSweeper re-review requested.

I asked ClawSweeper to review this item again.
Action: item re-review queued (workflow sweep.yml, event exact_review_queue).
Result: when the review finishes, ClawSweeper will create the durable review comment if needed or update the existing comment in place.

Re-review progress:

@clawsweeper clawsweeper Bot added proof: sufficient ClawSweeper judged the real behavior proof convincing. rating: 🦞 diamond lobster Very strong PR readiness with only minor maintainer review expected. status: 👀 ready for maintainer look ClawSweeper has no concrete contributor-facing blocker left for this PR. and removed rating: 🦪 silver shellfish Thin PR readiness signal; proof, validation, or implementation needs work. status: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask. labels Aug 28, 2026
@openclaw-barnacle openclaw-barnacle Bot added the triage: needs-pr-context Candidate: external PR body lacks required problem context or evidence. label Aug 29, 2026
@clawsweeper clawsweeper Bot added rating: 🐚 platinum hermit Good normal PR readiness with ordinary maintainer review expected. and removed rating: 🦞 diamond lobster Very strong PR readiness with only minor maintainer review expected. labels Aug 29, 2026
@openclaw-barnacle openclaw-barnacle Bot removed the triage: needs-pr-context Candidate: external PR body lacks required problem context or evidence. label Aug 29, 2026
@obviyus
obviyus force-pushed the fix/ci-control-ui-locale-strictness branch 2 times, most recently from 6cd0cf1 to 4154b69 Compare August 29, 2026 07:36
@obviyus
obviyus force-pushed the fix/ci-control-ui-locale-strictness branch from 4154b69 to 33bd70e Compare August 29, 2026 08:42
@obviyus
obviyus merged commit c02dbf8 into openclaw:main Aug 29, 2026
197 checks passed
@obviyus

obviyus commented Aug 29, 2026

Copy link
Copy Markdown
Collaborator

Thanks @qingminglong!

Proof: An ordinary manual CI run with one controlled stale Control UI locale entry now fails the locale job, while current main treated the same parity failure as advisory. The exact-head workflow guard suite passed 166 tests, hosted CI passed, and the final local review found no code or security issue.

  • Bug: Manually dispatched full CI could pass when generated Control UI locales were stale.
  • Fix: Preflight now makes ordinary manual Control UI locale checks strict while preserving automatic and release-gate routing.

Example

Before After
A stale generated locale reports an error but manual CI can pass. A stale generated locale fails ordinary manual CI.

github-actions Bot pushed a commit to Desicool/openclaw that referenced this pull request Aug 30, 2026
)

Manual full CI could pass while generated Control UI locales were stale because preflight read strictness from a skipped changed-scope step.

Ordinary manual CI now enforces Control UI locale parity. Automatic runs and exact-head release gates keep their existing scoped behavior.

Co-authored-by: Ayaan Zaidi <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

merge-risk: 🚨 automation 🚨 May affect CI, automerge, proof capture, label sync, or maintainer automation. P2 Normal backlog priority with limited blast radius. proof: sufficient ClawSweeper judged the real behavior proof convincing. 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.

2 participants