Skip to content

fix: dates and numbers use the display locale across every @object-ui/i18n dependent, with one repo-wide machine-locale census (objectui#9909) - #10231

Merged
objectstack-fleet[bot] merged 23 commits into
mainfrom
claude/issue-9909-repo-wide-machine-locale-census
Sep 24, 2026
Merged

objectstack-fleet[bot] merged 23 commits into
mainfrom
claude/issue-9909-repo-wide-machine-locale-census

Conversation

@objectstack-fleet

@objectstack-fleet objectstack-fleet Bot commented Sep 24, 2026 •

Copy link
Copy Markdown
Contributor

Fixes #9909
Clause-②: yes

What this is

The one-time sweep of the machine-locale class across every package that depends on @object-ui/i18n, landing together with the ONE repo-wide census test the ruling on objectui#9786 (batch #194 item 4, letter B′, maintainer 「同意」 2026-09-20) asked for. ⛔ No ESLint rule and no new workflow: the census is an ordinary test in @object-ui/i18n, and it replaces (it is not added beside) plugin-detail's package-scoped census pin, which this PR deletes.

Every face below handed Intl no locale tag, an explicit undefined, or the 'default' pseudo-tag. None of those means "the user's locale": Intl reads each of them as the MACHINE's locale, which is neither of this repository's two locale channels. They now read useDisplayLocale() (tenant regional default, then the active UI language, then 'en'), and every plain helper takes the tag from its caller as a REQUIRED parameter (the formatImportJobTime shape), except where the helper is a published export, where the new parameter is optional and additive.

The census this PR reflects

  • Tree: origin/main 62597c588 (unchanged at the time of the final run), taken 2026-09-24T05:46Z.
  • Instrument: the repo's declared masker, scripts/js-comment-mask.mjs (self-test: 45 cases pass); nothing hand-rolled. Scope: non-test sources of every workspace package, then partitioned by the manifest rule below.
  • Masked vs raw: masked finds 150 locale-taking call sites, raw grep finds 162. The 12 extra raw hits are prose, one of them a comment in plugin-gantt that quotes a past repair of this very class.
  • Shapes judged: 53 machine-locale-shaped (45 bare, 8 explicit undefined), 1 disguised ('default'), 6 hard-coded literals. Plus a bounded reading for the half a source scan cannot see (optional-locale helpers called without one): 4 more sites found.
  • ⚠️ These figures describe that tree at that minute. The instrument that re-derives the population from now on is the census test itself (packages/i18n/src/__tests__/machineLocaleCensus-9909.test.ts), per AGENTS.md 完善设计器的每一个细节 #9.

The repo-wide census test

packages/i18n/src/__tests__/machineLocaleCensus-9909.test.ts, beside useDisplayLocale.ts, whose doc comment states the rule it enforces.

  • Population from the manifests, never listed: every package the pnpm-workspace.yaml globs expand to whose package.json names @object-ui/i18n in any dependency field. A package that gains the dependency is covered with no edit.
  • Refuses a call passing nothing, undefined, or 'default', and a hard-coded BCP-47 literal, unless DECLARED with file, expression (cited by content, never by line), exact count and reason.
  • Exact counts both ways: deleting a declared site without its entry is red, and a second copy of a declared expression is red.
  • The lit control is a negative: CommentThread.tsx's catch must be scanned AND declared.
  • Width guards (manifest read, population size, per-package sources, call-site floor; packages/i18n and packages/core must be OUT), plus a matcher self-test on a fixture.
  • @object-ui/core is outside by the ruling's rule (no @object-ui/i18n dependency, React-free by charter, and its declared contract for a caller with no locale in hand is "follow the runtime default"). Its two rows are repaired by threading below.

The runtime tripwire (recordLocaleArguments) moved from plugin-detail's differential pin into the private @object-ui/test-support, now also patching Number.prototype.toLocaleString (a number face never reaches the global Intl.NumberFormat) and counting 'default' as the machine locale. Every repaired surface is pinned with it: two declared locales (de-DE vs en, UI language en on both) must render differently, and every locale-taking call must receive the declared tag.

Per-site table

Verdicts: DEFECT = this defect; FALLBACK = deliberate fallback; N/A = not applicable. "(outside)" = not in the census population.

DEFECT, repaired (50)

Package Site (file · function or face) Repair Pin (differential + tripwire)
apps/console pages/developer/FlowRunsPage.tsx · fmtDate (runs table) required locale; useDisplayLocale() in the runs panel consoleFaces.displayLocale-9909
apps/console pages/system/ApprovalsInboxPage.tsx · formatDate (three tooltips) required locale same
apps/console ApprovalsInboxPage.tsx · formatPayloadValue epoch-ms date branch required locale, via payloadSummary same
apps/console ApprovalsInboxPage.tsx · formatPayloadValue number branch same same
apps/console ApprovalsInboxPage.tsx · formatPayloadValue ISO date-time branch same same
apps/console ApprovalsInboxPage.tsx · decisionAmountEntry display amount required locale (queue, sort, drawer) same
apps/console pages/system/AuditLogPage.tsx · formatDate (timestamp column) required locale same
app-shell console/organizations/manage/InvitationsPage.tsx · expiry useDisplayLocale() orgDates.displayLocale-9909
app-shell …/manage/MembersPage.tsx · join date same same
app-shell …/manage/AcceptInvitationPage.tsx · expiry same same
app-shell console/marketplace/MarketplacePackagePage.tsx · version date same MarketplacePackagePage.displayLocale-9909
app-shell console/ai/ConversationsSidebar.tsx · formatTimestamp older-than-a-week tail required locale aiFaces.displayLocale-9909
app-shell ConversationsSidebar.tsx · absoluteTimestamp tooltip required locale same
app-shell console/ai/BuildDebugDrawer.tsx · token count useDisplayLocale() same
app-shell views/RecordApprovalsPanel.tsx · formatDate (timeline) required locale RecordApprovalsPanel.displayLocale-9909
app-shell views/metadata-admin/AuditPanel.tsx · fmtTime required display locale (NOT the panel's UI-string locale, default 'en-US') metadataAdminFaces.displayLocale-9909
app-shell …/ResourceHistoryPage.tsx · formatWhen (HistoryPanel) required locale same
app-shell …/external/ExternalDatasourcePanel.tsx · formatSnapshot required locale same
app-shell …/external/SchemaBrowser.tsx · row estimate useDisplayLocale() same
app-shell …/previews/FlowRunsPanel.tsx · fmtTime (run start) required display locale same
app-shell …/previews/JobPreview.tsx · formatWhen (next fires; was explicit undefined) required locale same
plugin-charts AdvancedChartImpl.tsx · x-axis ISO-date tick, short span useDisplayLocale() chartFaces.displayLocale-9909
plugin-charts AdvancedChartImpl.tsx · x-axis ISO-date tick, long span same same
plugin-charts AdvancedChartImpl.tsx · formatYTick compact ticks same same
plugin-charts AdvancedChartImpl.tsx · single-value face same same
plugin-charts ChartContainerImpl.tsx · tooltip value same same
plugin-charts normalizeChartSchema.ts · formatterFor (spec format) required locale (module-internal) same
fields widgets/GridField.tsx · displayText currency branch spend the locale already passed GridField.displayLocale-9909
fields GridField.tsx · displayText numeric branch same same
fields GridField.tsx · read-only total displayLocale in scope same
fields GridField.tsx · line-items total same same
components custom/export-progress-dialog.tsx · processed count useDisplayLocale() displayLocale-9909 (components)
components export-progress-dialog.tsx · total count same same
components debug/DebugPanel.tsx · event time same same
core (outside) validation/validation-engine.ts · date_min default message ⚠️ engine-level only: optional ValidationContext.locale (types) is read when passed. No caller threads it yet, and no production code outside core imports ValidationEngine at this head, so the default message still formats in the runtime default wherever it is reached. (Seat correction, review record 5811064032.) validation-engine.displayLocale-9909 (the engine directly)
core (outside) validation-engine.ts · date_max default message same (engine-level only) same
plugin-form FormAnalytics.tsx · total submissions useDisplayLocale() formFaces.displayLocale-9909
plugin-form MasterDetailForm.tsx · money stack (was explicit undefined) same same
plugin-form occSave.tsx · formatVersionTime (conflict dialog) required locale same
plugin-chatbot AiPendingActionsInbox.tsx · formatRelative past-30-days tail required locale (its doc comment, which said the bare call "already localizes it", is corrected) chatbotFaces.displayLocale-9909
plugin-chatbot useObjectChat.ts · user message stamp useDisplayLocale() same
plugin-chatbot useObjectChat.ts · auto-response stamp same same
plugin-report ReportExportEngine.ts · HTML "Generated:" optional locale, default DISPLAY_LOCALE_LAST_RESORT; ReportViewer passes the display locale reportExportGenerated.displayLocale-9909
plugin-report ReportExportEngine.ts · PDF "Generated:" same same
plugin-dashboard DashboardRenderer.tsx · record-count badge useDisplayLocale() dashboardFaces.displayLocale-9909
plugin-dashboard recordFields.tsx · renderFieldValue currency branch ⭐ found by reading pass the displayLocale it was already handed same
plugin-dashboard recordFields.tsx · renderFieldValue date-format branch ⭐ found by reading same same
plugin-designer components/VersionHistory.tsx · version time useDisplayLocale() VersionHistory.displayLocale-9909
plugin-grid ObjectGrid.tsx · record-detail inferred currency ⭐ found by reading pass displayLocale (its date sibling already did) gridCurrencyFaces.displayLocale-9909
plugin-grid ObjectGrid.tsx · mobile card amount line ⭐ found by reading same same

⭐ = invisible to any source scan: the call passes an argument list that merely OMITS the tag to a helper whose locale is optional (formatCurrency, formatCompactCurrency, formatDate). Found by a bounded reading of every call to the optional-locale formatters in @object-ui/core / @object-ui/fields / @object-ui/i18n; pinned by the runtime tripwire.

DEFECT, NOT repaired here (1)

Package Site Why
plugin-ai (outside) NLQueryInput.tsx · query-history date The package has no locale channel at all: no @object-ui/i18n dependency and every visible string is hard-coded English. The repo's precedent is that an unwired component is wired WHOLE, not one face at a time (objectui#7173, after objectui#7142), and that needs a manifest and lockfile change this card does not own. Carried as a finding. The census catches it by itself: the moment a wiring PR adds the dependency, this exact site turns the census red until it is repaired in that PR.

FALLBACK, declared in the census with its reason (7 sites), plus 1 outside

Package Site Reason
collaboration ⭐ LIT CONTROL CommentThread.tsx · formatAbsoluteDate catch { return date.toLocaleDateString(); } The try already passes the session language; the catch fires only on the RangeError a structurally malformed tag raises, and restores the pre-localisation face instead of printing the raw ISO string. Repairing it would BE the defect. ⛔ Not touched.
plugin-detail InlineFieldInput.tsx · d.toLocaleDateString('en-CA') An ISO-8601 formatter feeding a native date input (input type=date), whose value is defined as YYYY-MM-DD.
plugin-gantt GanttView.tsx · task.start.toLocaleDateString('en-CA') (×2: double-click and context-menu edit) The same ISO formatter, seeding the inline editor's date inputs.
plugin-gantt GanttView.tsx · task.end.toLocaleDateString('en-CA') (×2) Same.
plugin-gantt GanttView.tsx · tzOffsetMs's new Intl.DateTimeFormat('en-US', …) A machine-read parser: formatToParts is read back through Number(), so the tag must guarantee Latin digits and a 24-hour cycle. Nothing is shown to a reader.
core (outside) utils/number-display.ts · formatDisplayNumber's catch retry with undefined The catch for a tag Intl itself rejected (a malformed tenant tag), retrying with every other option kept. Not in the census population.

N/A, declared in the census with its reason (5)

Package Site Reason
fields currency.ts · currencyFractionDigits probe Reads ISO-4217 fraction digits from resolvedOptions(); formats nothing.
components ui/calendar.tsx · data-day={day.date.toLocaleDateString()} An attribute value no reader sees, in a No-Touch upstream Shadcn file (AGENTS.md #7). ⛔ Not edited.
components ui/calendar.tsx · formatMonthDropdown toLocaleString("default", …) ⭐ newly seen The machine locale in disguise ('default'), in the same No-Touch file. Reached only under a dropdown captionLayout, which no first-party caller sets; formatters is the declared override for a wrapper in components/src/custom/. ⛔ Not edited.
apps/console sdui-tiers-preview.tsx · '$' + r.amount.toLocaleString() Demo page source inside a template literal, in a dev-server-only preview entry. Measured by reading the console's vite config: it declares no rollupOptions.input, so only index.html is a build entry (no build was run for this reading).
apps/console sdui-tiers-preview.tsx · 'Total: $' + total.toLocaleString() Same.

EXPRESSION rows read for the runtime half, judged NOT this defect (3)

Package Site Why
plugin-gantt GanttView.tsx · const dateLocale = language || undefined The || undefined leg is unreachable: useObjectTranslation() returns context?.language || i18n.language || 'en'. Measured with the tripwire on a provider-less ResourceWorkload mount: every call received 'en', none received undefined. Listed, not repaired. The comment beside it, which says the leg falls back to the browser locale, is false (Acceptance notes).
plugin-gantt ResourceWorkload.tsx · const locale = language || undefined Same measurement.
app-shell console/marketplace/InstalledListWidget.tsx · toLocaleString(language || undefined) Same useObjectTranslation() reasoning.

Contract changes (Clause-② at-tier review)

Additive only; nothing that compiled before stops compiling.

  1. @object-ui/types: ValidationContext gains an optional locale.
  2. @object-ui/plugin-report: exportReport(format, report, data, config?, locale?), exportAsHTML(report, data, config?, locale?), exportAsPDF(report, data, config?, locale?), each defaulting to DISPLAY_LOCALE_LAST_RESORT ('en'). ⛔ Deliberately not a ReportExportConfig member, since that type is authored report metadata.
  3. @object-ui/plugin-report: LiveExportOptions gains an optional locale, forwarded by exportWithLiveData.
  4. Module-level, not package-exported: plugin-charts's formatterFor(format, locale) now REQUIRES the locale.
  5. Private @object-ui/test-support (never published): new exports recordLocaleArguments, recordLocaleArgumentsAsync, isMachineLocale, LOCALE_TAKING_INTL_CONSTRUCTORS, type LocaleCall.

Evidence

  • Census ablation 1 (re-insert one bare call). node ../objectstack/scripts/ablation-replace.mjs turned GridField's numeric n.toLocaleString(locale) back into a bare call (anchor 1 → 0, blob bde59eed → 3e15e4fe). Census: 1 failed | 6 passed, naming the re-inserted GridField call in its computed diagnostic. Restored: blob == HEAD, git diff HEAD empty, census 7 passed. The first attempt used an anchor that missed; the tool refused to write, so it was a no-op and was re-run with the right anchor.
  • Census ablation 2 (the lit control). "Repairing" the CommentThread catch turns the census red on two tests: the lit control, and declared 1, found 0. Restored to HEAD.
  • Blanket ablation of every surface pin. All 37 repaired source files were put back to BASE (on-disk blob == BASE blob on 37/37), with a trap restoring from HEAD. Result: 17/17 files red, 131 failed | 49 passed. On each of the 43 surfaces the de-DE face, the differential and the tripwire are all red; the en face stays green by design (the runner is en-US, so that leg pins must-not-change). Restore: 37 paths == HEAD blob, git diff HEAD empty.
  • Single-site ablation (useObjectChat auto-response stamp only). The de face and the tripwire go red. The differential stays green, because the sibling user stamp still differs. That is the direction that was observed.
  • Type-check (pnpm --filter … type-check) passes for test-support, types, core, i18n, components, fields, plugin-charts, plugin-form, plugin-chatbot, plugin-report, plugin-dashboard, plugin-grid, plugin-designer, plugin-detail, app-shell and console, after a turbo build of the dependency closure.
  • Full suites of every touched package were run from the repo root and are green: i18n, test-support, core and types (451 files); fields (176); components (286); plugin-charts, form, chatbot, report, designer and detail (459); plugin-dashboard (121); plugin-grid (147); app-shell (286 + 465 files); console (107). Dependents are green too: plugin-list, view, kanban and calendar (226); plugin-timeline, gantt, tree, react, layout, collaboration, ai, map, markdown, editor, mobile, permissions and providers (280); scripts, examples and other small packages (317).
  • Final-head union at 689004ac: 19 pin, census and tripwire files, 221 tests green. check:control-bytes OK, check:new-line-citations 0 new, check-changeset-presence OK, check-hand-rolled-comment-mask OK, check-changeset-no-major OK. Also run: vi-mock-specifiers / inherit / override-shape, test-path-roots, phantom-deps, lint-coverage, type-check-coverage, unreferenced-sources, pending-changeset-literals, readme-exports (after building @object-ui/cli). All exit 0.
  • ESLint, narrowed to the 62 changed TS files: --no-inline-config, 62 files by the JSON count, 0 errors. Every warning is pre-existing (no-explicit-any and hooks rules on untouched lines, plus 4 pre-existing anys on lines this diff re-flowed). This is a narrowed run, not the repo-wide lint, which belongs to CI. The config enables no type-aware linting, so this diff cannot move a verdict in an untouched file.

Acceptance notes

  • Existing tests edited, and why: normalizeChartSchema.test.ts now passes 'en' to formatterFor instead of relying on the runner's locale. Three suites that count console.warn in provider-less mounts (AdvancedChartImpl.missingCategoryKey, AdvancedChartImpl.unprojectedSeriesDimension, useObjectChat.maxToolRoundtrips) now mount under an en I18nProvider: a component that reads the display locale makes react-i18next print its once-per-module NO_I18NEXT_INSTANCE notice on a provider-less first mount, and those spies were written to count only the component's own diagnostics.
  • ⚠️ Behaviour note: that same one-time react-i18next notice now also appears for a host that mounts one of these components with NO I18nProvider at all (the console always mounts one).
  • MarketplacePackagePage.tsx imports useDisplayLocale on its own line, because marketplace-preview-namespace-3546 pins that page's useObjectTranslation import by its literal line.
  • The pending objectui#9786 changeset named the deleted census file. Its prose is corrected, frontmatter untouched, which is the practice check-changeset-claims asks for. check-changeset-overwrite reports the edit (report-only, its "correcting a declaration on purpose" case).
  • ApprovalsInboxPage's relative-age tail formats with language (UI language) while this page's repaired faces use the display locale. Not machine-locale and not this class; noted as a channel mix on one page.
  • plugin-calendar's sub-views default locale = "default" (the disguised machine locale), but CalendarView always passes effectiveLocale and the sub-views are not exported. Unreachable today; noted.
  • The '¥' currency prefix hard-coded in GridField and MasterDetailForm, and plugin-timeline's locale = 'en' default, were noted by the earlier census and are unchanged.
  • @object-ui/core's formatDisplayNumber retry drops a malformed tag (machine locale), while plugin-report's formatNumberInDisplayLocale degrades to 'en': two answers to the same question. The disagreement is noted, not changed.
  • No package.json and no pnpm-lock.yaml change.

Session: https://claude.ai/code/session_01BA3nKVUwKQJf8DBxrSVtNC (the dispatch seat's session; this PR was implemented by the os-dev agent it dispatched).


Generated by Claude Code

…test-support

objectui#9909 applies objectui#9786's differential pin pattern to every
surface its sweep changes, so the tripwire that observed the argument each
locale-taking intrinsic received moves out of plugin-detail's pin into the
shared test-support index: one instrument, not a copy per package.

It now also patches Number.prototype.toLocaleString (a number face never
reaches the global Intl.NumberFormat) and counts the 'default' pseudo-tag,
which Intl resolves to the runtime default, as the machine locale. Its own
controls moved with it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01BA3nKVUwKQJf8DBxrSVtNC
…cale

displayText(c, value, locale) spent its locale on the temporal branch and
dropped it on the numeric one, and both total cells called toLocaleString()
with useDisplayLocale() already in scope, so one grid row read a date in the
session's convention beside an amount in the machine's (objectui#9909).

Pinned by a differential test: the same rows under a declared de-DE and en
session must read differently, and the runtime tripwire must see the
declared tag on every locale-taking call.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01BA3nKVUwKQJf8DBxrSVtNC
… in the display locale

The x-axis ISO-date ticks, the compact y-axis ticks, the single-value face,
the spec `format` formatter and the tooltip value handed Intl nothing or an
explicit undefined, i.e. the machine's locale (objectui#9909). They now read
useDisplayLocale(); formatterFor, a module-internal helper, takes the locale
as a REQUIRED parameter so no caller can forget it. Its existing unit cases
pass 'en' explicitly instead of relying on the runner's locale.

Pinned per surface by a differential test (declared de-DE vs en session)
plus the runtime tripwire.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01BA3nKVUwKQJf8DBxrSVtNC
… display locale

ExportProgressDialog's processed/total record counts and DebugPanel's event
timestamp called toLocaleString()/toLocaleTimeString() with no tag, i.e. in
the machine's locale (objectui#9909). Both now read useDisplayLocale().
Pinned per surface by a differential test plus the runtime tripwire.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01BA3nKVUwKQJf8DBxrSVtNC
…a threaded locale

The engine is a plain class with no hook to read, and it had no way to be
handed a display locale, so both default messages printed their bound with
toLocaleDateString() in the machine's locale (objectui#9909). The locale now
arrives on an optional ValidationContext.locale (@object-ui/types), the
parameter-threading shape formatDisplayNumber already uses in this package.

Pinned by a differential test (de-DE vs en threaded) plus the runtime
tripwire.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01BA3nKVUwKQJf8DBxrSVtNC
… the display locale

FormAnalytics' total-submissions count, MasterDetailForm's subtotal / tax /
grand-total stack and the OCC conflict dialog's "their save" time handed Intl
no tag or an explicit undefined, i.e. the machine's locale (objectui#9909).
They now read useDisplayLocale(); occSave's module-private
formatVersionTime takes the locale as a required parameter.

Pinned per surface by a differential test plus the runtime tripwire.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01BA3nKVUwKQJf8DBxrSVtNC
… the display locale

AiPendingActionsInbox's past-30-days tail and the time useObjectChat stamps on
a local-mode message called toLocaleDateString()/toLocaleTimeString() with no
tag, i.e. in the machine's locale (objectui#9909). The inbox tail's own doc
comment claimed the bare call "already localizes it"; it is corrected with
the repair. Both now read useDisplayLocale().

Pinned per surface by a differential test plus the runtime tripwire.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01BA3nKVUwKQJf8DBxrSVtNC
…display locale

Both export templates (HTML download and PDF print document) stamped
`new Date().toLocaleString()` into a file the reader keeps, i.e. the machine's
locale (objectui#9909). exportAsHTML / exportAsPDF / exportReport take a
trailing optional `locale` (the additive shape formatValue took in
objectui#10020), defaulting to DISPLAY_LOCALE_LAST_RESORT, never to a dropped
tag; ReportViewer passes useDisplayLocale(), and LiveExportOptions gains an
optional `locale` it forwards. The display locale stays OFF
ReportExportConfig, which is authored metadata.

Pinned per surface (print document, popup-blocked HTML download) by a
differential test plus the runtime tripwire.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01BA3nKVUwKQJf8DBxrSVtNC
…cy/date use the display locale

The "N records" badge called toLocaleString() with no tag, and
renderFieldValue - handed the display locale and spending it on its percent
branch - called formatCurrency(value, code) and formatDate(value, fmt)
without it, which those helpers read as "follow the runtime", i.e. the
machine's locale (objectui#9909). The last two are invisible to a source
census (the argument list merely omits the tag) and were found by reading.

Pinned per surface by a differential test plus the runtime tripwire.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01BA3nKVUwKQJf8DBxrSVtNC
…y locale

The record-detail panel's currency inference fallback and the mobile card's
amount line called formatCurrency / formatCompactCurrency without the
display locale already in scope (objectui#4541 threaded it into the date
branch one statement above and left the currency one). Both helpers read an
omitted tag as "follow the runtime", i.e. the machine's locale - a shape no
source census sees, found by reading (objectui#9909).

Pinned per surface by a differential test plus the runtime tripwire.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01BA3nKVUwKQJf8DBxrSVtNC
Each version row's time called toLocaleString() with no tag, i.e. in the
machine's locale (objectui#9909). It now reads useDisplayLocale(). Pinned by
a differential test plus the runtime tripwire.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01BA3nKVUwKQJf8DBxrSVtNC
…ay locale

Organization invitations / members / accept pages, the marketplace version
list, the AI conversation row (date tail and tooltip) and build-debug token
count, the record approvals timeline, and the metadata-admin audit, history,
external-datasource snapshot, schema-browser row estimate, flow-run start and
job next-fire faces all handed Intl no tag or an explicit undefined, i.e. the
machine's locale (objectui#9909). Components read useDisplayLocale(); the
module-private helpers take the locale as a required parameter. The
metadata-admin panels format in the DISPLAY locale, not their own UI-string
`locale` (which defaults to a hard-coded 'en-US').

Pinned per surface by five differential test files plus the runtime
tripwire.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01BA3nKVUwKQJf8DBxrSVtNC
…display locale

The approvals inbox's timestamp tooltips, queue and drawer amounts and payload
summary (number, epoch-ms date, ISO date-time), the audit log's timestamp
column and the flow runs table formatted with no tag, i.e. in the machine's
locale (objectui#9909). Their catch arms are for an unparseable value, not a
rejected tag, so the bare call was the primary leg. The page helpers now take
the display locale as a required parameter, supplied by useDisplayLocale().

Pinned per surface by a differential test plus the runtime tripwire.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01BA3nKVUwKQJf8DBxrSVtNC
…/i18n dependent

The ruling on objectui#9786 (letter B') made plugin-detail's census pin one
test covering every package that depends on @object-ui/i18n, landing with
objectui#9909's sweep. It moves here, beside useDisplayLocale, whose doc
comment states the rule it enforces; the plugin-detail copy is deleted, so
exactly one census test exists.

The population is read from the manifests (the pnpm-workspace globs, any
dependency field), so a new dependent is covered with no edit. It refuses a
bare, `undefined` or 'default' pseudo-tag call and a hard-coded BCP-47
literal unless DECLARED with file, expression, exact count and reason; the
lit control (CommentThread's catch fallback) must be scanned AND declared.
Width guards and a matcher self-test keep a silent narrowing loud. Comments
are masked with the repo's one declared masker. No ESLint rule and no new
workflow.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01BA3nKVUwKQJf8DBxrSVtNC
The single-value chart pin casts `metric` (a SINGLE_VALUE_CHART_TYPES member
the prop union does not name), the JobPreview pin passes the required
`type`, and the console pin drops an unused React import.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01BA3nKVUwKQJf8DBxrSVtNC
…nsus

The pending objectui#9786 changeset named plugin-detail's census pin by file;
objectui#9909 moves that pin into the one repository-wide census in
@object-ui/i18n and deletes the package copy, so the paragraph is corrected in
prose (frontmatter untouched), the practice check-changeset-claims asks for.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01BA3nKVUwKQJf8DBxrSVtNC
useObjectChat stamps two local-mode messages; the pin read only the user's.
It now reads both, so each of the two repaired call sites has a reading.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01BA3nKVUwKQJf8DBxrSVtNC
…tion import line

marketplace-preview-namespace-3546 asserts that page's bare
useObjectTranslation import by its literal line; useDisplayLocale now comes in
on a line of its own so that pin keeps reading what it was written to read.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01BA3nKVUwKQJf8DBxrSVtNC
AdvancedChartImpl and useObjectChat now read the display locale, and a
provider-less first useTranslation() prints react-i18next's
once-per-module NO_I18NEXT_INSTANCE notice. Three suites spy console.warn to
count the component's OWN diagnostics in provider-less mounts; they now mount
under an en I18nProvider, as the console always does, so the spy reads only
what it was written to read.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01BA3nKVUwKQJf8DBxrSVtNC
The four new pins that cast fixtures or mocks to `any` now use precise types
or `never` at the call site, so they add no no-explicit-any warnings.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01BA3nKVUwKQJf8DBxrSVtNC
@github-actions

github-actions Bot commented Sep 24, 2026 •

Copy link
Copy Markdown
Contributor

changeset-claim-re-read

⚠️ 15 pending changeset(s) describe a file this change touches

Their bodies publish verbatim into the CHANGELOG at the next release, so this is a request to re-read them against your diff — addressed here because you are the one seat that can answer it without re-deriving anything.

⛔ Nothing here blocks, and nothing here is a verdict on your change. This gate exits 0, is not a required context, and judges name resolution, never meaning: it asked whether a pending body names a file you touched. "Is this sentence still true?" is the one question it will not answer, and the one you are being asked to answer.

.changeset/4730-retire-dead-locale-key-batch.md

  • names ObjectGrid.tsx → packages/plugin-grid/src/ObjectGrid.tsx — edited by this change

    • Superseded twin vocabularies. cellRender.* and rowAction.* duplicated a grid.* vocabulary that won. RowActionMenu.tsx is fully i18n-wired and reads grid.openMenu / grid.edit / grid.delete; ObjectGrid.tsx reads grid.empty / grid.yes / grid.no / grid.systemFields. The twins had no reader on either side. - Labels that outlived their control. calendar.agenda labelled a view mode objectui#5740 retired from CalendarViewMode (now 'month' | 'week' | 'day'). home.quickActions.createApp*, layout.systemNav.createApp, actionDialog.defaultActionTitle / .ok and grid.bulk.selectPlaceholder sit in namespaces whose consumers are live and wired but demonstrably read other siblings. - Surfaces that left the product. map.* is the strongest form: @object-ui/plugin-map declares no @object-ui/i18n dependency and contains no t() call at all, so it cannot consume a locale string. home.stats.* and recordDetail.viewersTooltip name surfaces nothing renders.

.changeset/5876-one-lookup-predicate.md

  • names recordFields.tsx → packages/plugin-dashboard/src/recordFields.tsx — edited by this change

    computeLookupExpand in ObjectDataTable.tsx carried its own isLookup, byte-identical to the exported isLookupType in recordFields.tsx after objectui#5692 pointed both at @object-ui/core's EXPANDABLE_FIELD_TYPES. Nothing kept them aligned: a future edit to either — a member added, the retirement gate moved — would have re-forked the $expand decision from the predicate whose docblock claims to drive it. computeLookupExpand now calls isLookupType, which gains its first production consumer, and the module no longer imports the shared family or the retirement gate at all.

.changeset/6169-chatbot-authoring-face-type.md

  • names useObjectChat.ts → packages/plugin-chatbot/src/useObjectChat.ts — edited by this change

    Each was read-site-censused before being declared (renderer.tsx and/or useObjectChat.ts reads every one); none were dead, so none took the ADR-0049 retirement route. disabled — also present in the original intersection — is NOT redeclared: it is already BaseSchema.disabled (boolean | string), read generically for every node type, and redeclaring it here would have narrowed away the inherited expression-string case.

.changeset/6349-types-internal-name-collisions-batch-2.md

  • names data-protocol.ts → packages/types/src/data-protocol.ts — edited by this change

    ValidationFunction — renamed to FieldValidationFunction in field-types.ts. data-protocol.ts declares (value, context?: ValidationContext) => boolean | string; field-types.ts declared (value) => boolean | string | PromiseANGLE-BRACKETS(boolean | string). They disagree at both ends of the arrow — different parameter lists, and a Promise return that the data-protocol signature does not admit — so field-types' is not assignable to data-protocol's in the direction that matters. data-protocol.ts had said so in prose ("may differ from similarly named validation function types in other packages (e.g., in field-types)") for as long as both existed. The published names ValidationFunction (data-protocol's) and FieldValidationFunction (field-types') are unchanged.

.changeset/6597-retire-fieldmeta-referenceto.md

  • names plugin-grid/src/ObjectGrid.tsx → packages/plugin-grid/src/ObjectGrid.tsx — edited by this change

    No authoring story survived the search either. ObjectGrid's own relational-meta pass-through (applyRelationalMeta, plugin-grid/src/ObjectGrid.tsx) copies reference_to / reference / display_field / etc. from the SCHEMA field def only, at all three of its call sites — never from an authored column override. No doc, example, or fixture in this repo shows a table column pinning a lookup's target away from what its schema field already says. Under the maintainer's standing startup-stage rule (2026-08-27: deprecated/alias spellings retire immediately, no transition windows), no measured demand selects withdraw.

.changeset/6625-retire-fieldmeta-decimals.md

  • names GridField.tsx → packages/fields/src/widgets/GridField.tsx — edited by this change

    buildFieldMeta computed decimals: overrides.decimals ?? meta?.decimals ?? meta?.scale on every call and the value reached nothing. Re-measured on this branch's base (efdc6c62): zero .decimals member reads across @object-ui/fields, @object-ui/i18n, @object-ui/components, @object-ui/core and plugin-dashboard itself — the only non-comment occurrence was the write being removed here. The positive control in the same query shape fires: .scale member reads hit NumberField.tsx, GridField.tsx and fields/src/index.tsx. So the zero is a finding, not a broken query. The overrides.decimals ?? head of that chain had already lost its only feeder when objectui#6425's ruling removed the authored read from ObjectDataTable.enrich(); RecordDetailDrawer, the only other buildFieldMeta caller, passes no overrides at all. Both halves retire together, so the key leaves in one move.

.changeset/6874-retire-titleformat.md

  • names plugin-dashboard/src/recordFields.tsx → packages/plugin-dashboard/src/recordFields.tsx — edited by this change

    plugin-dashboard/src/recordFields.tsx had already recorded this exact measurement as its reason for not copying the key into that seam, so it was a measured no-op in two seams and retired from only one. Same defect class as objectui#6625 (FieldMeta.decimals), objectui#6597 (FieldMeta.referenceTo) and objectui#6711 (reference_to_field), and the same disposition as objectui#6711 on this very list.

.changeset/6896-retire-chart-inline-data.md

  • names packages/plugin-charts/src/normalizeChartSchema.test.ts → packages/plugin-charts/src/normalizeChartSchema.test.ts — edited by this change

    Pinned in packages/types/src/__tests__/chart-inline-data-retired.test.ts — both channels, the announcement itself, and a counter-probe that builds the deletion this retirement did not choose and measures the contrast in the same run — and in packages/plugin-charts/src/normalizeChartSchema.test.ts, where the categories read now has behaviour coverage it never had.

.changeset/7397-remove-duplicate-chart-primitives.md

  • names packages/plugin-charts/src/ChartContainerImpl.tsx → packages/plugin-charts/src/ChartContainerImpl.tsx — edited by this change

    • What breaks, by specifier: import { ChartContainer, ChartTooltip, ChartTooltipContent, ChartLegend, ChartLegendContent, ChartStyle } from '@object-ui/components' and import type { ChartConfig } from '@object-ui/components' no longer resolve — TS2305 at build time, undefined at runtime. They were reachable through two export * hops (src/index.ts → ./ui → ./chart), so this is a real removal from the published surface, not a tidy-up of dead code. - Not affected: ChartSkeleton — the chart-area loading placeholder in src/custom/view-skeleton.tsx — is a different symbol and stays exported. @objectstack/spec/ui still owns the authored-chart ChartConfig; only the per-series style map published from this package is gone. @object-ui/plugin-charts calls its own map ChartContainerConfig, so the two names no longer collide. - Why the copy had to go rather than be fixed in place: it duplicated packages/plugin-charts/src/ChartContainerImpl.tsx and carried the label-resolution hole objectui#7248 had already fixed there. ChartLegendContent resolves a label as config[nameKey || item.dataKey || 'value'] while rendering the colour swatch unconditionally, so a legend entry whose config lookup misses paints an anonymous coloured dot — on a scatter that reads as a data point drawn outside the plot area, which is exactly how objectui#7248 was reported. Two copies of one primitive is how a fixed bug returns; consumers importing from @object-ui/components were getting the unfixed one. - Why not re-export the plugin's copy from here instead: @object-ui/plugin-charts depends on @object-ui/components (workspace:*), so the dependency direction forbids it. - Consumer census: zero in-repo importers, measured with a lit control — no file under apps/**, examples/** or packages/** imported any of these names from @object-ui/components. plugin-charts reaches its own copy by relative path. The hotcrm and cloud repositories could not be read from the seat that made this change (HTTP 403), so no claim is made about them.

.changeset/7546-chart-series-keys-declared.md

  • names AdvancedChartImpl.tsx → packages/plugin-charts/src/AdvancedChartImpl.tsx — edited by this change

    Every one of the six is read by normalizeSeries (@object-ui/plugin-charts, normalizeChartSchema.ts:242-255) and does real work in AdvancedChartImpl.tsx — label names the legend entry, variant === 'comparison' selects the muted overlay, opacity / dashArray set stroke and fill, stack becomes Recharts' stackId, yAxis binds the secondary axis. Any consumer of the parse output — objectui check / objectui validate via safeValidateSchema, a JSON schema derived from the mirror, or any pipeline that keeps parse()'s result — lost them outright.

.changeset/7762-object-grid-export-options-bare-array-refusal.md

  • names ObjectGrid.tsx → packages/plugin-grid/src/ObjectGrid.tsx — edited by this change

    What was measured, on this branch's base. The mirror declared NO exportOptions member at all, and BaseSchema is .passthrough(), so ObjectGridSchema.safeParse({ type: 'object-grid', objectName: 'accounts', exportOptions: ['csv', 'xlsx'] }) returned success: true with the array back VERBATIM — as did { formats: ['csv', 'pdf'], compression: 'gzip' }. Nothing on the render path parses, and ObjectGrid.tsx reads schema.exportOptions?.formats and only that, so the authored array then lost SILENTLY to the ['csv', 'json'] default: the useEffect that warns about dropped formats reads .formats too and returns early when it is absent, while !!schema.exportOptions kept the export button on screen. An author declared ['csv', 'xlsx'] and got csv/json with no error, no warning and no console line. The two authoring faces disagreed in the direction opposite to objectui#6956's: the TypeScript interface already declared the object form only, so TS refused what zod admitted.

.changeset/9722-bulk-executor-datasource-face.md

  • names ObjectGrid.tsx → packages/plugin-grid/src/ObjectGrid.tsx — edited by this change

    • ObjectGrid.tsx → RecordDetailPanel: removing it type-checks GREEN. It was paying for nothing — both sides already declare the same DataSource | undefined from @object-ui/types. Removed outright. - ObjectGrid.tsx → BulkActionDialog: removing it reddens, and it was paying for TWO things at once — the optional-vs-required arm (the grid declares dataSource?: DataSource, the dialog demands one) AND the bulk-door contravariance. Only the first still needs erasing, so it is now a non-null assertion: today's runtime behaviour is preserved exactly, and any future drift of the face reddens at that site instead of passing silently.

.changeset/9853-grid-non-positive-page-size.md

  • names ObjectGrid.tsx → packages/plugin-grid/src/ObjectGrid.tsx — edited by this change

    Refuse a non-positive pageSize at all three of ObjectGrid.tsx's read points, instead of giving two different answers for one authored value (objectui#9853).

.changeset/dashboard-expandable-family-convergence-5692.md

  • names recordFields.tsx → packages/plugin-dashboard/src/recordFields.tsx — edited by this change

    plugin-dashboard's two private copies of the reference-bearing field family now read @object-ui/core's published EXPANDABLE_FIELD_TYPES instead of restating it — LOOKUP_TYPES in recordFields.tsx and the inline disjunction inside computeLookupExpand in ObjectDataTable.tsx. Both carry the identity pin the already-converged consumers carry, so a member-identical private copy fails rather than quietly re-forking the table.

.changeset/uniqueness-deprecation-jsdoc-4765.md

  • names packages/types/src/data-protocol.ts → packages/types/src/data-protocol.ts — edited by this change

    Corrects the @deprecated prescription on UniquenessValidation in packages/types/src/data-protocol.ts, which pointed authors at spellings the platform no longer accepts (objectui#4765).

Read the paragraph, not the line: both false halves of the objectui#8617 claim sat in one paragraph, and correcting either alone would have left it asserting the same wrong thing.

If a claim did go false, correct the body. That is precedented and prose-only, frontmatter untouched; check-changeset-overwrite.mjs will report the correction as its own case 2 ("correcting a declaration on purpose … legitimate"), which is the intended shape — one gate asks for the read, the other records the write.

Not covered, stated so nobody reads this as more: a born-false claim that spells no line address at all (objectui#9495 coordinated one by ORDINAL — "a grep finds that member first" — and deciding that means reading what the sentence means), a claim spelled as a symbol or a package rather than a backticked file name, and a file named ambiguously.

Angle-bracketed names in the quoted prose above are rewritten as ANGLE-BRACKETS(name): GitHub deletes tag-shaped fragments from a stored body, and a quote that silently loses the identifier it is about is worse than a visible repair.

Compared the checked-out tree with f4f1f4552 (merge-base with origin/main): 63 file(s) changed outside .changeset/, read against 1262 pending declaration(s) that publish a body (1830 pending in total). · run

@github-actions

Copy link
Copy Markdown
Contributor

✅ Console Performance Budget

Metric Value Budget
Eager closure (gzip, 329 chunks) 3035.8 KB 3104.5 KB
Main entry chunk (gzip) 147.5 KB 350 KB
Entry file index-DvOcpoaY.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) 16.68KB 6.20KB
app-shell (runtime-config.js) 20.68KB 7.36KB
app-shell (types.js) 0.01KB 0.04KB
app-shell (urlParams.js) 10.06KB 3.86KB
auth (ActiveOrganizationStorage.js) 25.05KB 9.16KB
auth (AuthContext.js) 0.31KB 0.24KB
auth (AuthGuard.js) 2.07KB 1.00KB
auth (AuthProvider.js) 40.18KB 10.59KB
auth (AuthShell.js) 3.49KB 1.40KB
auth (ForgotPasswordForm.js) 12.21KB 3.45KB
auth (LoginForm.js) 18.15KB 5.39KB
auth (PreviewBanner.js) 0.90KB 0.50KB
auth (RegisterForm.js) 6.65KB 2.22KB
auth (SocialSignInButtons.js) 9.61KB 3.89KB
auth (UserMenu.js) 3.41KB 1.23KB
auth (auth-gate-events.js) 1.29KB 0.66KB
auth (authStyles.js) 5.04KB 1.72KB
auth (createAuthClient.js) 40.21KB 10.80KB
auth (createAuthenticatedFetch.js) 8.46KB 3.43KB
auth (index.js) 3.19KB 1.44KB
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) 26.08KB 7.56KB
collaboration (LiveCursors.js) 3.17KB 1.27KB
collaboration (PresenceAvatars.js) 6.49KB 2.64KB
collaboration (PresenceProvider.js) 2.79KB 1.13KB
collaboration (index.js) 1.68KB 0.73KB
collaboration (useCollaborationTranslation.js) 6.05KB 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) 546.87KB 130.98KB
core (index.js) 8.94KB 3.59KB
create-plugin (index.js) 27.94KB 9.51KB
data-objectstack (index.js) 222.47KB 61.83KB
fields (index.js) 252.82KB 63.78KB
i18n (LocalizationContext.js) 1.76KB 0.96KB
i18n (builtinAggregateLabels.js) 0.86KB 0.49KB
i18n (currency.js) 1.22KB 0.64KB
i18n (fallbackInterpolation.js) 6.25KB 2.77KB
i18n (i18n.js) 8.87KB 3.64KB
i18n (index.js) 5.22KB 2.26KB
i18n (pickLocalized.js) 9.86KB 3.95KB
i18n (provider.js) 33.36KB 10.88KB
i18n (useDisplayLocale.js) 2.85KB 1.45KB
i18n (useObjectLabel.js) 34.34KB 9.17KB
i18n (useSafeTranslation.js) 5.60KB 2.33KB
layout (index.js) 39.02KB 11.00KB
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) 2.53KB 0.85KB
mobile (useResponsive.js) 0.72KB 0.42KB
mobile (useSpecGesture.js) 5.52KB 2.10KB
mobile (useTouchTarget.js) 1.01KB 0.54KB
permissions (MePermissionsProvider.js) 13.52KB 4.88KB
permissions (PermissionContext.js) 0.31KB 0.25KB
permissions (PermissionGuard.js) 0.89KB 0.45KB
permissions (PermissionProvider.js) 6.24KB 2.16KB
permissions (discardProofCache.js) 1.04KB 0.55KB
permissions (evaluator.js) 8.39KB 3.10KB
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) 14.81KB 3.63KB
plugin-calendar (index.js) 51.44KB 14.62KB
plugin-charts (index.js) 71.82KB 20.13KB
plugin-chatbot (index.js) 198.27KB 47.18KB
plugin-dashboard (index.js) 133.00KB 35.19KB
plugin-designer (index.js) 215.98KB 44.34KB
plugin-detail (index.js) 257.23KB 66.93KB
plugin-editor (index.js) 2.23KB 1.05KB
plugin-form (index.js) 143.99KB 36.84KB
plugin-gantt (index.js) 167.99KB 41.37KB
plugin-grid (index.js) 214.65KB 58.60KB
plugin-kanban (index.js) 48.71KB 15.17KB
plugin-list (index.js) 113.53KB 27.99KB
plugin-map (index.js) 21.74KB 7.07KB
plugin-markdown (index.js) 13.88KB 4.80KB
plugin-report (index.js) 43.55KB 11.99KB
plugin-timeline (index.js) 30.68KB 8.95KB
plugin-tree (index.js) 10.58KB 3.72KB
plugin-view (index.js) 85.18KB 21.05KB
providers (DataSourceProvider.js) 0.75KB 0.39KB
providers (MetadataProvider.js) 1.37KB 0.59KB
providers (ThemeProvider.js) 1.90KB 0.85KB
providers (UploadProvider.js) 11.66KB 3.50KB
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) 106.60KB 35.16KB
react (data-invalidation.js) 5.05KB 2.08KB
react (index.js) 4.63KB 2.18KB
react (schema-input.js) 4.25KB 2.04KB
react (spec-input.js) 0.20KB 0.18KB
sdui-parser (body-dialect.js) 4.38KB 1.98KB
sdui-parser (codegen.js) 6.58KB 2.74KB
sdui-parser (dashboard-widget-options.js) 3.08KB 1.30KB
sdui-parser (index.js) 5.74KB 2.54KB
sdui-parser (input-type.js) 2.84KB 1.40KB
sdui-parser (kanban-quick-add.js) 3.89KB 1.87KB
sdui-parser (parse.js) 25.28KB 7.80KB
sdui-parser (provenance.js) 3.66KB 1.82KB
sdui-parser (types.js) 0.28KB 0.23KB
sdui-parser (validate.js) 15.71KB 5.30KB
types (ai.js) 4.11KB 2.06KB
types (api-types.js) 0.20KB 0.18KB
types (app.js) 2.87KB 1.00KB
types (base.js) 0.20KB 0.18KB
types (blocks.js) 0.20KB 0.18KB
types (complex.js) 2.93KB 1.49KB
types (crud.js) 0.20KB 0.18KB
types (dashboard-filter-alias.js) 6.23KB 2.74KB
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) 0.20KB 0.18KB
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) 4.74KB 2.25KB
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 (objectql.js) 0.20KB 0.18KB
types (overlay.js) 0.20KB 0.18KB
types (permissions.js) 0.20KB 0.18KB
types (plugin-scope.js) 0.20KB 0.18KB
types (record-components.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) 5.05KB 1.93KB
types (spec-ui-namespace.js) 0.20KB 0.19KB
types (strict-authoring-face.js) 17.15KB 6.32KB
types (system-fields.js) 3.33KB 1.54KB
types (theme.js) 6.28KB 2.87KB
types (ui-action.js) 8.11KB 3.32KB
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: CONTRACT_REVIEW_TIER
Head-sha: 689004ac

Rendered by an isolated review subagent spawned by this seat and fed only the card, the ruling 5749112626, the PR and the two trees. Its transcript stamp, verbatim: 「You are powered by the model named Fable 5.1. The exact model ID is claude-fable-5-1.」 Adopted by this seat.

① Derived judgments

  • Published surface, all additive: @object-ui/types ValidationContext.locale?; @object-ui/plugin-report exportReport / exportAsHTML / exportAsPDF gain a trailing locale with default 'en' (DISPLAY_LOCALE_LAST_RESORT), and LiveExportOptions.locale? is forwarded. plugin-charts formatterFor(format, locale) now requires locale, but the package entry re-exports only normalizeChartSchema and its type ⇒ not addressable, not a break. The @object-ui/test-support exports are private ("private": true, changeset-ignored). None missed: every other function that gained a required locale is module-private, and no exported component or hook changed its props. RIGHT.
  • The census does what the ruling says: its population is read from the manifests (pnpm-workspace.yaml globs, every manifest naming @object-ui/i18n in any dependency field ⇒ 22 packages; i18n and core asserted OUT). Width guards are in place. Run against origin/main it would report 44 undeclared sites across exactly the ten in-population packages, and 0 at head. It uses the repo's js-comment-mask.mjs and has a fixture control. There are 10 exemptions, each with a file, a content-cited expression, an exact count checked both ways and a reason. The lit control must be scanned and declared, and it is. core is outside by the ruling's letter. Its residual — core hosts the shared formatters, so a new bare call there is seen only by a dependent's tripwire pin — is noted. Also noted: Intl.NumberFormat([]) classifies as expression.
  • Repairs: 13 files across 10 packages were spot-checked. Each threads the DISPLAY locale (useDisplayLocale() or a locale parameter fed from it); none uses a hard-coded tag or undefined. Memo dependencies were updated. The four rows found by reading (plugin-dashboard renderFieldValue, plugin-grid ObjectGrid) are real defects and are repaired. RIGHT.

② Semver level

types and plugin-report minor (additive public API), 13 others patch — RIGHT. There is no major, and all of them sit in one fixed group. The prose-only edit of .changeset/9786-… is TRUE, and nothing references the deleted census file. Two sentences of .changeset/9909-machine-locale-sweep.md are over-general, not false:

  1. 「every locale-taking call must receive the declared tag」 — the pins assert that NO call received the machine locale and that the surface's own calls received the declared tag; another declared tag (i18next's 'en') is tolerated by design.
  2. 「The metadata-admin panels … their own locale prop, which … defaults to 'en-US'」 — only AuditPanel declares that default.

③ Boundary flags

  • Check-runs at 689004ac: 43 total, all terminal — 42 green or skipped; 1 red = Spec Main Shape Gate on the three untouched test files ⇒ the objectui#10229 drift, ⛔ not this PR's.
  • Clause-②: yes is correct (two published surfaces changed, both additive).
  • plugin-ai NLQueryInput is left unrepaired soundly (no i18n dependency; the repo wires an unwired package whole). Nothing guards it until then ⇒ this seat has filed objectui#10232 as its carrier.
  • The pins in plugin-chatbot and plugin-designer import @object-ui/test-support without declaring it. It resolves only through the root vitest alias. This is a convention break caused by the PR's no-package.json fence; it is green, and recorded as a follow-up in the Acceptance notes.
  • The three console.warn-counting suites mounted under an en I18nProvider suppress only react-i18next's once-per-module NO_I18NEXT_INSTANCE notice and hide no component warning. It is a consumer-visible change for provider-less hosts, disclosed in Acceptance notes but ⚠️ not in the changeset.
  • The PR body lists the two packages/core rows as 「repaired」. The repair is engine-level: ValidationContext.locale exists, but no caller threads it, and no production code outside core imports ValidationEngine at head. ⇒ 「repaired」 over-claims; the changeset's own wording is accurate.

Implemented-by: claude/issue-9909-repo-wide-machine-locale-census
Reviewed-by: session_01BA3nKVUwKQJf8DBxrSVtNC

VERDICT: PASS

Seat note: prose is held to the same standard as objectui#10225 and objectui#10230. A patch round goes to the dev for the two changeset sentences in ② and for one changeset sentence disclosing the provider-less console notice. This seat corrects the PR body's core 「repaired」 wording itself. Landing waits on objectui#10229 regardless, and a new record will name the new head.


Generated by Claude Code

…ssert

Three review-tier corrections, prose only, frontmatter untouched:
- the pins assert that NO locale-taking call receives the machine's locale
  and that the surface's own calls receive the declared tag; another declared
  tag is tolerated by design (it said "every locale-taking call must receive
  the declared tag");
- only AuditPanel defaults its UI-string `locale` prop to 'en-US';
  HistoryPanel and FlowRunsPanel leave it optional;
- discloses react-i18next's once-per-module NO_I18NEXT_INSTANCE console
  notice for a host that mounts a newly display-locale-reading component
  with no I18nProvider.
Re-read against the diff: GridField's numeric cells are the list-mode and
computed-column cells, the chat stamp is two stamps, the dashboard branch is
the date-format one, the flow runs page includes its run detail, the census
refuses ANY undeclared site and counts declared ones exactly.

Claude-Session: https://claude.ai/code/session_01BA3nKVUwKQJf8DBxrSVtNC
@github-actions

Copy link
Copy Markdown
Contributor

✅ Console Performance Budget

Metric Value Budget
Eager closure (gzip, 329 chunks) 3035.8 KB 3104.5 KB
Main entry chunk (gzip) 147.5 KB 350 KB
Entry file index-DvOcpoaY.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) 16.68KB 6.20KB
app-shell (runtime-config.js) 20.68KB 7.36KB
app-shell (types.js) 0.01KB 0.04KB
app-shell (urlParams.js) 10.06KB 3.86KB
auth (ActiveOrganizationStorage.js) 25.05KB 9.16KB
auth (AuthContext.js) 0.31KB 0.24KB
auth (AuthGuard.js) 2.07KB 1.00KB
auth (AuthProvider.js) 40.18KB 10.59KB
auth (AuthShell.js) 3.49KB 1.40KB
auth (ForgotPasswordForm.js) 12.21KB 3.45KB
auth (LoginForm.js) 18.15KB 5.39KB
auth (PreviewBanner.js) 0.90KB 0.50KB
auth (RegisterForm.js) 6.65KB 2.22KB
auth (SocialSignInButtons.js) 9.61KB 3.89KB
auth (UserMenu.js) 3.41KB 1.23KB
auth (auth-gate-events.js) 1.29KB 0.66KB
auth (authStyles.js) 5.04KB 1.72KB
auth (createAuthClient.js) 40.21KB 10.80KB
auth (createAuthenticatedFetch.js) 8.46KB 3.43KB
auth (index.js) 3.19KB 1.44KB
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) 26.08KB 7.56KB
collaboration (LiveCursors.js) 3.17KB 1.27KB
collaboration (PresenceAvatars.js) 6.49KB 2.64KB
collaboration (PresenceProvider.js) 2.79KB 1.13KB
collaboration (index.js) 1.68KB 0.73KB
collaboration (useCollaborationTranslation.js) 6.05KB 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) 546.87KB 130.98KB
core (index.js) 8.94KB 3.59KB
create-plugin (index.js) 27.94KB 9.51KB
data-objectstack (index.js) 222.47KB 61.83KB
fields (index.js) 252.82KB 63.78KB
i18n (LocalizationContext.js) 1.76KB 0.96KB
i18n (builtinAggregateLabels.js) 0.86KB 0.49KB
i18n (currency.js) 1.22KB 0.64KB
i18n (fallbackInterpolation.js) 6.25KB 2.77KB
i18n (i18n.js) 8.87KB 3.64KB
i18n (index.js) 5.22KB 2.26KB
i18n (pickLocalized.js) 9.86KB 3.95KB
i18n (provider.js) 33.36KB 10.88KB
i18n (useDisplayLocale.js) 2.85KB 1.45KB
i18n (useObjectLabel.js) 34.34KB 9.17KB
i18n (useSafeTranslation.js) 5.60KB 2.33KB
layout (index.js) 39.02KB 11.00KB
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) 2.53KB 0.85KB
mobile (useResponsive.js) 0.72KB 0.42KB
mobile (useSpecGesture.js) 5.52KB 2.10KB
mobile (useTouchTarget.js) 1.01KB 0.54KB
permissions (MePermissionsProvider.js) 13.52KB 4.88KB
permissions (PermissionContext.js) 0.31KB 0.25KB
permissions (PermissionGuard.js) 0.89KB 0.45KB
permissions (PermissionProvider.js) 6.24KB 2.16KB
permissions (discardProofCache.js) 1.04KB 0.55KB
permissions (evaluator.js) 8.39KB 3.10KB
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) 14.81KB 3.63KB
plugin-calendar (index.js) 51.44KB 14.62KB
plugin-charts (index.js) 71.82KB 20.13KB
plugin-chatbot (index.js) 198.27KB 47.18KB
plugin-dashboard (index.js) 133.00KB 35.19KB
plugin-designer (index.js) 215.98KB 44.34KB
plugin-detail (index.js) 257.23KB 66.93KB
plugin-editor (index.js) 2.23KB 1.05KB
plugin-form (index.js) 143.99KB 36.84KB
plugin-gantt (index.js) 167.99KB 41.37KB
plugin-grid (index.js) 214.65KB 58.60KB
plugin-kanban (index.js) 48.71KB 15.17KB
plugin-list (index.js) 113.53KB 27.99KB
plugin-map (index.js) 21.74KB 7.07KB
plugin-markdown (index.js) 13.88KB 4.80KB
plugin-report (index.js) 43.55KB 11.99KB
plugin-timeline (index.js) 30.68KB 8.95KB
plugin-tree (index.js) 10.58KB 3.72KB
plugin-view (index.js) 85.18KB 21.05KB
providers (DataSourceProvider.js) 0.75KB 0.39KB
providers (MetadataProvider.js) 1.37KB 0.59KB
providers (ThemeProvider.js) 1.90KB 0.85KB
providers (UploadProvider.js) 11.66KB 3.50KB
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) 106.60KB 35.16KB
react (data-invalidation.js) 5.05KB 2.08KB
react (index.js) 4.63KB 2.18KB
react (schema-input.js) 4.25KB 2.04KB
react (spec-input.js) 0.20KB 0.18KB
sdui-parser (body-dialect.js) 4.38KB 1.98KB
sdui-parser (codegen.js) 6.58KB 2.74KB
sdui-parser (dashboard-widget-options.js) 3.08KB 1.30KB
sdui-parser (index.js) 5.74KB 2.54KB
sdui-parser (input-type.js) 2.84KB 1.40KB
sdui-parser (kanban-quick-add.js) 3.89KB 1.87KB
sdui-parser (parse.js) 25.28KB 7.80KB
sdui-parser (provenance.js) 3.66KB 1.82KB
sdui-parser (types.js) 0.28KB 0.23KB
sdui-parser (validate.js) 15.71KB 5.30KB
types (ai.js) 4.11KB 2.06KB
types (api-types.js) 0.20KB 0.18KB
types (app.js) 2.87KB 1.00KB
types (base.js) 0.20KB 0.18KB
types (blocks.js) 0.20KB 0.18KB
types (complex.js) 2.93KB 1.49KB
types (crud.js) 0.20KB 0.18KB
types (dashboard-filter-alias.js) 6.23KB 2.74KB
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) 0.20KB 0.18KB
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) 4.74KB 2.25KB
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 (objectql.js) 0.20KB 0.18KB
types (overlay.js) 0.20KB 0.18KB
types (permissions.js) 0.20KB 0.18KB
types (plugin-scope.js) 0.20KB 0.18KB
types (record-components.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) 5.05KB 1.93KB
types (spec-ui-namespace.js) 0.20KB 0.19KB
types (strict-authoring-face.js) 17.15KB 6.32KB
types (system-fields.js) 3.33KB 1.54KB
types (theme.js) 6.28KB 2.87KB
types (ui-action.js) 8.11KB 3.32KB
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: CONTRACT_REVIEW_TIER
Head-sha: 5139618a

This supersedes the record 5811064032 on 689004ac. It was rendered by the same isolated review subagent; transcript stamp, verbatim: 「You are powered by the model named Fable 5.1. The exact model ID is claude-fable-5-1.」 The delta is proven prose-only: git diff --stat 689004ac 5139618a is .changeset/9909-machine-locale-sweep.md alone (36+/18−), one commit, and the merge base is unchanged at 62597c58.

① Derived judgments

Carried over unchanged, because no source, test, manifest or lockfile moved. All published changes are additive (types ValidationContext.locale?; the plugin-report export functions' trailing locale and LiveExportOptions.locale?), and formatterFor's required locale is module-internal. The census reads its population from the manifests and turns red on any new undeclared site; each exemption carries an exact count checked both ways; the lit control must be scanned and declared. The 13 spot-checked repairs thread the display locale. RIGHT.

② Semver level

The frontmatter is unchanged and RIGHT (types and plugin-report minor, 13 patch, no major, one fixed group). The whole changeset was re-read sentence by sentence against the unchanged code. The two sentences flagged at 689004ac are rewritten and now TRUE: the pins sentence now states exactly what the pins assert (no machine-locale call, the surface's own calls carry the declared tag, another declared tag is tolerated), and the panels sentence names AuditPanel's 'en-US' default and the other two panels' optional prop. The new provider-less NO_I18NEXT_INSTANCE sentence is TRUE. (Nuance, not a falsity: for components that already called useObjectTranslation, the notice pre-existed.) No false or over-general sentence remains. .changeset/9786-… is byte-identical between the two heads and every sentence in it is TRUE.

③ Boundary flags

  • Check-runs at 5139618a: 43, all terminal — 42 green or skipped; 1 red = Spec Main Shape Gate on the three untouched test files ⇒ the objectui#10229 drift, ⛔ not this PR's.
  • Clause-②: yes is correct.
  • Carried over, and already dispositioned by this seat: plugin-ai NLQueryInput → objectui#10232. The core rows' 「repaired」 over-claim → PR body corrected by this seat to "engine-level only" (read back identical). The test-support import without a declared devDependency in plugin-chatbot and plugin-designer → Acceptance notes follow-up. The en I18nProvider in three warn-counting suites hides no component warning.

Implemented-by: claude/issue-9909-repo-wide-machine-locale-census
Reviewed-by: session_01BA3nKVUwKQJf8DBxrSVtNC

VERDICT: PASS

Landing: draft until Spec Main Shape Gate is green (objectui#10229). Then: ready → auto-merge.


Generated by Claude Code

@github-actions

Copy link
Copy Markdown
Contributor

✅ Console Performance Budget

Metric Value Budget
Eager closure (gzip, 329 chunks) 3035.8 KB 3104.5 KB
Main entry chunk (gzip) 147.5 KB 350 KB
Entry file index-DvOcpoaY.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) 16.68KB 6.20KB
app-shell (runtime-config.js) 20.68KB 7.36KB
app-shell (types.js) 0.01KB 0.04KB
app-shell (urlParams.js) 10.06KB 3.86KB
auth (ActiveOrganizationStorage.js) 25.05KB 9.16KB
auth (AuthContext.js) 0.31KB 0.24KB
auth (AuthGuard.js) 2.07KB 1.00KB
auth (AuthProvider.js) 40.18KB 10.59KB
auth (AuthShell.js) 3.49KB 1.40KB
auth (ForgotPasswordForm.js) 12.21KB 3.45KB
auth (LoginForm.js) 18.15KB 5.39KB
auth (PreviewBanner.js) 0.90KB 0.50KB
auth (RegisterForm.js) 6.65KB 2.22KB
auth (SocialSignInButtons.js) 9.61KB 3.89KB
auth (UserMenu.js) 3.41KB 1.23KB
auth (auth-gate-events.js) 1.29KB 0.66KB
auth (authStyles.js) 5.04KB 1.72KB
auth (createAuthClient.js) 40.21KB 10.80KB
auth (createAuthenticatedFetch.js) 8.46KB 3.43KB
auth (index.js) 3.19KB 1.44KB
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) 26.08KB 7.56KB
collaboration (LiveCursors.js) 3.17KB 1.27KB
collaboration (PresenceAvatars.js) 6.49KB 2.64KB
collaboration (PresenceProvider.js) 2.79KB 1.13KB
collaboration (index.js) 1.68KB 0.73KB
collaboration (useCollaborationTranslation.js) 6.05KB 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) 546.87KB 130.98KB
core (index.js) 8.94KB 3.59KB
create-plugin (index.js) 27.94KB 9.51KB
data-objectstack (index.js) 222.47KB 61.83KB
fields (index.js) 252.82KB 63.78KB
i18n (LocalizationContext.js) 1.76KB 0.96KB
i18n (builtinAggregateLabels.js) 0.86KB 0.49KB
i18n (currency.js) 1.22KB 0.64KB
i18n (fallbackInterpolation.js) 6.25KB 2.77KB
i18n (i18n.js) 8.87KB 3.64KB
i18n (index.js) 5.22KB 2.26KB
i18n (pickLocalized.js) 9.86KB 3.95KB
i18n (provider.js) 33.36KB 10.88KB
i18n (useDisplayLocale.js) 2.85KB 1.45KB
i18n (useObjectLabel.js) 34.34KB 9.17KB
i18n (useSafeTranslation.js) 5.60KB 2.33KB
layout (index.js) 39.02KB 11.00KB
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) 2.53KB 0.85KB
mobile (useResponsive.js) 0.72KB 0.42KB
mobile (useSpecGesture.js) 5.52KB 2.10KB
mobile (useTouchTarget.js) 1.01KB 0.54KB
permissions (MePermissionsProvider.js) 13.52KB 4.88KB
permissions (PermissionContext.js) 0.31KB 0.25KB
permissions (PermissionGuard.js) 0.89KB 0.45KB
permissions (PermissionProvider.js) 6.24KB 2.16KB
permissions (discardProofCache.js) 1.04KB 0.55KB
permissions (evaluator.js) 8.39KB 3.10KB
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) 14.81KB 3.63KB
plugin-calendar (index.js) 51.44KB 14.62KB
plugin-charts (index.js) 71.82KB 20.13KB
plugin-chatbot (index.js) 198.27KB 47.18KB
plugin-dashboard (index.js) 133.00KB 35.19KB
plugin-designer (index.js) 215.98KB 44.34KB
plugin-detail (index.js) 257.23KB 66.93KB
plugin-editor (index.js) 2.23KB 1.05KB
plugin-form (index.js) 143.99KB 36.84KB
plugin-gantt (index.js) 167.99KB 41.37KB
plugin-grid (index.js) 214.65KB 58.60KB
plugin-kanban (index.js) 48.71KB 15.17KB
plugin-list (index.js) 113.53KB 27.99KB
plugin-map (index.js) 21.74KB 7.07KB
plugin-markdown (index.js) 13.88KB 4.80KB
plugin-report (index.js) 43.55KB 11.99KB
plugin-timeline (index.js) 30.68KB 8.95KB
plugin-tree (index.js) 10.58KB 3.72KB
plugin-view (index.js) 85.18KB 21.05KB
providers (DataSourceProvider.js) 0.75KB 0.39KB
providers (MetadataProvider.js) 1.37KB 0.59KB
providers (ThemeProvider.js) 1.90KB 0.85KB
providers (UploadProvider.js) 11.66KB 3.50KB
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) 106.60KB 35.16KB
react (data-invalidation.js) 5.05KB 2.08KB
react (index.js) 4.63KB 2.18KB
react (schema-input.js) 4.25KB 2.04KB
react (spec-input.js) 0.20KB 0.18KB
sdui-parser (body-dialect.js) 4.38KB 1.98KB
sdui-parser (codegen.js) 6.58KB 2.74KB
sdui-parser (dashboard-widget-options.js) 3.08KB 1.30KB
sdui-parser (index.js) 5.74KB 2.54KB
sdui-parser (input-type.js) 2.84KB 1.40KB
sdui-parser (kanban-quick-add.js) 3.89KB 1.87KB
sdui-parser (parse.js) 25.28KB 7.80KB
sdui-parser (provenance.js) 3.66KB 1.82KB
sdui-parser (types.js) 0.28KB 0.23KB
sdui-parser (validate.js) 15.71KB 5.30KB
types (ai.js) 4.11KB 2.06KB
types (api-types.js) 0.20KB 0.18KB
types (app.js) 2.87KB 1.00KB
types (base.js) 0.20KB 0.18KB
types (blocks.js) 0.20KB 0.18KB
types (complex.js) 2.93KB 1.49KB
types (crud.js) 0.20KB 0.18KB
types (dashboard-filter-alias.js) 6.23KB 2.74KB
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) 0.20KB 0.18KB
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) 4.74KB 2.25KB
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 (objectql.js) 0.20KB 0.18KB
types (overlay.js) 0.20KB 0.18KB
types (permissions.js) 0.20KB 0.18KB
types (plugin-scope.js) 0.20KB 0.18KB
types (record-components.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) 5.05KB 1.93KB
types (spec-ui-namespace.js) 0.20KB 0.19KB
types (strict-authoring-face.js) 17.15KB 6.32KB
types (system-fields.js) 3.33KB 1.54KB
types (theme.js) 6.28KB 2.87KB
types (ui-action.js) 8.11KB 3.32KB
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
objectstack-fleet Bot marked this pull request as ready for review September 24, 2026 12:43
@objectstack-fleet
objectstack-fleet Bot added this pull request to the merge queue Sep 24, 2026
Merged via the queue into main with commit a78cd37 Sep 24, 2026
45 checks passed
@objectstack-fleet
objectstack-fleet Bot deleted the claude/issue-9909-repo-wide-machine-locale-census branch September 24, 2026 12:54
akarma-synetal pushed a commit to akarma-synetal/objectui that referenced this pull request Sep 28, 2026
…ui#7659) (objectstack-ai#10709)

Fixes objectstack-ai#7659
Clause-②: yes — public exports of `@object-ui/core` are removed

## What this is

Executes maintainer ruling A on the card (decision batch objectstack-ai#40, item 4,
recorded in card comment 5548579814): `validation-engine.js` and its
four exports (`ValidationEngine`, `defaultValidationEngine`, `validate`,
`validateFields`) are removed from `@object-ui/core` under ADR-0049
enforce-or-remove. The objectstack-ai#3110 carve-out sentence in
`packages/core/src/validation/index.ts` no longer names the module as a
kept member; it still covers `schema-validator.js`.

⚠️ This is a breaking narrowing of a published package's exports. The
seat applied `needs:contract-review` and removes it at landing after a
contract-review PASS; the dev writes no label.

## Changes

| file | change |
|---|---|
| `packages/core/src/validation/validation-engine.ts` | deleted |
| `packages/core/src/validation/__tests__/validation-engine.test.ts` and
`validation-engine.displayLocale-9909.test.ts` | deleted with it (the
engine's own tests) |
| `packages/core/src/validation/index.ts` | export line removed;
carve-out rewritten; the docblock's opening label `Phase 3.5: Validation
engine` now reads `Phase 3.5: Validation module` (the docblock ships
verbatim in `dist/validation/index.d.ts`) |
|
`packages/core/src/validation/__tests__/validation-engine-retired-7659.test.ts`
| new barrel-absence pin |
| `.changeset/7659-retire-validation-engine.md` | `'@object-ui/core':
minor`, BREAKING banner naming the four exports, replacement
`buildValidationRules` (`@object-ui/fields`), out-of-repo consumers NOT
MEASURED |
| `.changeset/6342-dead-migration-guide-pointers.md`,
`.changeset/9909-machine-locale-sweep.md` | the falsified sentence is
scoped "At this change" and carries a dated note; front matter md5
identical before and after (`291f1f84…`, `c9e77b57…`) |
| `content/docs/guide/troubleshooting.md` | section 5 named the removed
class; it now names `validateSchema` / `assertValidSchema` |
| `packages/types/src/data-protocol.ts` | `ValidationContext.locale` doc
comment rewritten, because it explained the member by the removed engine
(comment only) |
| `packages/plugin-timeline/src/renderer.tsx` | the `instanceof Date`
idiom pointer named the deleted file and `data-table.tsx`, which holds
no `instanceof Date` since `4758b33c2` (objectui#10625); it now points
at `toDay` in `components/src/renderers/form/calendar.tsx` (comment
only) |

### File-surface note for the seat

The last two rows are outside the claim's declared file surface. Both
are source comments this deletion makes false: one pointed at the
deleted path, the other explains a member by "the engine is a plain
class with no hook to read". The os-dev role file requires fixing what
the change falsifies, and the claim says to stop on a breach. The two
conflict, so I followed the role file and declared it here; the seat
ruled to keep both (option A). The renderer comment now points at the
idiom's live home, `toDay` in `calendar.tsx`: its other pointer,
`data-table.tsx`, holds no `instanceof Date` since `4758b33c2`. Both
edits are comment-only: eslint warning counts are the same as on the
base files (14 and 44), re-read on `renderer.tsx` after the repointing.

## Premise, re-measured at `origin/main` `bc97f9247`

- `validation-engine.ts` exports exactly four names (`export class
ValidationEngine`, `export const defaultValidationEngine`, `export async
function validate`, `export async function validateFields`).
`validation/index.ts` re-exported them with `export * from
'./validation-engine.js'`, and `packages/core/src/index.ts` re-exports
`./validation/index.js`.
- Production consumers across the whole tree (`packages/`, `apps/`,
`examples/`, docs): **zero**. Anchors: `\bValidationEngine\b`,
`defaultValidationEngine`, `\bvalidateFields\b` and the module path. For
the bare `validate`, the anchor is an import clause from
`@object-ui/core` that names it. Controls:
- the same import-clause matcher finds `validateSchema` imported from
`@object-ui/core` (`skills/objectui/guides/testing.md`);
  - nothing re-exports `@object-ui/core` wholesale;
- the one namespace import of core (`nonGridRowCeiling.test.tsx`) reads
two other names.
- `a78cd378c` (PR objectstack-ai#10231) touched only the engine's two
`toLocaleDateString` calls, its own new test and its changeset. That is
maintenance and adds no production caller.
- `validation-engine-stays-unwired.test.ts` guards
`ObjectValidationEngine` (`validators/`, objectstack-ai#3110), which is a different
module. It does not import `validation-engine.js`, it is unchanged, and
it is green in the core run below.
- `buildValidationRules` lives in `@object-ui/fields`, not in core. This
diff touches none of its files or its consumers.

## Pin: red on the base, green on the head, red under ablation

`validation-engine-retired-7659.test.ts` has two halves:

- **runtime:** none of the four names is an own key of `import * as
corePublicEntry from '../../index.js'`. Firing controls: the key count
is above 100, and `validateSchema` and `ObjectValidationEngine` are
functions.
- **compile time:** `@ts-expect-error` on
`import('../../index.js').ValidationEngine` and on the `typeof
import(...)` of the three value names. The controls resolve
`ObjectValidationEngine` and `validateSchema` through the same two query
shapes. This half is compiled by `tsconfig.test.json`: `tsc
--listFilesOnly` lists the file among the program's 173 core test files.

| leg | tree | vitest | `tsc -p tsconfig.test.json` |
|---|---|---|---|
| red | base `bc97f9247` + pin | `Tests 1 failed, 1 passed (2)`,
received `ValidationEngine`, `defaultValidationEngine`, `validate`,
`validateFields` | exit 2, 4 × `TS2578: Unused '@ts-expect-error'
directive` |
| green | head | `Test Files 2 passed (2)`, `Tests 4 passed (4)` (pin +
stays-unwired) | exit 0 |
| ablation | head `0b7251a3e` + base `validation-engine.ts` (blob
`67b32db01` = base blob) + the export line put back | `Tests 1 failed, 1
passed (2)`, same four names | exit 2, same 4 × TS2578 |

Ablation mechanics:
- The export line was put back with `ablation-replace.mjs`: anchor 1 →
0, replacement 0 → 1, blob `b3e4e60a9` → `02acae16a`.
- Restore was proven by blob equality with HEAD (`b3e4e60a9`) and an
empty `git diff HEAD`. The engine file was absent afterwards, and `git
status --porcelain` was empty.
- ⚠️ The first ablation attempt was a no-op. Its replacement contained
its anchor, so the tool refused it ("the anchor count moved 1 → 1") and
took no reading. It was re-anchored on a span the replacement does not
reproduce; only the second run is quoted.
- The pin reads `src` through a relative import. No `dist/` is on its
resolution path, so no rebuild leg applies.

Built-entry reading, as an extra check: after the full build,
`packages/core/dist/index.js` has 321 keys and none of the four names;
`validateSchema` and `ObjectValidationEngine` are functions.

## Round 2 (head `d6b433924`)

Contract review at `73bdb1c97` found two wording faults; both are fixed
in `d6b433924` (diff since `73bdb1c97`: 2 files, 3 insertions, 3
deletions):

- the `renderer.tsx` idiom pointer now names `toDay` in
`components/src/renderers/form/calendar.tsx`;
- the validation barrel's docblock opens with `Phase 3.5: Validation
module`, not `Validation engine`.

Gates at `d6b433924`:

- `pnpm --filter … type-check` on core, types and plugin-timeline: exit
0 each (after building the three packages' dependency closures).
- The pin plus `validation-engine-stays-unwired.test.ts`: `Test Files 2
passed (2)`, `Tests 4 passed (4)`.
- `check:control-bytes`: `✅ check-control-bytes: OK (scanned 8851
tracked text file(s); skipped 85 binary)`.
- `check:new-line-citations`: `VERDICT new-cross-file-line-citations: 0
new citation(s)`.
- `check-changeset-presence`: `✅ 7 source file(s) of 3 released
package(s) changed, and this change declares 1 changeset(s)`.
- eslint on the two edited files: 0 errors; warnings 0 (`index.ts`) and
14 (`renderer.tsx`), unchanged.
- Serial: fresh `origin/main` `383a34f52` was fetched into a private
ref. `git merge-tree --write-tree` is clean. Main has six commits since
this branch's base `bc97f9247`; none touches any of this PR's 11 files,
and none adds a reference to the four names.

## Gates (round 1, at head `73bdb1c97`)

- `pnpm check:readme-exports`: `✅ check-readme-exports: OK (43 tracked
README(s) under packages/ …; 543 of them self-imports judged (543 real,
0 wrong-path, 0 fabricated); 3370 export symbol(s) read from 37 of 40
tracked package(s) (39 carry a README) (0 unbuilt, 3 declare no types)
…`.
- Population: every tracked `packages/*/README.md`, judged against each
package's own built type entry, after `turbo run build
--filter='./packages/*'` (`Tasks: 39 successful, 39 total`).
- Tests (`pnpm exec vitest run`):
  - core: `Test Files 173 passed (173)`, `Tests 3504 passed (3504)`.
  - types: `Test Files 239 passed (239)`, `Tests 5269 passed (5269)`.
- plugin-timeline: `Test Files 31 passed (31)`, `Tests 346 passed
(346)`.
- `buildValidationRules` suites (`ObjectForm.locationRefusal`,
`ObjectForm.locationResidue`, `ObjectForm.locationStoredRange`,
`richtext-field-metadata-7083`, `LocationField.refusalDiagnostic`):
`Test Files 5 passed (5)`, `Tests 68 passed (68)`.
- `pnpm --filter … type-check` on core, types and plugin-timeline: exit
0 for each.
- Changeset gates:
- `check-changeset-presence`: `✅ 7 source file(s) of 3 released
package(s) changed, and this change declares 1 changeset(s)`.
  - `check-changeset-fixed` and `check-changeset-no-major`: ✅.
  - `check:pending-changeset-literals`: ✅.
- `check:changeset-claims` (report-only): it names 6349 and 4765 for
`data-protocol.ts`. I re-read both paragraphs and neither describes the
edited doc comment. Its self-contradiction reading is ✅.
- `check-changeset-overwrite` (report-only): it reports the two
corrected pending changesets, which is the case it is meant to report.
- `check:new-line-citations`: `VERDICT new-cross-file-line-citations: 0
new citation(s)`.
- `check:control-bytes`: `✅ check-control-bytes: OK (scanned 8851
tracked text file(s); skipped 85 binary)`.
- Docs gates:
  - `docs:check-links`: `Links are valid across 17 scan roots.`
  - `check:doc-snippets`: `674 of 674 block(s) judged, 0 failed`.
- `check:doc-types`, `check:doc-fences`, `check:doc-example-ids` and
`check:doc-example-readers`: ✅.
- `check:unreferenced-sources`: `OK Every shipped source file in every
covered package is reachable.` `check:test-path-roots`: ✅.
- Governed guard (`--test` on the 11 changed paths): `NOT GOVERNED`.
- Lint, narrowed to the four touched code files (`eslint --format
json`): 4 files, 0 errors. Warnings are 0, 0, 14 and 44, identical to
the base versions of the same files.
- Population: `eslint.config.js`, one root flat config with no
per-package config.
- Invariance: no type-aware linting (no `parserOptions.project` or
`projectService`), no import-resolution plugin, and no custom rule in
`eslint-rules/` reads the filesystem. This diff therefore cannot move a
verdict on an untouched file. Repo-wide `pnpm lint` is CI's.
- Serial at round 1: `origin/main` `1ea21c4e6` was fetched into a
private ref and `git merge-tree --write-tree` was clean. The current
reading (six commits since base, against `383a34f52`) is in the Round 2
section above.

## Acceptance notes

- `@object-ui/types` keeps the engine's type family:
`AdvancedValidationSchema`, `AdvancedValidationRule`,
`ValidationRuleType`, `ValidationFunction`, `AsyncValidationFunction`,
`ValidationContext`, `AdvancedValidationResult` and
`AdvancedValidationError`. At this change nothing in `packages/*/src`,
`apps/` or `examples/` reads them; the engine was their only reader. The
ruling covers the four core exports only, so the types stay. Retiring
them would be a separate public-type removal (Clause-② again); the seat
filed it as objectui#10719, and this PR does not touch it.
- The section banner above those types in `data-protocol.ts` still reads
"Phase 3.5: ValidationSchema - Complete Validation Engine". I left it:
it is a phase label and belongs to the same follow-up.
- Section 5 of `troubleshooting.md` also said the validation module
"uses Zod schemas from `@object-ui/types`", but `schema-validator.ts`
imports no Zod. That was the sentence naming "the validation engine", so
it was rewritten with the rest of the paragraph.
- `ValidationContext.locale` (added by PR objectstack-ai#10231, still pending in
`9909-machine-locale-sweep.md`) stays declared with no reader in core.
The dated note in that changeset says so.

---
_Generated by [Claude
Code](https://claude.ai/code/session_014mXUNuFomfj24w7s1pZzhN)_

---------

Co-authored-by: Claude <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment