Skip to content
This repository was archived by the owner on Nov 4, 2026. It is now read-only.

fix(react): evaluate a ${…} hole inside an inline locale map like a plain string (objectui#12936) - #12940

Merged
objectstack-fleet[bot] merged 1 commit into
mainfrom
claude/issue-12936-locale-map-holes
Oct 18, 2026
Merged

objectstack-fleet[bot] merged 1 commit into
mainfrom
claude/issue-12936-locale-map-holes

Conversation

@objectstack-fleet

Copy link
Copy Markdown
Contributor

Fixes #12936

Clause-②: yes (widening) — @object-ui/react's SchemaRenderer now honours a shape it used to hand over raw: each member of an inline locale map in a node's config bag is evaluated like a plain string on the same key. No export is added or removed and no type changes; the set of authored values the renderer evaluates widens by that one shape.

Dispatched by the domain:ui seat 1 PM (claim comment 6246422606), triage route 1 (comment 6246364337). Session https://claude.ai/code/session_0188TsgPV8kQXfuRuKmkj2ks.

What changed

  • packages/react/src/utils/localeMap.ts (new). isInlineLocaleMap asks @objectstack/spec/ui's own InlineLocaleMapSchema (every key a locale tag or default, never key / defaultValue; every value a string), behind a fast reject on a non-string member that can only refuse what the schema refuses. mapLocaleMapMembers maps each member through a visitor, spells the result as a string, and copies on write, so a map without a hole comes back as the very object that went in.
  • SchemaRenderer.tsx, evaluateConfigValueWith (the one per-value rule): inside the data-object branch, an inline locale map has each member evaluated by the same evaluator, so against the same scope as a plain string on that key. Every other data object keeps the objectui#10288 hand-over, with no walk. This one rule serves the memo's node-level params, properties and props loops and evaluateConfigBagInScope (useConfigBagEvaluator), so every carrier moves together. The docblocks of isDataObjectValue and evaluateConfigValueWith, and the two memo comments that describe the shallow radius, now name the one-level exception.
  • utils/unevaluatedExpression.ts. scanBag walks a locale map's members through the same recogniser and walker, so a member whose expression throws (the evaluator keeps its source text) is reported by its locale, for example properties.title.en, as a plain string with the same hole is. Its "Depth" docblock records the second shape. The message text is unchanged.
  • content/docs/guide/expressions.md: a short "Localized Copy" subsection (AGENTS.md Add automated testing infrastructure and CI/CD workflows #2).
  • .changeset/12936-locale-map-holes.md: @object-ui/react minor.

A member's result is always a string: a member that is one whole hole, '${data.count}', resolves to the number as a plain string does, and a number member would be skipped by every pickLocalized limb (each reads string entries only), so the viewer would get another locale's line. String(result ?? '') is the spelling the evaluator already gives an interpolated part of a plain string.

The PM's mechanism assumptions, measured

  1. Site and call paths: confirmed. isDataObjectValue hands every non-envelope object on a non-predicate key over as authored. Its only reader is evaluateConfigValueWith, and that is the rule behind node-level params, the properties loop, the props loop (through the memo's evaluateConfigValue) and evaluateConfigBagInScope. The diagnostic had to learn the shape too. Its own header says "Depth: exactly the evaluator's own radius, and not one level more". Without the scan change, a member whose hole throws stays raw and says nothing, while the same plain string is reported. Ablation 2 below shows this.
  2. Recogniser: the spec's, reused. @object-ui/i18n has no isInlineLocaleMap (pickLocalized accepts any object), and plugin-dashboard's module-private isLocaleMap is "any non-array object", which is too wide. The installed @objectstack/spec 18.0.0-next.3 declares InlineLocaleMapSchema at runtime as a z.record of a locale-tag key regex to z.string(). Verdicts measured through it: the card's map true; { source, campaign } false; a 30-key mixed data object false; an expression envelope false; a Date false; { id, url } true (see Acceptance notes). Cost measured on this box: about 2 microseconds for a map; the member pre-check turns away most data objects before the schema runs.
  3. Scope: confirmed. The memo builds predicateScope as the ambient scope plus data: apiData once the API binding's status is ready, and configEvaluationScope adds current_user, record and page. The members go through that same evaluator, pinned once per root: record, page, current_user, and data under an API binding.
  4. Predicate-chain keys and envelopes keep their rules. The locale branch sits inside isDataObjectValue, which already excludes PREDICATE_CHAIN_KEYS and spec envelopes. An envelope can never be a locale map, because dialect and source fail the key regex. No locale map on a predicate key was found.
  5. Consumers: no change needed. Measured end to end: hero (reads schema.properties, then pickLocalized) and element:text (reads through readProps, then pickLocalized) both draw the evaluated member. No consumer was found re-reading the raw node.

Tests (all on head 3d521e22)

  • New packages/react/src/__tests__/SchemaRenderer.localeMapHoles-12936.test.tsx: Tests 15 passed (15). It pins member/plain-string parity per root (record, page, current_user, data under an API binding), the props alias, evaluateConfigBagInScope, the whole-hole string spelling, four data-object controls (non-string member, nested object member, non-locale key, the retired key / defaultValue form) and the no-hole identity control. It also has three diagnostic cases: a throwing member reported by its locale, an evaluated member not reported, and the scan walking a locale map and nothing else.
  • New packages/app-shell/src/console/blocks/__tests__/localeMapHole-12936.test.tsx: Tests 6 passed (6). It covers the card's zh / en hero title with a data.* hole under the real API binding, the zh / en no-hole control, and element:text in zh-CN / en.
  • pnpm exec vitest run --maxWorkers=2 packages/react/: Test Files 117 passed (117), Tests 1464 passed (1464), lock VERDICT command-exit 0.
  • Consumer sweep: packages/components/src/renderers/action/__tests__/, packages/components/src/renderers/basic/__tests__/, five locale/aria suites in packages/components/src/__tests__/, packages/app-shell/src/console/blocks/__tests__/ and DeclaredActionsBar.test.tsx: Test Files 65 passed (65), Tests 984 passed (984), VERDICT command-exit 0.
  • pnpm --filter @object-ui/react type-check (tsc --noEmit && tsc -p tsconfig.test.json): exit 0, after pnpm --workspace-concurrency=2 --filter "@object-ui/components^..." run build. A --listFiles count shows both new files are read.
  • @object-ui/app-shell type-check: narrowed to the new test file (a temporary project extending tsconfig.test.json, deleted afterwards) because the full project needs about 30 package builds. Exit 0, and --listFiles shows it read the test and productBlocks.tsx. The full project is left to CI's Type Check.

Ablations (committed first; mutation and restore through ablation-replace.mjs, wrap mode, restore proven by blob equals HEAD and an empty git diff HEAD)

  1. Evaluation branch (mapLocaleMapMembers(value, …) replaced by value in evaluateConfigValueWith). Predicted: every parity pin red, the hero and element:text reads red, the diagnostic's "evaluated member is not reported" control red (direction: more diagnostics, because the members stay raw), and every data-object control green. Observed Tests 12 failed | 9 passed (21), exactly those 12. Restored to blob 1d4dc859ba4c, equal to HEAD.
  2. Diagnostic branch (the isInlineLocaleMap test in scanBag made false). Predicted and observed: Tests 2 failed | 13 passed (15), namely the throwing-member report and the scan pin. Restored to blob 681dee2e782c, equal to HEAD.

Gates (run locally on 3d521e22; exit captured before any pipe)

objectui has no dispatch-gates.mjs, so this list is derived by hand from the root package.json against this diff.

  • pnpm check:new-line-citations: 0, VERDICT new-cross-file-line-citations: 0 new citation(s)
  • pnpm check:test-path-roots: 0, OK
  • pnpm check:changeset-claims: 0, "No pending changeset names a file this change touches."
  • node scripts/check-changeset-presence.mjs: 0, "5 source file(s) of 2 released package(s) changed, and this change declares 1 changeset(s)"
  • pnpm changeset:check: 0
  • pnpm check:pending-changeset-literals, check:control-bytes, check:unreferenced-sources, check:phantom-deps, check:esm-specifiers, check:spec-symbols, check:element-data-source-declaration: all 0
  • Docs: check:doc-json 0 ("Every judged JSON node document on the scan surface passes the strict authoring face"; content/docs/** is on its surface, so the new element:text fence was judged), check:doc-types 0, check:doc-fences 0, check:doc-example-ids 0, check:doc-example-readers 0.
  • check:doc-snippets, check:doc-examples: NOT MEASURED, exit 2 PRECONDITION NOT MET (they need a 34-package scoped build). The new block is a JSON fence, which check:doc-json judged; left to CI.
  • ESLint on the five changed source and test files: exit 0, 0 errors. All 16 warnings are already in SchemaRenderer.tsx, and this diff adds no any.
  • node scripts/check-governed-queue-guard.mjs --test over all seven paths: "NOT GOVERNED".

Acceptance notes

  • File surface beyond the claim. The claim names SchemaRenderer.tsx, the tests and one changeset. This diff also adds utils/localeMap.ts, the shared recogniser and walker, following utils/paramsBag.ts. It also edits utils/unevaluatedExpression.ts for diagnostic parity (assumption 1) and content/docs/guide/expressions.md (AGENTS.md Add automated testing infrastructure and CI/CD workflows #2). Nothing in the claim's not-in-scope list is touched: pickLocalized, block prop reads, the save path and spec keys are all unchanged. The seat may want to amend the claim's file surface.
  • Boundary that follows from reusing the contract. An object whose keys all parse as locale tags (any two or three letters do, so { id, url } qualifies) and whose values are all strings is an inline locale map to InlineLocaleMapSchema, so it is one here too, and a ${…} in its members is now evaluated. A source grep found no authored data object of that shape carrying a hole; the matches were JS template literals. Recorded, not filed. Carrier: none.
  • Node-level keys stay string-only. The node-level content leg and the spec's expression-bindable node keys (statistic / card / button) still evaluate strings only, so a locale map written at node level stays raw. The diagnostic now names such a member, since it scans locale maps on every channel as it scans strings, and its message points the author to properties.*, which evaluates it. No producer was measured writing that shape. Recorded, not filed. Carrier: none.
  • No walk. A locale map nested inside another data object (for example aria.ariaLabel) stays raw, by the ruling.
  • needs:contract-review. Clause-② is yes; this run's definition does not ask the dev to hang the marker, so no label was written. That is the seat's call before ready.

Generated by Claude Code

… string on the same key

A config-bag value that is an inline locale map (the spec's second I18nLabel
form, recognised by @objectstack/spec's InlineLocaleMapSchema) now has every
member evaluated with the same evaluator and scope as a plain string on that
key: record, current_user / user, page, and data under an API binding. Any
other data object keeps the objectui#10288 rule and is handed over as authored.
A member's result is spelled as a string, and a map without a hole keeps its
identity.

The unevaluated-expression diagnostic reads the members through the same
recogniser and walker, so a member whose expression throws is reported by its
locale, as a plain string with the same hole is.

Claude-Session: https://claude.ai/code/session_0188TsgPV8kQXfuRuKmkj2ks
Co-authored-by: Claude <noreply@anthropic.com>
@github-actions

Copy link
Copy Markdown
Contributor

✅ Console Performance Budget

Metric Value Budget
Eager closure (gzip, 75 chunks) 3157.0 KB 3744.1 KB
Main entry chunk (gzip) 80.6 KB 350 KB
Entry file index-BahJ4HBa.js —
Status PASS —

The eager closure is every chunk the entry reaches through static imports — what the browser fetches and parses before the app renders. The entry chunk on its own is a small fraction of it.


📦 Bundle Size Report

Package Size Gzipped
app-shell (consoleActionDispatch.js) 0.20KB 0.19KB
app-shell (index.js) 21.41KB 7.88KB
app-shell (runtime-config.js) 24.52KB 8.48KB
app-shell (types.js) 0.01KB 0.04KB
app-shell (urlParams.js) 10.11KB 3.87KB
auth (ActiveOrganizationStorage.js) 27.95KB 10.04KB
auth (AuthContext.js) 0.31KB 0.24KB
auth (AuthGuard.js) 2.07KB 1.00KB
auth (AuthProvider.js) 45.59KB 12.03KB
auth (AuthShell.js) 3.49KB 1.40KB
auth (ForgotPasswordForm.js) 12.21KB 3.45KB
auth (LoginForm.js) 20.67KB 6.12KB
auth (PreviewBanner.js) 0.90KB 0.50KB
auth (RegisterForm.js) 6.72KB 2.24KB
auth (SocialSignInButtons.js) 9.74KB 3.94KB
auth (UserMenu.js) 3.39KB 1.21KB
auth (auth-gate-events.js) 1.62KB 0.83KB
auth (authStyles.js) 5.27KB 1.86KB
auth (createAuthClient.js) 42.84KB 11.66KB
auth (createAuthenticatedFetch.js) 8.54KB 3.46KB
auth (index.js) 3.63KB 1.64KB
auth (invitation-status.js) 1.22KB 0.70KB
auth (org-roles.js) 6.66KB 2.78KB
auth (phone-identifier.js) 1.11KB 0.66KB
auth (types.js) 0.59KB 0.35KB
auth (useAuth.js) 5.30KB 1.02KB
auth (useWorkspaceAdminStatus.js) 11.08KB 4.58KB
collaboration (CommentThread.js) 27.26KB 8.03KB
collaboration (LiveCursors.js) 3.17KB 1.27KB
collaboration (PresenceAvatars.js) 6.28KB 2.60KB
collaboration (PresenceProvider.js) 2.79KB 1.13KB
collaboration (commentAuthorship.js) 1.39KB 0.78KB
collaboration (index.js) 1.93KB 0.85KB
collaboration (useCollaborationTranslation.js) 6.50KB 2.52KB
collaboration (useCommentSearch.js) 1.98KB 0.88KB
collaboration (useConflictResolution.js) 7.75KB 1.86KB
collaboration (useMentionNotifications.js) 1.81KB 0.68KB
collaboration (usePresence.js) 6.33KB 1.84KB
collaboration (useRealtimeSubscription.js) 7.91KB 2.01KB
components (index.js) 612.39KB 149.02KB
core (index.js) 10.18KB 4.04KB
create-plugin (index.js) 27.94KB 9.51KB
data-objectstack (index.js) 248.83KB 69.44KB
fields (index.js) 291.50KB 74.42KB
i18n (LocalizationContext.js) 2.92KB 1.42KB
i18n (builtinAggregateLabels.js) 0.86KB 0.49KB
i18n (currency.js) 2.59KB 1.22KB
i18n (fallbackInterpolation.js) 6.25KB 2.77KB
i18n (i18n.js) 8.87KB 3.64KB
i18n (index.js) 5.52KB 2.39KB
i18n (pickLocalized.js) 9.86KB 3.95KB
i18n (provider.js) 39.35KB 12.88KB
i18n (translateFn.js) 0.20KB 0.18KB
i18n (useDisplayLocale.js) 3.52KB 1.76KB
i18n (useObjectLabel.js) 36.87KB 9.88KB
i18n (useSafeTranslation.js) 7.14KB 2.92KB
layout (index.js) 41.33KB 11.96KB
mobile (MobileProvider.js) 0.92KB 0.49KB
mobile (ResponsiveContainer.js) 0.94KB 0.38KB
mobile (breakpoints.js) 1.51KB 0.70KB
mobile (createOfflineDataSource.js) 5.61KB 1.75KB
mobile (index.js) 1.99KB 0.87KB
mobile (offlineQueue.js) 3.91KB 1.35KB
mobile (pwa.js) 0.97KB 0.49KB
mobile (serviceWorker.js) 1.48KB 0.62KB
mobile (serviceWorkerSource.js) 3.41KB 1.48KB
mobile (useBreakpoint.js) 1.54KB 0.65KB
mobile (useGesture.js) 6.96KB 1.98KB
mobile (useOfflineSync.js) 1.99KB 0.72KB
mobile (usePullToRefresh.js) 6.62KB 2.45KB
mobile (useResponsive.js) 0.72KB 0.42KB
mobile (useSpecGesture.js) 5.52KB 2.10KB
mobile (useTouchTarget.js) 1.01KB 0.54KB
permissions (MePermissionsProvider.js) 15.35KB 5.51KB
permissions (PermissionContext.js) 0.31KB 0.25KB
permissions (PermissionGuard.js) 0.89KB 0.45KB
permissions (PermissionProvider.js) 6.82KB 2.38KB
permissions (discardProofCache.js) 1.04KB 0.55KB
permissions (evaluator.js) 8.33KB 3.07KB
permissions (index.js) 0.93KB 0.41KB
permissions (store.js) 0.91KB 0.42KB
permissions (useFieldPermissions.js) 1.28KB 0.53KB
permissions (usePermissions.js) 4.83KB 2.27KB
plugin-ai (index.js) 16.04KB 3.92KB
plugin-calendar (index.js) 55.04KB 16.10KB
plugin-charts (index.js) 85.06KB 23.39KB
plugin-chatbot (index.js) 210.60KB 49.94KB
plugin-dashboard (index.js) 146.43KB 39.63KB
plugin-designer (index.js) 233.95KB 50.08KB
plugin-detail (index.js) 266.04KB 70.50KB
plugin-editor (index.js) 2.23KB 1.05KB
plugin-form (index.js) 180.54KB 46.64KB
plugin-gantt (index.js) 178.46KB 45.13KB
plugin-grid (index.js) 272.87KB 75.68KB
plugin-kanban (index.js) 63.37KB 19.51KB
plugin-list (index.js) 139.74KB 35.99KB
plugin-map (index.js) 27.17KB 9.00KB
plugin-markdown (index.js) 13.88KB 4.80KB
plugin-report (index.js) 46.66KB 13.13KB
plugin-timeline (index.js) 39.31KB 11.88KB
plugin-tree (index.js) 15.27KB 5.40KB
plugin-view (index.js) 94.68KB 24.36KB
providers (DataSourceProvider.js) 0.75KB 0.39KB
providers (MetadataProvider.js) 1.37KB 0.59KB
providers (ThemeProvider.js) 1.90KB 0.85KB
providers (UploadProvider.js) 12.07KB 3.68KB
providers (index.js) 0.45KB 0.23KB
providers (types.js) 0.01KB 0.04KB
react-runtime (index.js) 5.62KB 2.34KB
react (LazyPluginLoader.js) 4.47KB 1.63KB
react (SchemaRenderer.js) 125.37KB 41.04KB
react (data-invalidation.js) 5.05KB 2.08KB
react (index.js) 4.71KB 2.11KB
react (schema-input.js) 4.31KB 2.07KB
react (spec-input.js) 0.20KB 0.18KB
sdui-parser (body-dialect.js) 4.50KB 1.99KB
sdui-parser (codegen.js) 9.45KB 3.76KB
sdui-parser (dashboard-widget-options.js) 3.07KB 1.30KB
sdui-parser (index.js) 7.30KB 3.12KB
sdui-parser (input-type.js) 2.84KB 1.40KB
sdui-parser (parse.js) 25.28KB 7.81KB
sdui-parser (provenance.js) 3.84KB 1.90KB
sdui-parser (types.js) 0.29KB 0.24KB
sdui-parser (validate.js) 23.87KB 7.83KB
types (ai.js) 4.39KB 2.17KB
types (api-types.js) 0.20KB 0.18KB
types (app.js) 4.12KB 1.61KB
types (authoring-nodes.js) 0.20KB 0.19KB
types (base.js) 0.20KB 0.18KB
types (blocks.js) 0.20KB 0.18KB
types (cloud.js) 0.20KB 0.18KB
types (complex.js) 4.44KB 2.07KB
types (crud.js) 0.20KB 0.18KB
types (dashboard-filter-alias.js) 6.23KB 2.74KB
types (dashboard-widget-layout.js) 2.06KB 0.96KB
types (data-display.js) 3.75KB 1.85KB
types (data-protocol.js) 0.20KB 0.19KB
types (data.js) 0.20KB 0.18KB
types (designer.js) 1.85KB 0.85KB
types (disclosure.js) 0.20KB 0.18KB
types (error-code.js) 1.54KB 0.88KB
types (expression.js) 0.20KB 0.18KB
types (feedback.js) 0.20KB 0.18KB
types (field-types.js) 1.13KB 0.65KB
types (form.js) 0.20KB 0.18KB
types (http-inflight.js) 8.87KB 3.73KB
types (http-retry.js) 4.32KB 2.02KB
types (icon-key-migration.js) 4.26KB 1.63KB
types (index.js) 5.78KB 2.70KB
types (layout.js) 0.20KB 0.18KB
types (managed-by.js) 0.19KB 0.18KB
types (mobile.js) 5.00KB 2.39KB
types (navigation.js) 0.20KB 0.18KB
types (node-slots.js) 7.18KB 2.34KB
types (objectql.js) 0.20KB 0.18KB
types (overlay.js) 0.20KB 0.18KB
types (permissions.js) 2.52KB 1.31KB
types (plugin-scope.js) 0.20KB 0.18KB
types (product-blocks.js) 0.20KB 0.19KB
types (record-approval-decision.js) 0.20KB 0.20KB
types (record-components.js) 0.20KB 0.19KB
types (record-panels.js) 0.20KB 0.19KB
types (record-semantics.js) 1.28KB 0.67KB
types (registry.js) 0.20KB 0.18KB
types (reports.js) 0.20KB 0.18KB
types (select-option.js) 0.20KB 0.19KB
types (spec-report.js) 4.99KB 1.96KB
types (spec-ui-namespace.js) 0.20KB 0.19KB
types (strict-authoring-face.js) 19.93KB 7.26KB
types (system-fields.js) 3.33KB 1.54KB
types (theme.js) 6.28KB 2.87KB
types (ui-action.js) 8.48KB 3.50KB
types (views.js) 0.20KB 0.18KB
types (widget.js) 0.20KB 0.18KB

Size Limits

  • ✅ Core packages should be < 50KB gzipped
  • ✅ Component packages should be < 100KB gzipped
  • ⚠️ Plugin packages should be < 150KB gzipped

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

Contract review

Served-tier: TIER_DEFAULT
Head-sha: 3d521e2221a4e5f7299a5dcbabad3b4427f4e3db
Local-runs: none
Scope: packages/react/src/SchemaRenderer.tsx, packages/react/src/utils/localeMap.ts, packages/react/src/utils/unevaluatedExpression.ts, the two new pins + packages/react/src/utils/configBag.ts (isConfigBag), @objectstack/spec InlineLocaleMapSchema (installed 18.0.0-next.3, ui entry), packages/app-shell/src/console/blocks/productBlocks.tsx (pickLocalized reader)

The face owed is the Clause-②: yes declaration on the claim (6246422606, amended 6246775093) and on the PR body's first Clause-②: line. The prose faces (the changeset and content/docs/guide/expressions.md) are the ACCEPT's.

① Derived judgments

  1. What widens — right, exactly one shape.
    • evaluateConfigValueWith's data-object path (isDataObjectValue: a non-predicate key, a config bag, not an expression envelope) now branches on isInlineLocaleMap(value).
    • On a hit, each member goes through the same evaluator.evaluate a plain string on that key gets, and so against the same scope, configEvaluationScope.
    • Predicate-chain keys, expression envelopes and the params bag never reach the branch.
    • Every other config bag is still handed over as authored.
    • This is triage route 1 at 6246364337, "⛔ No walk of other data objects".
  2. The recogniser is the contract's — right. isInlineLocaleMap takes a config bag, requires every value to be a string, then asks InlineLocaleMapSchema.safeParse. That is the spec's definition, not a third one. InlineLocaleMapSchema is present in the ui entry of both 18.0.0-next.2 and next.3 (read in the packed tarballs), under @object-ui/react's floor ^18.0.0-next.1. Whether next.1 carries it is CI's spec-floors / spec-symbols answer, not re-run here.
  3. The result stays a locale map — right. mapLocaleMapMembers spells each result as a string (String(result ?? '')) and copies only on write, so a map with no hole keeps its identity (AGENTS.md [WIP] Enhance every detail of the designer #10). One divergence from the plain-string path is accepted: a member whose expression resolves to undefined becomes '' rather than undefined, because a map member must stay a string for pickLocalized.
  4. The diagnostic matches the evaluator — right. scanBag walks the same members through the same recogniser and reports a throwing one by its locale path (properties.title.zh-CN). The radius equality the module's header demands holds.
  5. The boundary the dev named — accepted, not a defect. A data object whose keys all parse as locale tags and whose values are all strings is a locale map to the spec, so its holes are now evaluated. That is the contract's own answer to "what is a locale map". The dev's source grep found no authored instance with a hole.
  6. Nothing else moves. No export, prop, type, locale key or spec key changes. localeMap.ts is module-internal (not re-exported from the entry).

② Semver level

  • @object-ui/react: minor is right: it is new evaluated behaviour on an existing shape, with no major (objectui AGENTS.md §9).
  • The bump agrees with the Clause-②: yes (widening) line on the PR body and in the changeset.

③ Boundary flags

  • The dev reported open_questions: [].
  • Deviations answered:
    • The widened file surface is ratified by the amended claim 6246775093.
    • The narrowed app-shell type-check, and doc-snippets / doc-examples NOT MEASURED: CI's check-runs judge them before the queue.
    • needs:contract-review was not hung: this record exists before ACCEPT, so no waiting marker is owed.
  • Out of scope, recorded and not filed:
    • the locale-tag-keyed data object (judgment 5);
    • node-level text keys (content on the node itself) still evaluate strings only. No producer has been measured, so this has no reach.

Implemented-by: claude/issue-12936-locale-map-holes
Reviewed-by: session_0188TsgPV8kQXfuRuKmkj2ks

VERDICT: PASS

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

席位核对 — ACCEPT · domain:ui seat 1 · session_0188TsgPV8kQXfuRuKmkj2ks · 2026-10-18T07:02Z

Reviewed on GitHub at head 3d521e2221a4e5f7299a5dcbabad3b4427f4e3db, against claim 6246422606 (amended 6246775093) on objectui#12936.

  1. Shape.

    • The PR is a draft against main and opens with Fixes #12936. A keyword scan of the whole body finds no other closing keyword beside a card number.
    • The assignee is sunhaolin.
    • check-governed-merges --pr reads NOT governed, at +548 / −8.
    • The 7 files sit inside the amended surface.
  2. Premise and diff, measured: triage route 1 as ruled. The branch sits only on the data-object path of evaluateConfigValueWith, and the recogniser is the spec's InlineLocaleMapSchema. Details are in the contract review below.

  3. Gates.

    • Check-runs on this head: 36, with 33 success and 3 skipped. Lint, Type Check, Repo Gates and all 16 Test shards are success.
    • Contract review at TIER_DEFAULT for the Clause-②: yes (widening) declaration: PASS on this head, record 6246784303.
  4. Prose checked against the diff. The changeset sentences:

    • "each member … is evaluated like a plain string on the same key: against record, current_user / user, page, the host's roots, and data on a node with an API binding": one evaluator, configEvaluationScope.
    • "(or its legacy props alias, or a block member evaluated with useConfigBagEvaluator)": both paths go through evaluateConfigValueWith, and the new pin covers the alias and evaluateConfigBagInScope.
    • "such as hero, now draws the bound value … with no change to the block": the app-shell pin; productBlocks.tsx is untouched.
    • "A map without a hole arrives as the same object": copy-on-write in mapLocaleMapMembers.
    • "a member whose expression throws … is now reported … by its locale": scanBag's locale branch.

    content/docs/guide/expressions.md "Localized Copy":

    • the element:text content example is an inline locale map under properties, which the spec admits for that key;
    • "every key is a locale tag (en, zh-CN, or default) and every value is a string" matches isInlineLocaleMap;
    • "Any other object under properties reaches the block as written" matches the unchanged data-object hand-over.
  5. Out of scope: both notes stay notes, as the contract review records:

    • a locale-tag-keyed data object, which is the contract's own definition of a locale map;
    • node-level text keys, for which no producer has been measured.
  6. Landing. Ready and auto-merge go through objectui's merge queue. On MERGED, Fixes #12936 closes the card, and the seat posts the landing note and strips pm:dispatched.

VERDICT: ACCEPT


Generated by Claude Code

@objectstack-fleet
objectstack-fleet Bot marked this pull request as ready for review October 18, 2026 07:03
@objectstack-fleet
objectstack-fleet Bot enabled auto-merge October 18, 2026 07:03
@objectstack-fleet
objectstack-fleet Bot added this pull request to the merge queue Oct 18, 2026
Merged via the queue into main with commit a7ae252 Oct 18, 2026
37 checks passed
@objectstack-fleet
objectstack-fleet Bot deleted the claude/issue-12936-locale-map-holes branch October 18, 2026 07:17
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

documentation Improvements or additions to documentation package: app-shell package: react tests

Projects

None yet

2 participants