Skip to content

Commit 1928c08

Browse files
committed
test(platform-objects): the lifecycle ledger's rows twin moves to an authored record-row label
Claude-Session: https://claude.ai/code/session_01Utp6Ca6EBDpTBZk8v46Jjv Co-authored-by: Claude <noreply@anthropic.com>
1 parent 5e17860 commit 1928c08

2 files changed

Lines changed: 22 additions & 14 deletions

File tree

‎packages/platform-objects/src/apps/translations/object-lifecycle-panel-echo-decisions.test.ts‎

Lines changed: 21 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,14 @@
6565
// identical shape on `enable.apiEnabled` (`"Api Enabled"` / `"API Enabled"`)
6666
// and it is still unfiled; this is the second instance of one producer.
6767
//
68+
// ⚠️ RE-POINTED (#36836). The "rows" twin these rows copy was
69+
// `report.fields.rows.label` (行 / Filas). #36836 moved that report row to the
70+
// business wording (グループ化 / Agrupar por), so it no longer carries the
71+
// record-row sense. The renderings did not move: the same fragment stands
72+
// authored for the same sense in `sys_import_job.fields.total_rows.label`
73+
// (総行数 / Filas totales — rows of an import, i.e. records), and the copies now
74+
// point there.
75+
//
6876
// ## ⭐ One schema key, one rendering — what was copied and what was NOT
6977
//
7078
// Rounds 8 and 9 both delivered this by copying an authored twin byte for byte
@@ -281,10 +289,10 @@ const DECISIONS: readonly Decision[] = [
281289
verbatim: ['ADR-0057', 'record', 'TTL'],
282290
copies: [
283291
{ catalog: 'objects', key: 'sys_setting.description', modes: { 'ja-JP': 'コントラクト', 'es-ES': 'contrato' } },
284-
{ catalog: 'metadataForms', key: 'report.fields.rows.label', modes: { 'ja-JP': '行', 'es-ES': 'filas' } },
292+
{ catalog: 'objects', key: 'sys_import_job.fields.total_rows.label', modes: { 'ja-JP': '行', 'es-ES': 'filas' } },
285293
],
286294
reason:
287-
'THE SENTENCE NAMES THREE MACHINE TOKENS AND ALL THREE STAY VERBATIM — ADR-0057, the class value `record`, and TTL — asserted by the token guard below in every locale including zh-CN, which is what makes the rule a reading rather than this round house style. "contract" takes the authored twin sys_setting.description (SettingsManifest コントラクト / el contrato SettingsManifest), so ja takes the katakana the catalog already spends on this word rather than 契約. "rows" takes report.fields.rows.label 行 / Filas. ⚠️ "Leave empty" takes the catalog own authored idiom for the empty input, ⛔ not a literal: sys_user._actions.create_user.params.password.label is (空欄の場合は自動生成)/ (dejar en blanco para generarla) ⇒ 空欄 / en blanco. ⇒ ja データライフサイクルのコントラクト(ADR-0057): 行をどれだけ保持し、容量をどう回収するか。空欄の場合は永続的な record セマンティクスになります。record 以外のクラスは、少なくとも 1 つの境界ポリシー(保持期間、TTL、ローテーション)を宣言する必要があります。 / es Contrato de ciclo de vida de los datos (ADR-0057): cuánto viven las filas y cómo se recupera el espacio. Déjalo en blanco para una semántica record permanente. Las clases distintas de record requieren al menos una política acotante (retención, TTL o rotación). ⚠️ Punctuation copied rather than chosen: ja takes full-width () and 。 from object.fields.datasource.helpText one row up, es keeps ASCII from the same twin.',
295+
'THE SENTENCE NAMES THREE MACHINE TOKENS AND ALL THREE STAY VERBATIM — ADR-0057, the class value `record`, and TTL — asserted by the token guard below in every locale including zh-CN, which is what makes the rule a reading rather than this round house style. "contract" takes the authored twin sys_setting.description (SettingsManifest コントラクト / el contrato SettingsManifest), so ja takes the katakana the catalog already spends on this word rather than 契約. "rows" takes sys_import_job.fields.total_rows.label 行 / Filas. ⚠️ "Leave empty" takes the catalog own authored idiom for the empty input, ⛔ not a literal: sys_user._actions.create_user.params.password.label is (空欄の場合は自動生成)/ (dejar en blanco para generarla) ⇒ 空欄 / en blanco. ⇒ ja データライフサイクルのコントラクト(ADR-0057): 行をどれだけ保持し、容量をどう回収するか。空欄の場合は永続的な record セマンティクスになります。record 以外のクラスは、少なくとも 1 つの境界ポリシー(保持期間、TTL、ローテーション)を宣言する必要があります。 / es Contrato de ciclo de vida de los datos (ADR-0057): cuánto viven las filas y cómo se recupera el espacio. Déjalo en blanco para una semántica record permanente. Las clases distintas de record requieren al menos una política acotante (retención, TTL o rotación). ⚠️ Punctuation copied rather than chosen: ja takes full-width () and 。 from object.fields.datasource.helpText one row up, es keeps ASCII from the same twin.',
288296
},
289297
{
290298
population: 'lifecycle',
@@ -306,10 +314,10 @@ const DECISIONS: readonly Decision[] = [
306314
verdict: BOTH_TRANSLATE,
307315
copies: [
308316
{ catalog: 'objects', key: 'sys_setting.description', modes: { 'ja-JP': 'コントラクト', 'es-ES': 'contrato' } },
309-
{ catalog: 'metadataForms', key: 'report.fields.rows.label', modes: { 'ja-JP': '行', 'es-ES': 'filas' } },
317+
{ catalog: 'objects', key: 'sys_import_job.fields.total_rows.label', modes: { 'ja-JP': '行', 'es-ES': 'filas' } },
310318
],
311319
reason:
312-
'EVERY TERM HAS AN AUTHORED TWIN AND THE ROW NAMES EACH. "contract" from sys_setting.description (コントラクト / contrato) — the same twin the block helpText above takes, so the two read as one thing. "rows" from report.fields.rows.label (行 / Filas). "object" from object.sections.fields.description (オブジェクト / objeto), the twin on this very form. ⇒ このオブジェクトの行の永続化コントラクト / Contrato de persistencia de las filas de este objeto. ⚠️ zh-CN wrote 本对象数据的持久化契约, replacing "rows" with 数据 — a reasonable Chinese move that is NOT copied here, because the schema statement is about ROWS specifically (the reaper deletes rows, the archiver copies rows) and both target locales have an authored word for it.',
320+
'EVERY TERM HAS AN AUTHORED TWIN AND THE ROW NAMES EACH. "contract" from sys_setting.description (コントラクト / contrato) — the same twin the block helpText above takes, so the two read as one thing. "rows" from sys_import_job.fields.total_rows.label (行 / Filas). "object" from object.sections.fields.description (オブジェクト / objeto), the twin on this very form. ⇒ このオブジェクトの行の永続化コントラクト / Contrato de persistencia de las filas de este objeto. ⚠️ zh-CN wrote 本对象数据的持久化契约, replacing "rows" with 数据 — a reasonable Chinese move that is NOT copied here, because the schema statement is about ROWS specifically (the reaper deletes rows, the archiver copies rows) and both target locales have an authored word for it.',
313321
},
314322
{
315323
population: 'lifecycle',
@@ -336,10 +344,10 @@ const DECISIONS: readonly Decision[] = [
336344
en: 'Age-based retention window',
337345
verdict: BOTH_TRANSLATE,
338346
copies: [
339-
{ catalog: 'metadataForms', key: 'report.fields.rows.label', modes: { 'ja-JP': '行', 'es-ES': 'filas' } },
347+
{ catalog: 'objects', key: 'sys_import_job.fields.total_rows.label', modes: { 'ja-JP': '行', 'es-ES': 'filas' } },
340348
],
341349
reason:
342-
'THREE WORDS, TWO WITH TWINS AND ONE WITHOUT, AND THE ROW SAYS WHICH. "retention" repeats this block own label, asserted. "rows" from report.fields.rows.label. ⛔ "window" has NO authored twin for the time-span sense in either catalog — the only 「window」 in the corpus is sys_job_queue.fields.idempotency_key.help, where es keeps the English `(queue, window)` verbatim as a tuple of machine names and ja writes ウィンドウ for exactly that tuple. So ja takes ウィンドウ on the strength of that single occurrence and es composes ventana, and neither is presented as a copy. ⇒ 行の経過時間にもとづく保持ウィンドウ / Ventana de retención basada en la antigüedad de las filas. ⚠️ "Age-based" is rendered as the age OF THE ROWS rather than an abstract age, because the schema says so: maxAge reaps by created_at.',
350+
'THREE WORDS, TWO WITH TWINS AND ONE WITHOUT, AND THE ROW SAYS WHICH. "retention" repeats this block own label, asserted. "rows" from sys_import_job.fields.total_rows.label. ⛔ "window" has NO authored twin for the time-span sense in either catalog — the only 「window」 in the corpus is sys_job_queue.fields.idempotency_key.help, where es keeps the English `(queue, window)` verbatim as a tuple of machine names and ja writes ウィンドウ for exactly that tuple. So ja takes ウィンドウ on the strength of that single occurrence and es composes ventana, and neither is presented as a copy. ⇒ 行の経過時間にもとづく保持ウィンドウ / Ventana de retención basada en la antigüedad de las filas. ⚠️ "Age-based" is rendered as the age OF THE ROWS rather than an abstract age, because the schema says so: maxAge reaps by created_at.',
343351
},
344352
{
345353
population: 'lifecycle',
@@ -363,7 +371,7 @@ const DECISIONS: readonly Decision[] = [
363371
verdict: BOTH_TRANSLATE,
364372
verbatim: ['created_at', 'h/d/w/y', '30d'],
365373
copies: [
366-
{ catalog: 'metadataForms', key: 'report.fields.rows.label', modes: { 'ja-JP': '行', 'es-ES': 'filas' } },
374+
{ catalog: 'objects', key: 'sys_import_job.fields.total_rows.label', modes: { 'ja-JP': '行', 'es-ES': 'filas' } },
367375
{ catalog: 'metadataForms', key: 'hook.fields.events.helpText', modes: { 'ja-JP': '例: ', 'es-ES': 'p. ej.' } },
368376
],
369377
reason:
@@ -389,7 +397,7 @@ const DECISIONS: readonly Decision[] = [
389397
verdict: BOTH_TRANSLATE,
390398
verbatim: ['TTL'],
391399
reason:
392-
'THE SAME TWO STEMS AS THE LABEL ABOVE, plus "per-row" from report.fields.rows.label (行 / filas). ⇒ 行ごとの TTL による期限切れ / Caducidad por TTL de cada fila. ⚠️ es repeats the label wording verbatim as its opening rather than varying it: the helpText of a composite in this catalog restates the row (see object.fields.lifecycle.storage.strategy, whose en helpText "Storage strategy" is literally the row name plus its parent), and varying it would suggest a second concept.',
400+
'THE SAME TWO STEMS AS THE LABEL ABOVE, plus "per-row" from sys_import_job.fields.total_rows.label (行 / filas). ⇒ 行ごとの TTL による期限切れ / Caducidad por TTL de cada fila. ⚠️ es repeats the label wording verbatim as its opening rather than varying it: the helpText of a composite in this catalog restates the row (see object.fields.lifecycle.storage.strategy, whose en helpText "Storage strategy" is literally the row name plus its parent), and varying it would suggest a second concept.',
393401
},
394402
{
395403
population: 'lifecycle',
@@ -446,7 +454,7 @@ const DECISIONS: readonly Decision[] = [
446454
verdict: BOTH_TRANSLATE,
447455
verbatim: ['1d'],
448456
copies: [
449-
{ catalog: 'metadataForms', key: 'report.fields.rows.label', modes: { 'ja-JP': '行', 'es-ES': 'filas' } },
457+
{ catalog: 'objects', key: 'sys_import_job.fields.total_rows.label', modes: { 'ja-JP': '行', 'es-ES': 'filas' } },
450458
{ catalog: 'metadataForms', key: 'hook.fields.events.helpText', modes: { 'ja-JP': '例: ', 'es-ES': 'p. ej.' } },
451459
],
452460
reason:
@@ -574,10 +582,10 @@ const DECISIONS: readonly Decision[] = [
574582
verdict: BOTH_TRANSLATE,
575583
verbatim: ['audit'],
576584
copies: [
577-
{ catalog: 'metadataForms', key: 'report.fields.rows.label', modes: { 'ja-JP': '行', 'es-ES': 'filas' } },
585+
{ catalog: 'objects', key: 'sys_import_job.fields.total_rows.label', modes: { 'ja-JP': '行', 'es-ES': 'filas' } },
578586
],
579587
reason:
580-
'⭐ `audit` IS A MACHINE VALUE AND STAYS VERBATIM — asserted below, and asserted at the schema: LifecycleClassSchema is a five-member enum whose members include audit, so the parenthesis names a value an author types into the class row above, ⛔ not the English word for auditing (which this catalog does translate elsewhere: sys_metadata_audit.label is メタデータ監査 / Auditoría de metadatos). Rendering it would send an author to type 監査. ⛔ "cold store" has no authored twin in either locale (probed, zero hits) and is composed — コールドストレージ / almacenamiento en frío — which the row states. "rows" copied from report.fields.rows.label. ⇒ コールドストレージへの引き渡し(audit クラス)。アーカイブのコピーが成功する前に、行がホット側から削除されることはありません。 / Traspaso al almacenamiento en frío (clase audit). Las filas nunca se eliminan en caliente antes de que la copia de archivado haya finalizado correctamente. ⚠️ Both locales keep the guarantee in the NEGATIVE ("never ... before"), which is the durability claim the schema makes; turning it positive would read as best-effort.',
588+
'⭐ `audit` IS A MACHINE VALUE AND STAYS VERBATIM — asserted below, and asserted at the schema: LifecycleClassSchema is a five-member enum whose members include audit, so the parenthesis names a value an author types into the class row above, ⛔ not the English word for auditing (which this catalog does translate elsewhere: sys_metadata_audit.label is メタデータ監査 / Auditoría de metadatos). Rendering it would send an author to type 監査. ⛔ "cold store" has no authored twin in either locale (probed, zero hits) and is composed — コールドストレージ / almacenamiento en frío — which the row states. "rows" copied from sys_import_job.fields.total_rows.label. ⇒ コールドストレージへの引き渡し(audit クラス)。アーカイブのコピーが成功する前に、行がホット側から削除されることはありません。 / Traspaso al almacenamiento en frío (clase audit). Las filas nunca se eliminan en caliente antes de que la copia de archivado haya finalizado correctamente. ⚠️ Both locales keep the guarantee in the NEGATIVE ("never ... before"), which is the durability claim the schema makes; turning it positive would read as best-effort.',
581589
},
582590
{
583591
population: 'lifecycle',
@@ -605,7 +613,7 @@ const DECISIONS: readonly Decision[] = [
605613
verdict: BOTH_TRANSLATE,
606614
verbatim: ['retention.maxAge'],
607615
copies: [
608-
{ catalog: 'metadataForms', key: 'report.fields.rows.label', modes: { 'ja-JP': '行', 'es-ES': 'filas' } },
616+
{ catalog: 'objects', key: 'sys_import_job.fields.total_rows.label', modes: { 'ja-JP': '行', 'es-ES': 'filas' } },
609617
],
610618
reason:
611619
'THE METADATA PATH retention.maxAge STAYS VERBATIM (asserted) — it is the key an author writes, and the schema refusal message quotes it back. "rows" copied. ⇒ これより古い行をアーカイブします — retention.maxAge と一致している必要があります / Archiva las filas más antiguas que este valor — debe coincidir con retention.maxAge. ⚠️ The SPACED em dash is copied rather than chosen: the en source spaces it, zh-CN kept it spaced on this very leaf, and permission.sections.system_permissions.description carries the same spaced form in ja and es. ⭐ The obligation is rendered as an obligation in both (必要があります / debe), ⛔ not as advice — a mismatch is a parse failure, asserted below.',
@@ -666,7 +674,7 @@ const DECISIONS: readonly Decision[] = [
666674
verdict: BOTH_TRANSLATE,
667675
verbatim: ['7y'],
668676
copies: [
669-
{ catalog: 'metadataForms', key: 'report.fields.rows.label', modes: { 'ja-JP': '行', 'es-ES': 'filas' } },
677+
{ catalog: 'objects', key: 'sys_import_job.fields.total_rows.label', modes: { 'ja-JP': '行', 'es-ES': 'filas' } },
670678
{ catalog: 'metadataForms', key: 'hook.fields.events.helpText', modes: { 'ja-JP': '例: ', 'es-ES': 'p. ej.' } },
671679
],
672680
reason:

0 commit comments

Comments
 (0)