Skip to content

feat(localization): prove catalog authoring and refresh loop - #112784

Closed
giodl73-repo wants to merge 26 commits into
openclaw:mainfrom
giodl73-repo:user/giodl/localization-authoring-exemplar
Closed

giodl73-repo wants to merge 26 commits into
openclaw:mainfrom
giodl73-repo:user/giodl/localization-authoring-exemplar

Conversation

@giodl73-repo

@giodl73-repo giodl73-repo commented Jul 22, 2026 •

Copy link
Copy Markdown
Contributor

Accepted RFC: https://github.com/openclaw/rfcs/blob/main/rfcs/0024-localization-runtime-and-coverage.md

Progressive guidance and hybrid authoring contract: openclaw/rfcs#49

Implementation tracker: #113105

Stack context: depends on #111543 at 9f6a55cd2e3, which depends on #111541 at 5268dee87992./ Follow-up #112801 adds the surface-disposition inventory and gate.

AI-assisted: yes. I reviewed the implementation and validation results.

What Problem This Solves

An English-only source PR should not merge with stale adopted catalogs, but provider and publisher credentials must never enter pull-request code. The previous exemplar only warned on the source PR and opened a second generated PR after merge, making the normal loop slower and less obvious to the original author.

What This Slice Does

G45/G46 now proves one reusable hybrid loop:

  • drafts do not run the catalog lane;
  • ready forks and non-default-base PRs get credential-free advisory detection;
  • a ready same-repository PR targeting the default branch gets a blocking drift gate;
  • a maintainer runs Localization Catalog Refresh with the PR number;
  • the workflow resolves the exact PR head but executes workflow, generator, dependencies, and actions only from protected main;
  • the PR registry and English catalogs are treated as validated data, with repository containment and symlink rejection;
  • all affected translations are generated and validated as one batch;
  • a contents-scoped App commits that batch to the unchanged source branch under an exact-head lease;
  • the same PR reruns strict catalog checks and remains owned by its author and reviewers; automation never approves or merges it; and
  • fork or cross-repository merges and recovery runs retain one generated follow-up PR with auto-merge disabled.

The shared localization-catalogs CI lane and Localization Catalog Refresh workflow are extended once per repository. Later owner slices add registry or configuration rows and focused runtime proof; they do not create separate gates or translation services.

Safety Boundary

Before an in-place push, the trusted workflow rechecks repository write authorization, open and ready state, default base, same-repository head, branch identity, and exact head SHA. It requires current trusted-base catalogs first, stages only registry-owned generated paths, and rejects a moved branch through --force-with-lease.

Provider secrets remain unavailable to pull-request CI. Generation provenance and structural validation are not linguistic, product, safety, or merge approval.

Evidence

Exact head: e5d59c96ee24.

  • Rebased onto the repaired F01 runtime and repository-local F03 skill.
  • 522 focused workflow-routing, changed-lane, and workflow-contract tests pass at this exact head; the catalog and CI-guard suites remain covered by the slice tests.
  • The strict catalog check reports the English source plus existing zh-CN and zh-TW targets current.
  • Skill Creator validation, repository formatting, and git diff --check pass.
  • Current-head hosted CI is authoritative.

The cumulative stack still carries F01s intentional [email protected] dependency graph, so Dependency Guard requires current-head authorization until F01 lands.

Acceptance Boundary

This PR proves the reusable gate, trusted in-place workflow, strict validation, and generated-PR fallback with the six-string wizard completion fixture and its existing Simplified and Traditional Chinese targets.

This exemplar intentionally does not translate the entire wizard or enroll all 22 registered locales yet. After it lands on the default branch, the first maintainer-dispatched source-PR refresh is the operational rollout gate before broader owner and locale adoption.

A failed provider run, validation, authorization check, or head lease publishes nothing and leaves the affected coverage cells incomplete.

Patrick remains the primary implementation-stack reviewer. Vincent is requested for the trusted-automation and dependency-approval boundary.

@openclaw-barnacle openclaw-barnacle Bot added docs Improvements or additions to documentation app: web-ui App: web-ui gateway Gateway runtime cli CLI command changes scripts Repository scripts size: XL maintainer Maintainer-authored PR labels Jul 22, 2026
@giodl73-repo
giodl73-repo force-pushed the user/giodl/localization-authoring-exemplar branch from cdc2a51 to 88fbf16 Compare July 23, 2026 00:21
@openclaw-barnacle openclaw-barnacle Bot removed app: web-ui App: web-ui gateway Gateway runtime cli CLI command changes labels Jul 23, 2026
@giodl73-repo
giodl73-repo force-pushed the user/giodl/localization-authoring-exemplar branch from 88fbf16 to 0ff68aa Compare July 23, 2026 00:29
@giodl73-repo

Copy link
Copy Markdown
Contributor Author

@clawsweeper re-review

The exact head is unchanged. The PR body now records the trusted-workflow proof boundary: provider/write credentials are intentionally unavailable to untrusted PR code; deterministic drift, validation, workflow, and action-security paths are pre-merge proof, while the first credentialed generated-PR run on main is an explicit post-merge rollout blocker.

@clawsweeper

clawsweeper Bot commented Jul 23, 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 repository_dispatch).
Result: the existing ClawSweeper review comment will be edited in place when the review finishes.

Re-review progress:

@giodl73-repo
giodl73-repo force-pushed the user/giodl/localization-authoring-exemplar branch from 0ff68aa to b2f0194 Compare July 23, 2026 04:02
@giodl73-repo

Copy link
Copy Markdown
Contributor Author

@clawsweeper review

Rebased exemplar on exact #111543 head \

@clawsweeper

clawsweeper Bot commented Jul 23, 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 repository_dispatch).
Result: the existing ClawSweeper review comment will be edited in place when the review finishes.

Re-review progress:

@giodl73-repo
giodl73-repo force-pushed the user/giodl/localization-authoring-exemplar branch from b2f0194 to 9ded1cc Compare July 24, 2026 02:15
@giodl73-repo
giodl73-repo marked this pull request as ready for review July 24, 2026 02:15
@giodl73-repo
giodl73-repo requested a review from a team as a code owner July 24, 2026 02:15
@github-actions github-actions Bot added the dependencies-changed PR changes dependency-related files label Jul 24, 2026
@github-actions

github-actions Bot commented Jul 24, 2026 •

Copy link
Copy Markdown
Contributor

Dependency Guard

This PR changes dependency-related files. Maintainers should confirm these changes are intentional.

Changed files:

  • packages/localization-core/package.json
  • pnpm-lock.yaml

Maintainer follow-up:

  • Review whether the dependency changes are intentional.
  • Inspect resolved package deltas when lockfiles or workspace dependency policy changes are present.
  • Treat pnpm-lock.yaml and package-lock.json diffs as dependency security-review surfaces.
  • Run pnpm deps:changes:report -- --base-ref origin/main --markdown /tmp/dependency-changes.md --json /tmp/dependency-changes.json locally for detailed release-style evidence.

@github-actions

github-actions Bot commented Jul 24, 2026 •

Copy link
Copy Markdown
Contributor

Dependency graph changes are blocked

OpenClaw does not accept dependency graph changes through PRs unless a repository admin or security explicitly authorizes the current head SHA. Dependency updates are generated internally by maintainers so external PRs cannot change the resolved graph.

Detected dependency graph changes:

  • pnpm-lock.yaml changed.
  • packages/localization-core/package.json changed dependencies, name, version.

Auto-scrub was not attempted because this PR changes package manifest dependency graph fields:

  • packages/localization-core/package.json changed dependencies, name, version.

Dependency graph changes must be reviewed by security or handled by maintainers internally. Please remove lockfile changes manually if they are not needed.

To remove lockfile changes, restore them from the target branch:

git fetch origin
git checkout 'origin/main' -- 'pnpm-lock.yaml'
git commit -m 'chore: remove dependency lockfile change'
git push

If this PR intentionally needs a dependency graph change, ask a repository admin or member of @openclaw/openclaw-secops to comment:

/allow-dependencies-change

The action will approve the current head SHA (8cb3caea1f9d8bdcc607e2c8017a8bbb8e4abed1) when it reruns. A later push requires a fresh approval.

@giodl73-repo
giodl73-repo force-pushed the user/giodl/localization-authoring-exemplar branch from e5d59c9 to 8cb3cae Compare August 11, 2026 21:39
@clawsweeper clawsweeper Bot added status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action. and removed status: 📣 needs proof The PR needs real behavior proof before ClawSweeper can clear the contributor ask. labels Aug 11, 2026
@giodl73-repo

Copy link
Copy Markdown
Contributor Author

Pausing this localization work for now and closing the PR to keep the active review queue focused. This is a prioritization pause, not a rejection of the design or a claim that the work is superseded. The branch and review history are being retained so the work can be revisited when we resume.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies-changed PR changes dependency-related files docs Improvements or additions to documentation maintainer Maintainer-authored PR merge-risk: 🚨 automation 🚨 May affect CI, automerge, proof capture, label sync, or maintainer automation. merge-risk: 🚨 compatibility 🚨 May break existing users, config, migrations, defaults, or upgrade paths. merge-risk: 🚨 security-boundary 🚨 May affect sandboxing, authorization, credentials, or sensitive data. P2 Normal backlog priority with limited blast radius. rating: 🧂 unranked krab Not merge-ready due to missing proof or serious correctness/safety concerns. scripts Repository scripts size: XL status: ⏳ waiting on author ClawSweeper has contributor-facing work open and is waiting for author action.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant