Skip to content

fix: publish validated translations through pull requests - #321

Draft
vincentkoc wants to merge 1 commit into
mainfrom
fix/translation-pr-publication-20261122
Draft

vincentkoc wants to merge 1 commit into
mainfrom
fix/translation-pr-publication-20261122

Conversation

@vincentkoc

Copy link
Copy Markdown
Member

What Problem This Solves

Aggregate and recovery translation finalizers currently push directly to main. This routes their validated changes through pull requests so required review and merge rules can apply without reporting an unpublished translation as complete.

User Impact

Translation publication now reports success only after a normal exact-head squash merge and verification of the owned translation tree at the merge commit and current main. Pending or rejected PRs remain available for inspection, and their dependent R2 deployment does not run.

An administrator must activate strict Publication merge admission checks bound to GitHub Actions, with the non-fast-forward rule and empty bypass lists. Missing effective policy holds publication. Merging this source PR can trigger R2 Pages because the internal workflow note matches its docs/** push filter; deployment approval remains separate.

Why This Change Was Made

Both finalizers share one publication path while retaining their source freshness, canary scope, and build revalidation. A trusted PR-event handler posts only neutral current-PR admission; it never executes candidate code. The publishers retain all payload checks. Caller permission ceilings support the conditional publisher while actual translation jobs keep read-only tokens. The existing OpenClaw-to-docs mirror writer is being migrated separately.

Evidence

At signed head c00cdb39d3a008fa7c2ac8875508eba8ee480591:

  • 28 real-Git publication scenarios passed across aggregate and locale owners, including distinct squash receipts, uncertain responses, missing/bypass gates, and a main update at merge time.
  • Existing source-freshness, unreadable-metadata, and canary cases passed. Focused admission, all 11 caller permission ceilings, script-help, workflow structure, budget, and diff checks passed.
  • Independent semantic review and fresh P0–P3 committed-range autoreview passed with no findings.
  • Full local actionlint was stopped after six minutes without a result; it is unverified. Dependency-backed docs build and hosted CI remain pending.

This draft does not establish live generated-publication proof or remove the repository exception.

This branch has not been deployed

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant