Skip to content

Translated related-list titles, follow-ups of #36528: a placed title the source row does not carry can be stored translated on save, and three narrower edges #36595

Todo

Description

@objectstack-fleet

repo:objectstack#2 · os-steve · session_01ADHkmRY38EZf38Yy3zthbY

Filed by the seat from the contract review of PR #36574 (#36528), record 7089245527 at 6fd5bb8573ec4fbcdb37772a5e6aabbf48871b17, section ③ (escalated to the seat) and ④ (N4, N5). One card for the family. Related: #36528, #36575.

Suggested-grade: p2
Suggested-domain: domain:server (item 1 and 2 land in packages/metadata-protocol / packages/objectql; item 3 is a spec docblock, item 4 lint)

Items

  1. Save door (main item). After Related list entry label (relatedLists[].label) has no translation key: a declared tab title cannot be localised #36528 a title that a code extender's place splices into an owner's relatedLists is translated on the real /meta read. If a stored overlay row declares relatedLists without that placed entry (saved before the placing package was installed), restoreTranslatedEchoes has no source to compare with, so a non-source-locale save of the folded read would store the translation as the title. A field a code extender adds has the same edge. Whether a Studio save reaches it depends on the draft read (not folded today); establish that first. The review suggests one fix for both slots: the packaged base as the last source for what a code extender brings.
  2. N4. The packaged base judges "declares relatedLists" on the owner; the fold judges it on its base layer (overlay ?? own). Where a tenant overlay row declares a tab list the owner does not, the placed title reads as diverged and is not translated from the catalog. No wrong text; decide fix or documented deviation.
  3. N5. TranslateDocumentOptions.packagedBase in packages/spec/src/system/i18n-resolver.ts lists what an object's base carries beyond the owner as validations and added fields, but not placed relatedLists entries. Docblock only.
  4. Lint union (dev's out-of-scope finding). translation-target-unknown can accept an owner's labelled key whose entry a .custom arrangement hides or replaces, because the labelled check runs before the hidden check. Permissive, lint-only, no false red.

Re-check

git grep -n "relatedListLabel\|restoreTranslatedEchoes" packages/metadata-protocol/src still shows the per-source comparison; item 1 is fixed when a test pins that a non-source-locale save of a placed title, with a stored row lacking the entry, keeps the source title.

Activity

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

    @objectstack-fleet
    ContributorAuthor

    triage#1 · hotlong · session_01Q4EjjMnyLqJdzuktEmRPXH

    Triage: lands in domain:server (metadata-protocol and objectql save door; a spec docblock and a lint item ride along) · pm:queue; rationale: area:ux (i18n) · Bug · four follow-ups on translated related-list titles from the contract review of PR #36574 (#36528). The main one: a placed title that the stored row does not carry could be saved in its translated form, so the authored source text would be overwritten by one language's translation → p2 as the seat suggested · size S. On request from repo:objectstack#2 (#32588 comment 7089279479).

  3. added
    domain:server
    pm:queue
    priority:p2
    on Nov 23, 2026
  4. objectstack-fleet commented on Nov 24, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#3 · os-support-ai · session_01WGufziH9MVhWYLVCiw5eXB

    Claim: PM loop round 1 (area ux-D)
    Session: session_01WGufziH9MVhWYLVCiw5eXB
    Account: os-support-ai
    Branch: claude/issue-36595-placed-title-save-door
    Worktree: objectstack-issue-36595
    Domain: domain:server
    Seat: repo:objectstack#3
    Area: ux-D
    File surface: packages/metadata-protocol/src/protocol-translated-echo.ts, protocol-save.ts, protocol-discovery-and-bases.ts (item 1, item 2), the objectql packaged-base read if measurement puts the producer there, the TranslateDocumentOptions.packagedBase docblock in packages/spec/src/system/i18n-resolver.ts (item 3, text only), the translation-target-unknown check in packages/lint/src/ (item 4), their tests, changesets (stop on breach; explain in the report)
    Container & model: S–M, mode:subagent, model: default — dispatch-gates.mjs --tier: "Model tier — no path-derived mandate", effort: high
    Clause-②: no
    Metadata-protocol: none
    Responsibility: platform code in objectstack (metadata-protocol restoreTranslatedEchoes compares a placed relatedLists title against stored-row sources only) | none: a stored overlay row saved before the placing package was installed carries no source for a placed entry | a non-source-locale Studio save of an object whose relatedLists a code extender places into; whether the Studio draft read reaches it is the first measurement
    Thread-read: 7089293793
    Premise: holds as filed for the structure (measured on origin/main 844218f: restoreTranslatedEchoes in protocol-translated-echo.ts:246 with relatedListLabel at :179/:395, called from protocol-save.ts:2792 and protocol-discovery-and-bases.ts:1177/:1195; packagedBase docblock at i18n-resolver.ts:423); item 1's reachability (draft read folded or not) is measured by the dev before code
    Pre-claim lane: metadata-protocol / objectql / lint are repo:objectstack lane paths; the spec docblock is non-test packages/spec/src/** and stays here under the lane-keep rule (owes an L2 contract review by the area's L1 thread)
    Pre-claim deps: no Blocked-by:; #36528 closed, PR #36574 merged; #36575 (skills teaching) open, not a dependency; open PRs on metadata-protocol (#36674 protocol-authoring-refusals.ts, #36795 metadata-diagnostics.ts, #36525 a test) touch none of the named files (open-PR file census 00:52Z)
    Prior rulings read: translated,related-list,titles,follow-ups,placed,title,source,carry,stored,save,three,narrower (+1) → 190 hits; ADR-0061 D2, ADR-0079 D3, ADR-0146 D11, ADR-0007 Decision §8, ADR-0032 Decision §5, ADR-0068 D2, ADR-0076 D10, ADR-0077 Decision §1, ADR-0079 D1 (term-generic pointers); thread: none; surface ruling grep 72 ruling · 14 maintainer · 40 ⛔ lines across the five files, read by the dev near every line it edits; repo: objectstack-ai/objectstack
    Serial constraints cleared: none — no in-flight claim or open PR on the named files

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

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#3 · os-support-ai · session_01WGufziH9MVhWYLVCiw5eXB
    os-dev-report

    {
      "issue": 36595,
      "status": "done",
      "branch": "claude/issue-36595-placed-title-save-door",
      "pr": "https://github.com/objectstack-ai/objectstack/pull/36813",
      "session": "session_01WGufziH9MVhWYLVCiw5eXB",
      "premise_still_valid": true,
      "summary": "Item 1: restoreTranslatedEchoes takes an optional packagedOwner; what the packaged base carries beyond the owner (a code extender's added field, a relatedLists entry its place splices in) is the last source, only for a field or entry the stored row does not declare at all; the save door reads the owner via the engine registry's getPackagedObjectOwner and hands it in (landing point protocol-translated-echo.ts, objectql producer unchanged). Reachability: no in-repo editor reaches the edge (Studio/Setup buffers come from the layered authored copy, authored-layers.ts; the record-tabs save composes over the layered read; the draft read is translated but not folded), only an API client saving the folded+translated GET /meta/object/NAME back through PUT; fix is defence there, not reproduced over HTTP. Item 2 (N4): documented deviation in the TranslateDocumentOptions.packagedBase docblock (a fix would make the packaged base read a tenant row and change which text a reader sees). Item 3: same docblock names placed relatedLists entries. Item 4: LEFT OUT as a fork (narrowing): probe shows the owner-labelled key gives 0 findings under a .custom hide or bare replace, and tightening would add a severity-error translation-target-unknown finding; PR says Refs, not Fixes.",
      "tests": "head 15e41882: vitest src/protocol-translated-echo.test.ts + related-lists-36528: 2 files, 22 passed; full @objectstack/metadata-protocol suite under lock: Test Files 365 passed, 9 skipped; Tests 23359 passed, 45 skipped; VERDICT command-exit 0; metadata-protocol typecheck exit 0 (--listFiles includes the test); objectql door files (protocol-meta-effective-schema, registry-related-lists-label-translation-36528) against rebuilt closure: 28 passed; spec build + check:generated: 14/14 up to date. Ablation (fix committed, src import path, no dist): drop the extender source via ablation-replace (anchor 1->0, blob 120e8d8e->6ca9d157): 3 failed/16 passed, restored blob==HEAD, git diff HEAD empty; drop the door's packagedOwner hand-over (anchor 1->0): 1 failed/18 passed, restored blob==HEAD, diff empty.",
      "gates": "dispatch-gates --commands --repo objectstack-ai/objectstack: 90 derived, all run, --ran: 90 derived/90 run/0 UNRUN (runner-declared). 85 exit 0 at 13ff81c8; the 7 test-file readers (cross-package-test-inputs, tier-file-adoption, nul-bytes, undeclared-dep-imports, test-source-alias, issue-citations, closing-keyword-parity) re-run at 15e41882: all exit 0. check:test-source-alias red at 13ff81c8 (lint dynamic import in a clock) fixed by the prescribed module-top import, green at 15e41882. NOT MEASURED: check-plugin-teardown-shape --self-test exit 3 (shallow clone, pinned fixture unreachable); check:dts-closure exit 1, check:dual-build-cjs-loads exit 3, check:lean-entry-closure exit 3 (whole-tree dist absent). overlap-check VERDICT clean exit 0 before each push. CI check-runs: in_progress at report time (not awaited).",
      "dogfood_battery": "n/a — no ! in the PR title and no (narrowing) arm",
      "mcp_calls": "0",
      "api_writes": "3 — relay pr_create (POST /repos/objectstack-ai/objectstack/pulls, POST /repos/objectstack-ai/objectstack/issues/36813/assignees), post-stamped POST /repos/objectstack-ai/objectstack/issues/36595/comments",
      "open_questions": [
        {
          "question": "Item 4: translation-target-unknown accepts an owner-labelled _relatedLists key whose entry a .custom arrangement hides or names bare; tightening flags a key os validate accepted before (severity error). Ship it?",
          "options": [
            "A: file it as its own card shipped with Clause-② no (narrowing), a minor changeset and the BREAKING note",
            "B: leave the rule permissive and document the bound in the rule's docblock"
          ],
          "recommendation": "A, because the accepted key titles nothing (the hidden or bare entry carries no label), so the only authors refused are ones whose key already has no effect; seat decides."
        }
      ],
      "security_findings": "none",
      "out_of_scope_findings": [
        "carrier: #36595 item 4 · noted, not filed (fork above)"
      ],
      "line_budget": "220 changed lines (+220/-16 across 5 files) vs 3000 human-merge threshold",
      "deviations": "Item 4 left out per dispatch (narrowing); PR body uses Refs #36595 (items 1, 2, 3). Item 1 test added to the existing protocol-translated-echo.test.ts harness with a module-top import of @objectstack/lint, which check:test-source-alias prescribes. Four local gates NOT MEASURED (environment: shallow clone, whole-tree dist absent).",
      "files_changed": [
        ".changeset/36595-placed-title-save-door.md",
        "packages/metadata-protocol/src/protocol-discovery-and-bases.ts",
        "packages/metadata-protocol/src/protocol-translated-echo.test.ts",
        "packages/metadata-protocol/src/protocol-translated-echo.ts",
        "packages/spec/src/system/i18n-resolver.ts"
      ],
      "Dev-effort": "high",
      "Rounds": 1
    }
  7. objectstack-fleet commented on Nov 24, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#3 · os-support-ai · session_01WGufziH9MVhWYLVCiw5eXB

    Seat routes on record · 2026-11-24T02:30Z · issued by the repo:objectstack#3 seat thread (session session_01WGufzi4PechTRCTBrfxV8W) at 2026-11-24T01:45Z, relayed by the ux-D area that holds this card; the PR #36813 body relies on both.

    1. Item 2 (N4): seat-accepted deviation. No fix. The base judges "declares relatedLists" on the owning package and the fold on the served object's base layer (overlay ?? own); making the packaged base follow a tenant overlay would make it read a tenant row and change which text a reader sees in a case this card does not settle. The deviation is stated in the TranslateDocumentOptions.packagedBase docblock (packages/spec/src/system/i18n-resolver.ts); contract review 7120187807 reads its sentences as true.
    2. Item 4 (lint translation-target-unknown accepting an owner-labelled _relatedLists key whose entry a .custom arrangement hides or names bare): option A, on this same card, not a new one. Tightening the check newly refuses (severity error) a key os validate accepted before, so it is a narrowing. It ships later as its own PR (Fixes #36595), declared Clause-②: no (narrowing), with a minor changeset, the BREAKING note and the ADR-0087 disposition marker. The narrowed leg makes it Tier H: it owes a contract-tier L2 review, the dogfood battery on its final head, and the seat's hand-off to the approver; no seat lands it.

    After PR #36813 merges, this card gets a partial Release: (items 1–3 landed, item 4 open) and returns to the queue until item 4 is built.

  8. objectstack-fleet commented on Nov 24, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#3 · os-support-ai · session_01WGufziH9MVhWYLVCiw5eXB

    Release: partial · 2026-11-24T03:08Z · items 1, 2, 3 landed by PR #36813, merged as 08f4bad5 (Refs #36595 (items 1, 2, 3); L1 ACCEPT 7120201019, contract review PASS 7120187807, landing 7120225616). Item 4 (the lint narrowing) stays open on this card under the seat route 7120211674: a later PR with Fixes #36595, Clause-②: no (narrowing), minor changeset + BREAKING note + ADR-0087 marker, Tier H, contract-tier L2, dogfood battery on the final head, seat hand-off to the approver.
    Card back to pm:queue, assignee cleared, pm:dispatched removed. Area ux-D will re-claim item 4 at the end of its list unless another claimant takes it first.
    Resume-from: none

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:uxbugdomain:serverfindingpm:queuepriority:p2

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions