[translator] Epic: the next major — one traversal engine, four reshaped ports
メンテナーはふだん 1 日以内に返信
@SearheiParkhamchuk がすでに取り組んでいます。
2026年10月21日 から。
評価
この issue はまだ評価されていません。
説明
Goal
The plugin's next major reshapes four public ports and replaces the translation mechanism with a single traversal engine the plugin no longer owns alone. The sequence, its dependencies and its stopping points are designed in packages/payload-plugin-translator/docs/plans/2026-10-18-the-rewiring.md §9. This issue tracks it.
Children are one per design step — the same unit the branch already works in, where each step is one branch and one pull request.
Order, and what each step cannot start before
step 2 ──┐
├──► K (kernel) ──┬──► languages ──┬──► S (the swap)
F1 ──────┤ │ │
└──► step 4 ──────┴──► step 5 ─────┘
│ ├──► step 6
│ └──► step 8 ──► step 9
└──► (stopping point)
- step 4 is the keystone: steps 5, 6, 8 and the swap all wait on it, and it needs F1 landed first, because step 4 publishes at the module seam the very field F1 corrects.
- K is the traversal kernel, built fresh and additive rather than by generalising the live pipeline in place. It replaces the original steps 3 and 7, which would have written the same files twice and contradicted the rule that the kernel ships zero languages.
- S is where the behavioural risk sits — selection, write-back and fingerprint values — and it keeps today's test suite as its oracle.
Stopping points
Two places where the work can be left standing:
- after step 4 — the inside is clean, provenance is an ordinary tenant, and nothing new is promised outside the package;
- after step 6 — every breaking change a host notices has landed.
Release discipline
Four steps change the public surface: 2, 5, 6 and 8. Each publishes a prerelease under the next dist-tag and is exercised in apps/cms against a real database before the next step starts. A step whose prerelease has not been run that way is not finished.
Hazards carried across steps
The swap must not be wired before the fingerprint projector emits embed-leaf addresses. computeFieldFingerprints reads projectTranslatableContent, which emits one entry per rich-text field and never descends into it, while Provenance.service.record iterates currentFields only. An address such as body.b1:cta.heading is therefore dropped today, and staleness.sameAddresses requires the stored and current key sets to be equal — so wiring the languages into record() first makes every provenance record permanently stale, with the symptom ("everything is out of date") sitting far from the cause.
Container mode for rich text and the public option carrying the embeddable block list are deferred by decision. They land with the swap, together with behaviour a consumer can see; a published option that does nothing is a lie in the README.
Strategy parity is unproven. The two-document checks behind the new languages hold under the overwrite strategy only, because that is what the differential harness drives. The question belongs to the swap, or is dissolved by the step that deletes the strategy port.
Children
Linked as sub-issues, so the progress bar is the record rather than a checklist somebody has to tick.
Landed
- #193 — remove the deprecations no later step owns (step 2 — #184, #186)
- #194 — a traversal kernel that ships no language (step K — #189, #190)
In review
- #195 — the Payload field and Lexical languages, and the crossing into embedded blocks (#191)
Next, and independent of everything else
- #196 — finish the deprecation sweep: the legacy OpenAI provider class is still exported
- #197 — report a leaf as attempted rather than as returned (gates #198)
The keystone, and what waits on it
- #198 — module extraction: provenance becomes an ordinary tenant (after #194 and #197 · stopping point)
- #199 — the swap: the translation pipeline moves onto the traversal engine (after #194 and #198)
- #48 — strategy out, selection in (after #198 · public surface)
- #200 — the runner port: narrow the mandatory core to enqueue (after #198 · public surface · stopping point)
- #201 — the provider port: two arguments, exceptions, declared capabilities (after #198 and #194 · public surface)
#202 — open the seam to hosts: export the module type and— moved out, see belowprovenance()(after #194 and #201 — the last step)
Not in this major
Opening the module seam to hosts (#202) was the last step of this epic and is not one any more.
No caller passes a host-written module and nothing asks for one — the three places that
configure the plugin all pass its own factories, which are already exported. Publishing
TranslationModule would publish the context it carries with it: access, the schema map, the
translation provider and the right to add endpoints. Two of its five questions were answered
by work that landed after it was written, and a third belongs to the 1.0 admin research.
Recorded in packages/payload-plugin-translator/docs/plans/2026-11-14-open-the-module-seam.md.
Re-extracting the traversal engine into its own package (#203) was a child of this epic and is
not one any more. Publishing the engine turns its interface — the address token, the entry
context — into a promise, and making that promise under this major's deadline is the risk the
epic exists to avoid rather than take on. The engine is held apart inside the package instead,
by a lint zone and a scan, which costs nothing and promises nothing. The extraction lands after
the major.
- 主要言語
- TypeScript
- スター
- 34
- フォーク
- 5
- 平均マージ
- 2日 4時間
- マージ済み PR(30日)
- 41
環境構築
このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
focusreactive/payload-plugins のほかの issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 82/100
focusreactive/payload-plugins#279 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 88/100
focusreactive/payload-plugins#263 ·
メンテナーはふだん 1 日以内に返信
-
comments, seo, analytics, and presets publish ESM that fails to load in Node.js (follow-up to #149)オープン
難易度 3/5 1〜2日 初心者へのやさしさ 62/100
focusreactive/payload-plugins#240 ·
メンテナーはふだん 1 日以内に返信
-
released released on @next
難易度 5/5 1週間以上 初心者へのやさしさ 35/100
focusreactive/payload-plugins#210 · コメント 10 件 ·
メンテナーはふだん 1 日以内に返信
-
[translator] Re-extract the traversal engine into its own package再び着手できるかも @SearheiParkhamchuk が 41 日前に担当しましたが、オープン中のプルリクエストはありません。 オープンchore low priority translator
focusreactive/payload-plugins#203 · 担当者 1 名 ·
メンテナーはふだん 1 日以内に返信
focusreactive/payload-plugins の issue をすべて見る
似ている issue
-
verified whatsapp
難易度 2/5 1〜3時間 初心者へのやさしさ 77/100
メンテナーはふだん 6 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
メンテナーはふだん 2 日以内に返信
-
openidconnect: option to use client_secret_post (client_id with "-" rejected by LemonLDAP::NG 2.21)オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 62/100
MTES-MCT/monitorenv#3257 ·
メンテナーはふだん 1 日以内に返信