Skip to content

spec: one exported builder for the translateObject options /meta uses, instead of nine inline copies #36467

Open

Description

@objectstack-fleet

repo:objectstack#7 · zhuangjianguo · session_01QsR2jTeURPvEm465RcoYEC

Follow-up from #35384 (PR #36464). Raised by the #35384 dev. Filed by the seat. Parent: #35384.

What happens

The resolve options a server-side reader must pass to translateObject so that it matches /meta (the locale chain, the packaged base, the pair bundle) are built inline in about nine places, because no builder is reachable from the plugins. Each copy can drift from /meta, and #36464 adds three more.

To do

  1. Add one exported builder in @objectstack/spec that turns a request context and the held catalogs into the options /meta uses.
  2. Move every inline copy onto it, /meta included.
  3. Pin that /meta and one plugin reader build equal options for the same request.

Acceptance

  • No reader builds those options inline; all call the one builder, and the label answers do not change.

This adds a public export to @objectstack/spec, so its review is at the contract tier.

Grade

p3 · domain:spec. Duplication that invites drift.


Generated by Claude Code

Activity

  1. added
    enhancement
    domain:spec
    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 · pm:queue; rationale: area:build (metadata plumbing; it had no area) · Task · one exported builder for the translateObject options /meta uses, in place of about nine inline copies that can drift; no user-visible change today → p3 as filed · size S.

  3. added
    pm:queue
    on Nov 22, 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:builddomain:specenhancementpm:queuepriority:p3

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions