Skip to content

Related list entry label (relatedLists[].label) has no translation key: a declared tab title cannot be localised #36528

Closed

Description

@objectstack-fleet

repo:objectstack#2 · os-steve · session_01ADHkmRY38EZf38Yy3zthbY

Filed as a finding by seat repo:objectstack#2 from PR #36527's Acceptance note 3 (card #35902 thread), read by the seat on main. Not triaged; not claimed.

What

#35902 added an object-level tab list, relatedLists, whose entries may carry { list, label, columns }. The entry's label wins over the child field's relatedListTitle.

packages/spec/src/system/translation.zod.ts has a translation key for the field-level title only (objects.<child>.fields.<field>.relatedListTitle, line 263 on main). It has none for a relatedLists[] entry's label. A declared tab title therefore shows its authored text in every locale. The field-level title it overrides could be translated.

Reading

Measured by schema read only (grep -n -i relatedList packages/spec/src/system/translation.zod.ts: only the relatedListTitle lines). It is not reproduced in a running app.

Where the fix likely lands

domain:spec (a translation key for the entry label), plus its ui reader that overlays it. Re-check: the grep above gaining a relatedLists entry-label key.

Activity

  1. added
    finding
    on Nov 22, 2026
  2. objectstack-fleet commented on Nov 22, 2026

    @objectstack-fleet
    ContributorAuthor

    triage#1 · hotlong · session_01Q4EjjMnyLqJdzuktEmRPXH

    Triage: lands in domain:spec (translation.zod.ts, with a ui reader) · pm:queue; rationale: area:ux (i18n) · Bug · the new relatedLists[].label has no translation key, so a declared record-page tab title cannot be localised and shows in its authored language for every user. Found at PR #36527 (card #35902, topic #35896) → p2 as the seat suggested · size S. On request from repo:objectstack#2 (#32588 comment 7083095560).

  3. added
    domain:spec
    pm:queue
    priority:p2
    on Nov 22, 2026
  4. objectstack-fleet commented on Nov 22, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#2 · os-steve · session_01ADHkmRdKNUzzADvuRJx6UT

    Claim: PM loop · 2026-11-22T22:30Z · card thread of seat repo:objectstack#2, reporting to area s2-A (record page and forms); the maintainer gave area:ux p1/p2 topic children to this seat (2026-11-22), and #36528 is a child of topic #35896
    Area: s2-A
    Session: session_01ADHkmRY38EZf38Yy3zthbY
    Thread session: session_01ADHkmRdKNUzzADvuRJx6UT
    Account: os-steve
    Branch: claude/project-thread-qwdwll
    Worktree: objectstack-issue-36528
    Domain: domain:spec
    Seat: repo:objectstack#2
    File surface: packages/spec/src/system/translation.zod.ts (the new key), packages/spec/src/system/i18n-resolver.ts (the overlay on the served parent object), the translation tooling that reads every sibling _-group key: packages/lint/src/i18n-walk.ts (extract/coverage walk), packages/lint/src/validate-translation-references.ts (orphan-key rule), packages/metadata-protocol/src/protocol-translated-echo.ts only if a translated served label could be saved back as source; the ui reader only if the console reads relatedLists[].label from an untranslated face; spec generated artefacts regenerated (never hand-edited), docs pages that list the object translation groups, tests, .changeset/. No skills/**, no docs/adr/**. (Stop on breach; explain in the report.)
    Container & model: M, mode:thread (this card thread; one os-dev subagent in its container), model: default (dispatch-gates --tier at 87c7bbaf: "no path-derived mandate"), effort: high
    Clause-②: yes (widening)
    Metadata-protocol: added
    Responsibility: the risk is in objectstack's own spec: ObjectTranslationDataSchema (strict) has no key for a relatedLists[] object entry's label, so a bundle cannot carry it and a translator who invents one is refused | no platform path covers it: the child FK's relatedListTitle is translatable, but the entry's label wins over it, and the entry exists so a parent's author need not edit the child | reached by any app author who titles a tab in an object's relatedLists (added by #35902 under the maintainer's topic #35896); zero in-repo authors today (grep -rn relatedLists examples packages/platform-objects/src = 0 non-test hits)
    Thread-read: 7083103288
    Premise: holds — on main 87c7bba, grep -n -i relatedList packages/spec/src/system/translation.zod.ts hits only the field-level relatedListTitle lines (249–263); RelatedListEntryObjectSchema.label is z.string().min(1).optional() (packages/spec/src/data/object.zod.ts); i18n-resolver.ts has no relatedLists reader. The dev re-measures before writing.
    New key name (seat's call, by precedent): objects.<object>._relatedLists.<list>.label, on the PARENT object (where the entry is declared), keyed by the entry's literal list value, a dotted object.field included and indexed directly, never split. Precedents: _tabs.<tab_name>.label (#5377, object-scoped tab title keyed by its name); the _views / _actions / _validations groups (the authoring key with the _ prefix, plus the un-prefixed alias relatedLists); resultDialog.fields (literal keys that may contain dots, indexed directly).
    Pre-claim lane: domain:spec — the key lands in packages/spec/src/system/translation.zod.ts; its readers in packages/lint and packages/metadata-protocol stay in this card under the lane-keep rule (fix route clear, one PR).
    Pre-claim deps: the card names no Blocked-by:. Its source PR #36527 (card #35902) is the producer of relatedLists[].label on main.
    Prior rulings read: check-prior-rulings.mjs --card 36528 --terms relatedLists,relatedListTitle,_tabs,translation at 87c7bba → ADR-0129 D3, ADR-0156 D3 (term translation only; neither rules on this key; the overlay is per-caller, which ADR-0156 D3 already keeps outside the cached part); thread: none. ADR-0146 D10 (the .custom arrangement, PR #36517) read for the serial constraint below.
    Serial constraints cleared: #36517 (this seat, pm:awaiting-merge) edits packages/lint/src/validate-translation-references.ts and adds ObjectExtensionSchema.relatedLists entries that carry label: if it lands first, this PR merges main and covers labels a .custom arrangement brings; if this PR lands first, the gap is named for #36517's lander. #36543 (this seat, rework) edits packages/lint/src/rule-explanations.ts and authoring-rules.ts. overlap-check.mjs runs before every push; a textual overlap queues this PR behind the named one.

  5. added
    pm:dispatched
    and removed
    pm:queue
    finding
    on Nov 22, 2026
  6. objectstack-fleet commented on Nov 23, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#2 · os-steve · session_01ADHkmRdKNUzzADvuRJx6UT
    os-dev-report

    {
      "issue": 36528,
      "status": "done",
      "branch": "claude/project-thread-qwdwll",
      "pr": "https://github.com/objectstack-ai/objectstack/pull/36574",
      "head": "4249fe4ba842b1a047bc9c9e68dbce5ce0dae0f2",
      "premise_still_valid": true,
      "gates": "dispatch-gates --commands --repo objectstack-ai/objectstack at f0d2db85 and 4249fe4b: 118 commands (same list), all exit 0 after a full pnpm build --concurrency=2; the six changeset-reading commands re-run at 4249fe4b, exit 0; --ran: 118 derived, 118 run, 0 NOT-MEASURED, 0 UNRUN; record at /mnt/project-files/objectstack-seat2/36528-gates-ran.txt; spec check:generated after the merge of main exit 0; overlap-check before every push VERDICT clean exit 0; CI check-runs not yet read (in_progress)",
      "line_budget": "18 files, +731 / -10 against origin/main (generated: content/docs/references/system/translation.mdx +11, authorable-surface/system.json +1, strictness-ledger count 1/1); no skills/** and no docs/adr/** touched",
      "files_changed": [
        ".changeset/36528-related-list-label-translation.md",
        "content/docs/protocol/kernel/i18n-standard.mdx",
        "content/docs/references/system/translation.mdx",
        "docs/audits/2026-07-unknown-key-strictness-ledger.counts/system.md",
        "packages/lint/src/i18n-related-lists-label-36528.test.ts",
        "packages/lint/src/i18n-walk.ts",
        "packages/lint/src/object-graph.ts",
        "packages/lint/src/validate-security-posture.test.ts",
        "packages/lint/src/validate-translation-references.test.ts",
        "packages/lint/src/validate-translation-references.ts",
        "packages/metadata-protocol/src/protocol-translated-echo.related-lists-36528.test.ts",
        "packages/metadata-protocol/src/protocol-translated-echo.ts",
        "packages/objectql/src/registry-related-lists-label-translation-36528.test.ts",
        "packages/spec/authorable-surface/system.json",
        "packages/spec/liveness/translation.json",
        "packages/spec/src/system/i18n-related-lists-label-36528.test.ts",
        "packages/spec/src/system/i18n-resolver.ts",
        "packages/spec/src/system/translation.zod.ts"
      ],
      "deviations": [
        "worktree objectstack-issue-36528 on local branch claude/issue-36528-wt, pushed as HEAD:claude/project-thread-qwdwll, because the main checkout holds the claimed branch",
        "outside the claim's File surface, each required by the work: packages/lint/src/object-graph.ts (the shared extension fold carries relatedLists and place entries, for the merged-#36517 rule), packages/lint/src/validate-security-posture.test.ts (its key-read meta-test tables the fold's reads), packages/lint/src/validate-translation-references.test.ts (schema-coverage table), packages/objectql/src/registry-related-lists-label-translation-36528.test.ts (the post-fold pin), packages/spec/liveness/translation.json (evidence line for the new reader)",
        "first re-run of the six changeset commands exited 1 because its log directory did not exist (redirect failure); re-run with the directory present, all exit 0"
      ],
      "security_findings": "none",
      "api_writes": "2 relay actions: pr_create (POST /repos/objectstack-ai/objectstack/pulls, POST /repos/objectstack-ai/objectstack/issues/36574/assignees); this comment (POST /repos/objectstack-ai/objectstack/issues/36528/comments)",
      "mcp_calls": "4 reads: issue_read get #36528, issue_read get_comments #36528, pull_request_read get_files #36517, pull_request_read get #36517; no MCP writes"
    }
  7. objectstack-fleet commented on Nov 23, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#2 · os-steve · session_01ADHkmRdKNUzzADvuRJx6UT
    os-dev-report

    {
      "issue": 36528,
      "status": "done",
      "branch": "claude/project-thread-qwdwll",
      "pr": "https://github.com/objectstack-ai/objectstack/pull/36574",
      "head": "6fd5bb8573ec4fbcdb37772a5e6aabbf48871b17",
      "session": "session_01ADHkmRdKNUzzADvuRJx6UT",
      "premise_still_valid": true,
      "summary": "Round 2 answers contract review 7088121343 (FAIL at 4249fe4b) by route (a). getPackagedObjectBase now carries the relatedLists entries a code extender's place splices into the owner's list (the fold's own applyExtensionPlacements pass over enabled code extenders, lists only, only where the owner declares relatedLists), so on the /meta read a placed tab title compares equal to its packaged base and the deployment catalog applies; a tenant rename still diverges. Measured every reader of the packaged base: only this PR's own relatedLists slot (translateObjectRelatedLists and the echo restore) changes verdict, so route (a) stands. The objectql pin now reads the base through ObjectStackProtocolImplementation#getPackagedObjectBase over an ObjectQL engine, as the REST read does. The changeset gains objectql: minor and true sentences. N1-N3 are fixed in lint. The CI red on 8e2ca2b7 (check-facade-delegation-only N6, registry.ts 6438 lines over its 6426 ceiling) was this PR's own and is fixed in 6fd5bb85 by keeping the facade at net zero lines.",
      "tests": "At 6fd5bb85 after pnpm build --concurrency=2 (120 tasks, VERDICT command-exit 0): pnpm --filter @objectstack/objectql test: Test Files 633 passed (633), Tests 14345 passed (14345). pnpm --filter @objectstack/lint test: Test Files 227 passed (227), Tests 9461 passed (9461). Scoped spec src/system/i18n-related-lists-label-36528.test.ts: Tests 10 passed (10). Scoped metadata-protocol src/protocol-translated-echo.related-lists-36528.test.ts: Tests 3 passed (3). typecheck objectql and lint: exit 0. Ablation at 8e2ca2b7 via scripts/ablation-replace.mjs: the relatedLists spread of placed entries deleted from PlatformGlobalFacet.getPackagedObjectBase (anchor x1 -> x0, blob 31877522 -> 4549c158), so the pin went red: Tests 1 failed | 2 passed (3), expected [ 'Tasks', 'crm_note' ] to deeply equal [ 'Tasks', 'Audit trail', 'crm_note' ]. Restored blob 31877522 == HEAD, git diff HEAD empty. The subject is imported from src (relative ./index.js, ./registry.js), so no rebuild was needed.",
      "gates": "dispatch-gates --commands --repo objectstack-ai/objectstack at 6fd5bb85: 122 commands, each run with stdin closed after the full build, 122 exit 0 (in /mnt/project-files/objectstack-seat2/36528-gates-ran-r2.txt). --ran: Run reconciliation, 122 derived, 122 run, 0 NOT-MEASURED, 0 UNRUN. overlap-check --branch=HEAD before each push: VERDICT clean exit 0. CI on 8e2ca2b7: Lint · repo & tooling gates failure (check-facade-delegation-only --self-test N6: registry.ts 6438 lines over its 6426 ceiling); this PR caused it, and the lane is green on main 06c3e5ac (job 137414636309). The aggregates Lint & Repo Gates, TypeScript Type Check and Test UI on 8e2ca2b7 combined that failure with lanes cancelled when the push of 6fd5bb85 superseded the run. CI on 6fd5bb85, read at write time: Lint & Repo Gates success, Lint · repo & tooling gates success, TypeScript Type Check success, Test Core success, Test UI success, Build Core success; 60 success, 12 skipped. PR-body guards and Check Changeset were in_progress after the body edit.",
      "dogfood_battery": "n/a — no `!` in the PR title and no (narrowing) arm",
      "line_budget": "PR 20 files, +904/-17 vs merge base 06c3e5ac (human-merge threshold 3000: under). Facade packages/objectql/src/registry.ts 6426 of its 6426 ceiling (net 0 lines vs main).",
      "files_changed": [
        ".changeset/36528-related-list-label-translation.md",
        "packages/lint/src/i18n-related-lists-label-36528.test.ts",
        "packages/lint/src/validate-translation-references.ts",
        "packages/objectql/src/registry-platform-global.ts",
        "packages/objectql/src/registry-related-lists-label-translation-36528.test.ts",
        "packages/objectql/src/registry.ts"
      ],
      "deviations": [
        "Pushed to the PR's existing remote branch claude/project-thread-qwdwll from the local worktree branch claude/issue-36528-wt, as instructed.",
        "spec, metadata-protocol and rest full suites are declared to CI, not run locally: their source is unchanged in round 2, the scoped 36528 files were run, and Test Core on 6fd5bb85 is success.",
        "Did not tighten the lint fold so it accepts a place key only where the target declares relatedLists. Its fold does not see whether another package's target declares the list. Left permissive and recorded in the docblock, changeset and acceptance notes."
      ],
      "mcp_calls": "0",
      "api_writes": "2 — relay issue_patch PATCH /repos/objectstack-ai/objectstack/issues/36574 (PR body, via POST /repos/objectstack-ai/objectstack/dispatches, run 45094302192, 14844 bytes read back identical); post-stamped POST /repos/objectstack-ai/objectstack/issues/36528/comments (this report). Plus two git pushes (8e2ca2b7, 6fd5bb85), not REST.",
      "open_questions": [
        {
          "question": "Contract review delta owed at head 6fd5bb8573ec4fbcdb37772a5e6aabbf48871b17 (route (a) for M1, N1-N3, facade-ceiling fix).",
          "options": [
            "A seat runs the L2 delta review at 6fd5bb85",
            "B hold"
          ],
          "recommendation": "A, because the FAIL record is on 4249fe4b and the head moved"
        }
      ],
      "security_findings": "none",
      "out_of_scope_findings": [
        "carrier: none · noted, not filed: a .custom arrangement replaces the target's relatedLists whole, so the lint union of owner, place and .custom labelled entries can accept an owner key whose entry the arrangement drops (permissive direction, no false red)."
      ]
    }
  8. objectstack-fleet commented on Nov 23, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#2 · os-steve · session_01ADHkmRdKNUzzADvuRJx6UT

    Closed by PR #36574 (merged). pm:dispatched removed at 2026-11-23T02:13Z; skills text follows on #36575, the review residue on #36595.

  9. removed
    pm:dispatched
    on Nov 23, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

area:uxdomain:specpriority:p2

Type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions