Skip to content

review follow-ups of PR #35680: client-visible translation-fault warning slot, three unguarded i18n bundle builders, two test gaps #35707

Description

@objectstack-fleet

repo:objectstack#4 · os-elon-musk · session_016WV4d1k1GRsQbF3vCPKxhz

Filing gate: ① (L1 follow-ups of PR #35680, one card per PR) · Source: fleet · Area: a4-C · Seat: repo:objectstack#4

review follow-ups of PR #35680

PR #35680 (Fixes #34993 + #35083) makes a translation fault (an i18n service whose getLocales/getTranslations throws) serve untranslated text instead of blanking the answer. #34993's Change section asks for "untranslated text with a warning on all three surfaces". The PR gives the client a warning on list_datasets only (partial: true + warning). This card carries the scope cut, recorded at merge (L1-a verdict 7026981486, seat ruling option (a)).

Items

  • Client-visible whole-answer warning on the remaining surfaces. REST /meta (list, by-name), MCP list_objects / describe_object, and query_dataset have no field for a warning on a whole answer, so a translation fault is said only in the server log ([meta] logWarn). query_dataset's warning is declared "present exactly when delegationNarrowed". Adding a slot is a contract-shape change (packages/spec + packages/mcp/src/mcp-http-tools.ts): it needs its own ruling and goes as a Feature (new protocol key) — triage splits if needed.
  • Three bundle-builder copies are still unguarded (they call getLocales/getTranslations with no try/catch, the shape fix(i18n, mcp): a translation fault serves untranslated text; ?locale= reaches MCP labels and dataset sentences #35680 fixed in translationBundleOf): packages/metadata-protocol/src/protocol-discovery-and-bases.ts (~1209), packages/services/service-analytics/src/plugin.ts (~1131), packages/services/service-storage/src/record-file-access.ts (~715). Each: measure reach first, then guard or delegate to translationBundleOf.
  • Test gaps (L1 note 6): no fault pin on the HTTP object-tools path; the mcpRequestHttp branch that reads a host's already-parsed request.query is untested.

Why

Business reason: an MCP client or Console reading /meta during an i18n fault gets authored-language text with no sign that translation failed, so a zh-CN user cannot tell a fault from missing translations. Who acts: the server lane (area:ai seat a4-C, or whoever holds packages/mcp / packages/rest). Reach: rare trigger (a throwing i18n read), no customer named.

Grade: p3 · domain:server — follow-up of a landed fix, rare trigger, no wrong data (text is served, untranslated). Type left to triage (item 1 is a Feature, item 2 a latent defect).

Dedup: search translationBundleOf warning → 2 hits (#34993 open — the parent this cuts from; #34876 closed). "PR #35680" → 0.

Related: #34993, #35083, #34876, PR #35680. Parent epic #34659.

Activity

  1. added
    area:ai
    domain:server
    on Nov 20, 2026
  2. objectstack-fleet commented on Nov 20, 2026

    @objectstack-fleet
    ContributorAuthor

    triage#1 · hotlong · session_01Q4EjjMnyLqJdzuktEmRPXH

    Triage: lands in domain:server · pm:queue; rationale: area:ai · Task (review follow-ups of PR #35680: the client-visible translation-fault warning slot and three unguarded i18n bundle builds) · p3 as set; kept open because an unguarded bundle build can still fault a page.

  3. added
    pm:queue
    on Nov 20, 2026
  4. objectstack-fleet commented on Nov 28, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#2 · os-sales · session_01L6bhgV6i8jfWwSXjpWJrjA

    Claim: PM loop round 7 · 2026-11-28T10:08Z
    Picked by card-pick.mjs --order area:ai --seat repo:objectstack#2 at 2026-11-28T10:03Z, p3 close-out: the higher-ranked rows are cloud-repo, awaiting a maintainer ruling, a tooling admission, or the paused eval rounds. The maintainer in this seat's project, verbatim: 「查一下 ai 剩下的卡哪些可以派」 and 「ai 并发10」.
    Session: session_01L6bhgV6i8jfWwSXjpWJrjA
    Thread session: session_01L6bhgVdouXCTCCcBVLaYW5
    Account: os-sales
    Branch: claude/project-thread-w29ab7 (from main)
    Domain: domain:server
    Seat: repo:objectstack#2
    Area: s2-ai
    File surface: item ② the three unguarded bundle builders (packages/metadata-protocol/src/protocol-discovery-and-bases.ts registeredTranslationBundle, packages/services/service-analytics/src/plugin.ts buildTranslationBundle, packages/services/service-storage/src/record-file-access.ts translationBundleOf); item ③ the two named test gaps; item ① one optional top-level translationWarning string on REST /meta list and by-name (both transports), MCP list_objects / describe_object (both bridges) and query_dataset, present only on a translation fault, with the spec response schemas it needs (GetMetaItemsResponseSchema, GetMetaItemResponseSchema, QueryDatasetOutputSchema); changesets.
    Container & model: M, mode:thread, model: default tier — dispatch-gates.mjs --tier: "no path-derived mandate", effort: high
    Clause-②: yes (widening)
    Metadata-protocol: none
    Responsibility: a client reading object metadata or a dataset answer during an i18n fault can tell that the text is untranslated because translation failed, not because it was never translated.
    Thread-read: none
    Premise: verified by the thread on main 98bd8de: none of the three builders has a guard, and only list_datasets carries a warning today. The existing warning keys already mean other things (list_objects metadata-unavailable 503, query_dataset delegation narrowing), so item ① adds a new key rather than reusing one; a healthy answer stays byte for byte the same, and list_datasets' shipped partial + warning is unchanged. The widening is reviewed at the contract-review tier before the queue.
    Serial constraints cleared: no open PR edits these files (seat read).

    The PR says Fixes #35707.

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

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#2 · os-sales · session_01L6bhgVdouXCTCCcBVLaYW5
    os-dev-report

    {
      "issue": 35707,
      "status": "done",
      "branch": "claude/project-thread-w29ab7",
      "pr": "https://github.com/objectstack-ai/objectstack/pull/38282",
      "session": "session_01L6bhgVdouXCTCCcBVLaYW5",
      "premise_still_valid": true,
      "summary": "Item 1: one optional top-level string translationWarning (the metaTranslationFaultWarning sentence), present only on a translation fault, on GET /meta/:type (createMetaListAnswer step 9, beside items on the envelope; a bare-array list carries none) and GET /meta/:type/:name (translateMetaEnvelope) on both HTTP hosts, MCP list_objects (DiagnosedObjectListing.translationWarning) and describe_object on both bridges, and query_dataset (DatasetToolSource.translationWarning from both bridges' loadDatasets; warning stays the narrowing's). list_datasets output unchanged. Spec: GetMetaItemsResponseSchema, GetMetaItemResponseSchema, QueryDatasetOutputSchema gain z.string().min(1).optional(). Item 2: reach measured; registeredTranslationBundle feeds only the object save's echo restore, so a fault now refuses the save 503 SERVICE_UNAVAILABLE naming the reason and stores nothing (dev-thread decision: fail closed rather than store translated echoes as authored text; listed in the PR body); the analytics option-label builder and the upload page's builder answer no bundle plus one warn line. Item 3: HTTP object-tools fault pin, and the parsed request.query pin (URL names fr-FR, query zh-CN).",
      "tests": "head c04c6526: rest meta-translation-fault-34993 3/3; runtime mcp-object-locale-34872 + mcp-dataset-tools-bridge + meta-list-projection-parity 1471/1471 (after one round fixing two new cases' harness reads); mcp stdio-data-bridge.dataset-locale + object-locale-34872 24/24; service-analytics picklist-dimension-label-i18n 36/36; service-storage record-file-access.integration 93/93; objectql protocol-meta-effective-schema 28/28; turbo typecheck of the 8 touched packages exit 0. No ablation run: the new pins assert members absent on main (translationWarning) and a refusal main does not give.",
      "gates": "dispatch-gates --commands: 127 derived; --ran with exit codes: 123 exit 0, 4 NOT-MEASURED exit 3 (check-plugin-teardown-shape --self-test: shallow clone; spec check:skill-examples, check:dual-build-cjs-loads, check:i18n: unbuilt dist of other packages), 0 UNRUN. spec check:generated: docs regenerated via --fix, re-checked green; check:api-surface green. CI check-runs: in_progress at report time.",
      "dogfood_battery": "n/a — no `!` in the PR title and no (narrowing) arm",
      "mcp_calls": "1 — subscribe_pr_activity (not a GitHub write tool)",
      "api_writes": "2 — relay pr_create (POST /pulls + assignee), relay comment (this report)",
      "open_questions": [],
      "security_findings": "none",
      "out_of_scope_findings": ["carrier: none · noted, not filed — the cached by-name /meta read's ETag does not move on a translation fault, so a 304 can hand back a fault-time body after the fault clears (pre-existing for the untranslated text; rare trigger); in the PR's Acceptance notes"]
    }
  7. objectstack-fleet commented on Nov 28, 2026

    @objectstack-fleet
    ContributorAuthor

    repo:objectstack#2 · os-sales · session_01L6bhgV6i8jfWwSXjpWJrjA

    Landed · 2026-11-28T14:09Z

    PR #38282 merged at 2026-11-28T13:58Z through the merge queue on the seat's ACCEPT (7239964486), and its Fixes line closed this card. What changed:

    • When a translation bundle fails to build, the /meta reads, the MCP metadata answers and query_dataset say so on the answer as translationWarning and serve the source text, instead of failing or silently dropping the labels.
    • The three bundle builders that had no guard now have one, with tests.
    • The warning and refusal sentences use fixed client-facing text; the original error goes to the server log.

    Follow-up #38288 (ETag on the warned answer) stays queued. It was never ejected. pm:dispatched is cleared on this card.

  8. removed
    pm:dispatched
    on Nov 28, 2026
  9. added a commit that references this issue on Dec 1, 2026
    81f2ff8
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

area:aidomain:serverpriority:p3

Type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions