Repository navigation
fix(ci): enforce Control UI locale parity for manual CI - #131045
Conversation
|
🦞👀 Pull request received. I will update this pull request when review starts. |
|
Codex review: needs maintainer review before merge. Reviewed August 29, 2026, 4:52 AM ET / 08:52 UTC. ClawSweeper reviewWhat this changesThe 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 readinessNo 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 Review scores
Verification
How this fits togetherCI 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
Before merge
Agent review detailsSecurityNone. PR surfaceTests +25, Config 0. Total +25 across 2 files. View PR surface stats
Review metrics
Merge-risk optionsMaintainer options:
Technical reviewBest 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. LabelsLabel justifications:
EvidenceWhat I checked:
Likely related people:
Rating scale
Overall follows the weaker of proof and patch quality. Workflow
HistoryReview history (6 earlier review cycles)
|
04aa8ec to
31c61fc
Compare
|
@clawsweeper re-review |
|
🦞🧹 I asked ClawSweeper to review this item again. Re-review progress:
|
6cd0cf1 to
4154b69
Compare
4154b69 to
33bd70e
Compare
|
Thanks @qingminglong! Proof: An ordinary manual CI run with one controlled stale Control UI locale entry now fails the locale job, while current
Example
|
) 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]>
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_dispatchruns. 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_gateruns keep their changed-scope behavior. Pull request and push routing is unchanged.Evidence
mainat214d55e99b374f4fadc4a6bfae0fb8d25c99e1ca: manual run 33239782024 usedworkflow_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.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 head33bd70efc408a7f9836a22d373bfb6d3f70e1728keeps the same workflow behavior after rebasing onto currentmainand clarifying the policy text.pnpm ui:i18n:verifypassed, whilepnpm ui:i18n:checkfailed withcontrol-ui catalog fallback baseline drift detectedon both revisions.Validation
node scripts/run-vitest.mjs run test/scripts/ci-workflow-guards.test.ts: 166 tests passed on the rebased head.git diff --checkpassed.+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.