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

fix(fields,core): every percent face scales by the field's declared storage; the magnitude guess retires (objectui#11475) - #11490

Merged
objectstack-fleet[bot] merged 4 commits into
mainfrom
claude/issue-11475-percent-declared-storage
Oct 2, 2026
Merged

objectstack-fleet[bot] merged 4 commits into
mainfrom
claude/issue-11475-percent-declared-storage

Conversation

@objectstack-fleet

Copy link
Copy Markdown
Contributor

Fixes #11475

Clause-②: yes

Every percent face now scales a stored value at the storage its field declares: the spec's percentScaleOf (@objectstack/spec/data), which says a fraction unless the field declares a max above 1. The read-only form already worked this way. percentDisplayValue's magnitude guess, which multiplied a value strictly between -1 and 1 by 100 and passed everything else through, is gone. A face that holds no field states its storage explicitly. Before this change, one stored value showed two percentages: at 6007dd4e4 the read-only form and the list cell read the card's three rows as 100% / 1%, 150.0% / 1.5% and 0.5% / 50.0%.

Contract notes

For the at-tier review. Both exports are released on @object-ui/core and @object-ui/fields. The changeset is minor and carries the BREAKING banner.

  • FROM percentDisplayValue(value) TO percentDisplayValue(value, percentScale) (@object-ui/core). percentScale is the spec's PercentScale ('fraction' | 'whole'), which core already re-exports. Any other value throws a TypeError; it no longer falls silently to one branch.
  • FROM formatPercent(value, precision, locale) TO formatPercent(value, percentScale, precision, locale) (@object-ui/fields). The storage comes second because it is a required argument.
  • NEW percentCellScale(field) (@object-ui/fields): the storage the percent cell reads. It returns percentScaleOf({ type: 'percent', max }), which always gives an answer, except for progress, which is stated 'whole'. The spec answers undefined for progress, and its only editor (SliderField) stores the slider position on a 0–100 range. Every face that renders the cell's number for the same field reads this one function.
  • summaryChipPercentPoints(raw) becomes summaryChipPercentPoints(raw, percentScale) (plugin-detail, module-internal).
  • FieldMeta gains max (plugin-dashboard, copied from the schema field def only). As a FieldMeta member it joins ObjectDataTable's read-side refusal band, so an authored column cannot restate how its field stores.

Every caller, and where its storage comes from. The pin scripts/__tests__/percent-storage-callers-11475.test.ts enumerates these from disk, so a new caller fails until it is listed:

caller field in hand? storage passed
core formatMeasure no (server column) the column's percentScale annotation; an unannotated % pattern is read as numeral reads it: 'fraction'
fields formatPercent body no its caller's argument
fields PercentCellRenderer (text and bar) yes percentCellScale(field)
plugin-dashboard MetricWidget (% pattern) no (value + pattern) 'fraction': numeral's % multiplies by 100
plugin-dashboard ObjectMetricWidget (aggregate over a percent field) yes percentCellScale(valueFieldDef); it renders the tile itself, the way it renders a currency
plugin-dashboard renderFieldValue % branch yes percentCellScale(fieldMeta) for percent/progress, otherwise the pattern's 'fraction'
plugin-detail summary chip (text, bar) yes percentCellScale over the merged field bag
plugin-gantt tooltip percent row yes percentCellScale(def)
plugin-grid column-summary footer yes percentCellScale(column), with max read off the field
plugin-grid mobile card percent slot yes, percent only percentCellScale(percentDef)

Cell hosts that dropped max, and so would have read a whole-stored 50 as 5000%, now carry it. All of them use the shape each one already uses for scale: plugin-grid ObjectGrid column paths A/B/C, plugin-list ObjectGallery buildEnrichedField, plugin-detail RelatedList's cell bag, and plugin-dashboard buildFieldMeta. PercentField now asks percentScaleOf by reference instead of restating the rule. Every shipped percent field (CRM probability and discount_percent, showcase f_percent and allocation_percent, todo progress_percent) declares max: 100, so their readings do not move.

Visible changes, named

  • Mobile card percent slot. The slot is chosen by column NAME (probability, percent, rate, ratio, confidence, score). A field that is not a percent declares no percent storage, so such a field now prints through its own cell with no percent affix. The showcase's lead_score and tax_rate (both Field.number) are the shipped fields this moves. This follows the seat's answer 3 on 5955873664.
  • An unannotated % measure or metric pattern is read as a fraction (numeral's reading). An unannotated 57 used to read 57% and now reads 5700%. Every first-party % measure is a server-annotated ratio, so none of them moves.
  • The loss, stated in the changeset: the legacy ReportViewer draws a type: 'percent' report column through the cell with the column's own ReportField. That field declares no max and is not hydrated, so it reads a fraction. Measured at 6007dd4e4: no producer in objectui or objectstack writes a percent column into a legacy report, and specReportToPresentation writes columns with no type.

Tests

  • New pins:
    • the card's three rows, read-only form against cell, plus the 0.25 control (PercentCellRenderer.declaredStorage-11475.test.tsx);
    • the enumeration pin;
    • one aggregate face (the grid footer over a fraction-stored and a whole-stored field) and the object metric tile;
    • max carriage on every grid path, the gallery and the related list;
    • core percentDisplayValue / formatMeasure;
    • the legacy ReportViewer reading.
  • Fixture triage: rows whose stored value was percentage points on a field declaring nothing now declare a max above 1. Rows that pinned the guess's boundary (exactly 1, negatives) are re-judged by the declared storage. Rows whose subject was locale, width or layout keep their bytes.
  • Runs from the worktree root through the verify lock:
    • the derived population (every touched-package test naming percent or the touched files, plus every test naming the changed functions): 557 files over three runs, every failure triaged and re-run green;
    • the eight new pin files at ee688e10a: Tests 52 passed (52).
  • Type-check (type-check: source and tsconfig.test.json) after a closure build: core, fields, plugin-dashboard, plugin-detail, plugin-gantt, plugin-grid, plugin-list and plugin-report all exit 0; type-check:scripts also exits 0.

Reverse verification

The prediction was written before each run.

  • BASE leg. The four implementation files at 6007dd4e4, with the new pin at HEAD. Predicted 10 red / 2 green; measured Tests 10 failed | 2 passed (12). The cell read 1%, 1.5% and 50.0% against the form's 100%, 150.0% and 0.5%. The controls (0.25, a whole-stored 50) stayed green. Restore was proven by blob equal to HEAD on all four paths and an empty git diff HEAD.
  • Ablation leg. The cell's storage read was replaced with the magnitude guess (scripts/ablation-replace.mjs: anchor 1 → 0, blob changed). Predicted 5 red / 7 green; measured Tests 5 failed | 7 passed (12) (the three rows, the bar, progress). Restore was proven: blob equal to HEAD and an empty git diff HEAD.

Gates at ee688e10a

  • check:control-bytes OK; check:new-line-citations 0 new citation(s); check-changeset-presence OK (6 changesets); check:changeset-claims exit 0 (report-only).
  • check:readme-exports is NOT MEASURED: a prerequisite collapse ("366 self-import(s) could not be judged", unbuilt packages). No README fence changed (compared fenced content against 6007dd4e4), so check:doc-snippets does not apply.
  • eslint over the 48 changed .ts/.tsx files: 0 errors (JSON count 48). Narrowing proof:
    • the population is eslint.config.js files: ['**/*.{ts,tsx}'];
    • type-aware linting is not enabled (tseslint.configs.recommended, no parserOptions.project), and no rule in eslint-rules/ reads the filesystem, so the diff cannot move any untouched file's verdict.
  • Six pending changesets that described the guess got a pure-append dated note.

Acceptance notes

  • plugin-report's formatValue has its own format: 'percent' arm (a value printed verbatim with %), a third percent face outside the formatter family. No carrier.
  • ObjectMetricWidget's invert is still the magnitude-gated 1 - v (0 to 1 only). No carrier.
  • percentScaleOf gives no answer for progress. This PR states 'whole' at the one call site; an upstream spec card is the maintainer's choice.

Generated by Claude Code

claude added 4 commits October 2, 2026 16:09
…torage; the magnitude guess retires (objectui#11475)

percentDisplayValue and formatPercent take the storage (the spec's
PercentScale) as a required argument. The percent cell, the record header
chip, the grid footer and mobile card, the gantt tooltip, the dashboard
record renderer and object metric tile read it with percentCellScale (the
spec's percentScaleOf); a face with no field states it. The cell hosts that
dropped `max` (grid paths A/B/C, gallery, related list, dashboard FieldMeta)
now carry it. PercentField reads percentScaleOf by reference.

Claude-Session: https://claude.ai/code/session_01YLg8XqWGJ785fwQ5v4pH37
Co-authored-by: Claude <noreply@anthropic.com>
…w declare it (objectui#11475)

An unannotated measure column and an undeclared percent field are a
fraction now; the rows that meant points say `whole` / declare a `max`
above 1. The grid pin waits for the schema's own label.

Claude-Session: https://claude.ai/code/session_01YLg8XqWGJ785fwQ5v4pH37
Co-authored-by: Claude <noreply@anthropic.com>
…rcent-declared-storage

Claude-Session: https://claude.ai/code/session_01YLg8XqWGJ785fwQ5v4pH37
Co-authored-by: Claude <noreply@anthropic.com>
…declare it; the boundary rows read by storage (objectui#11475)

Rows whose stored value is percentage points now sit on a field declaring a
`max` above 1; the rows that pinned the magnitude guess's boundary (exactly
1, negatives) are rejudged by the declared storage. Chip-against-cell and
text-against-bar pins are unchanged.

Claude-Session: https://claude.ai/code/session_01YLg8XqWGJ785fwQ5v4pH37
Co-authored-by: Claude <noreply@anthropic.com>
@github-actions github-actions Bot added documentation Improvements or additions to documentation package: core plugin tests package: fields labels Oct 2, 2026
@github-actions

github-actions Bot commented Oct 2, 2026

Copy link
Copy Markdown
Contributor

changeset-claim-re-read

⚠️ 20 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 b55a34647 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/6475-gantt-block-face-declared.md

  • names plugin-gantt/src/ObjectGantt.tsx → packages/plugin-gantt/src/ObjectGantt.tsx — edited by this change

    The gantt nested-block spelling of a gantt config ({ type: 'object-gantt', gantt: { … } }) had no mirror entry at all: it rode through BaseSchema's .passthrough() entirely unvalidated, and the published TypeScript never taught the shape either — an author writing gantt: { … } got no completion, no type checking, no error on a misspelt member. It was the 28th and last of the keys getGanttConfig (plugin-gantt/src/ObjectGantt.tsx) reads off the schema that objectui#6051 (PR feat(types,plugin-gantt): declare the flattened GanttConfig face ObjectGantt reads (#6051) #6472) did not declare — severed into its own card because, unlike the other 27, declaring it changes what a published tool refuses.

.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 fields/src/index.tsx → packages/fields/src/index.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/6650-listcolumn-wrap-implemented.md

  • names packages/plugin-grid/README.md → packages/plugin-grid/README.md — edited by this change

    @objectstack/spec declares ListColumn.wrap and describes it to authors as "Allow text wrapping", and packages/plugin-grid/README.md shows it in its authored-column example. No renderer anywhere implemented it. Long cell text stayed clipped to one line, with no error, no warning and no feedback of any kind — a promise made at authoring time and silently broken at render time.

.changeset/6694-dashboard-lookup-reference-meta.md

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

    ⚠️ The copy set is three keys where ObjectGrid's RELATIONAL_META_KEYS is nine, and the difference is measured per key, not preferred. The grid's cells are EDITABLE, so its extra keys drive the inline picker's query (LookupField / UserField read id_field, description_field, lookup_filters, lookupFilters); these two widgets are read-only and their render path ends at a cell renderer. packages/fields/src/index.tsx reads exactly reference_to, reference and display_field off a cell's field prop; titleFormat is never read off a field meta at all (its readers take it off the object schema, which arrives here through useRefObjectSchema(reference_to)), and reference_to_field has zero member reads anywhere in the repo. Copying the other six would mint six members written on every call and read by nothing — precisely what objectui#6625 (decimals) and objectui#6597 (referenceTo) retired from this same file.

.changeset/6837-reference-to-arm-deletion.md

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

    Three readers were deliberately left alone. LookupCellRenderer (fields/src/index.tsx), LookupField and UserField read FieldMetadata — ObjectUI's OWN contract, whose LookupFieldMetadata declares reference_to and never declares reference. They are fed by the emitters above and by published example schemas (examples/schema-catalog/src/schemas/fields-lookup/*.json), so narrowing them would break in-repo producers, and plugin-grid's relationalMetaCopySet.derivation.test.ts re-derives its read set from exactly those three sources — where reference_to is recorded with verdict adapter-stamped. DetailViewFieldSchema is likewise untouched.

.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/6939-objectql-record-source-refinement.md

  • names plugin-gantt/src/ObjectGantt.tsx → packages/plugin-gantt/src/ObjectGantt.tsx — edited by this change

    Both renderers resolve their records from one of three keys, in this order — getDataConfig in plugin-map/src/ObjectMap.tsx and plugin-gantt/src/ObjectGantt.tsx: data, then staticData, then objectName. Both mirrors required objectName alone, so a document authored on staticData drew correctly and was refused by safeValidateSchema — six catalog entries, three per component.

.changeset/7166-retire-inert-fieldmeta-copies.md

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

    applyRelationalMeta writes the copy set onto the fieldMeta that generateColumns hands to ANGLE-BRACKETS(CellRenderer) as the field prop — six JSX passes across the three column-building paths, and nowhere else. For a relational column that resolves to LookupCellRenderer, which reads exactly reference_to, reference, display_field, displayField, reference_field and options; a user column resolves to UserCellRenderer, which destructures { value } and reads no field meta at all. Measured by receiver rather than by count: packages/fields/src/index.tsx, the file holding every cell renderer, contains zero occurrences of the three retired keys, against a control of 22 occurrences of the display_field / displayField / reference_to spellings the cell does read.

.changeset/7178-format-measure-date.md

  • names dataset-format.ts → packages/core/src/utils/dataset-format.ts — edited by this change

    No second date formatter was written. formatDate, formatDateTime, formatRelativeDate and DateDisplayOptions MOVED from @object-ui/fields' barrel down into @object-ui/core (utils/date-display.ts), which is the same remedy objectui#4576 applied to formatDisplayNumber and for the same reason: core is the React-free engine and could not import from a React package, so the alternative was a parallel date convention in dataset-format.ts — exactly the drift that once had a list cell rendering 1.234,5 % beside a dashboard measure's 1.234,5%. @object-ui/fields re-exports all four names unchanged, so no consumer's import path or behaviour changes, and a reference-identity test pins that the cell renderer and the measure formatter call the same function.

.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/7997-detail-view-related-retired.md

  • names packages/plugin-detail/README.md → packages/plugin-detail/README.md — edited by this change

    Documentation. packages/plugin-detail/README.md and content/docs/api/schema-reference.md stop teaching the retired array and gain a migration block each.

.changeset/8114-detail-tab-activity-timeline.md

  • names plugin-dashboard/README.md → packages/plugin-dashboard/README.md — edited by this change

    README.md ships in this package's files, so the example went out in every tarball. DetailTabs renders a tab's content through ANGLE-BRACKETS(SchemaRenderer schema={toRenderableSchema(tab.content)} /), which makes content.type an SDUI node position judged by the component registry — so a reader copying the tab got the registry's Unknown component type panel (OBJUI-001) where the timeline should be. Same shape as the line-chart widget in plugin-dashboard/README.md (objectui#7896's census; fixed by objectui#7951) and the fourth known instance.

.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/grid-summary-footer-tenant-locale-9294.md

  • names packages/plugin-grid/src/useColumnSummary.ts → packages/plugin-grid/src/useColumnSummary.ts — edited by this change

    formatSummaryLabel in packages/plugin-grid/src/useColumnSummary.ts handed Intl no locale argument at seven call sites — the currency arm (both branches plus its constructor-threw fallback), the average arm, the plain numeric default, the percent-of-rows arm and the count/non-numeric arm. An omitted or undefined locale is not "no opinion": it is the machine's locale, which is neither of this renderer's two channels, and it is the one thing useDisplayLocale's own doc comment tells callers not to do. All seven now take the concrete BCP-47 tag that hook already resolves (tenant locale, then UI language, then 'en') — the same tag the cells directly above the footer are formatted with, and the same one the percent column took in objectui#9269.

.changeset/plugin-detail-8937-parent-scope-residue.md

  • names packages/plugin-detail/README.md → packages/plugin-detail/README.md — edited by this change

    • packages/plugin-detail/README.md (it is in files[], so it ships). It said the node's filter is AND-combined with { [relationshipField]: parentId }, full stop. Since objectui#7299 the parent condition is compiled to match the relationship field's arity, so a multi-valued relationship gets { [relationshipField]: { $contains: parentId } } instead. The paragraph now states both spellings and names the arbiter (@objectstack/spec/data's isMultiValueField). - The claim that the SQL driver decides arity on that same predicate. It does not: driver-sql gates the equality family on its own storage question, which reads multiple as truthy on ANY type. The two rules therefore disagree for a type outside MULTI_CAPABLE_TYPES carrying multiple: true. objectui#9184 moved the arity compiler into @object-ui/core's parent-scope seam and carried the claim with it, so the correction is recorded there — the seam now states the driver's measured rule, records the divergence as a divergence, and points at the upstream card that owns which of the two rules is right (objectstack#17469). RelatedList.tsx's pointer comment and the objectui#7299 test header carried the same sentence and are corrected to match.
  • names RelatedList.tsx → packages/plugin-detail/src/RelatedList.tsx — edited by this change

    • packages/plugin-detail/README.md (it is in files[], so it ships). It said the node's filter is AND-combined with { [relationshipField]: parentId }, full stop. Since objectui#7299 the parent condition is compiled to match the relationship field's arity, so a multi-valued relationship gets { [relationshipField]: { $contains: parentId } } instead. The paragraph now states both spellings and names the arbiter (@objectstack/spec/data's isMultiValueField). - The claim that the SQL driver decides arity on that same predicate. It does not: driver-sql gates the equality family on its own storage question, which reads multiple as truthy on ANY type. The two rules therefore disagree for a type outside MULTI_CAPABLE_TYPES carrying multiple: true. objectui#9184 moved the arity compiler into @object-ui/core's parent-scope seam and carried the claim with it, so the correction is recorded there — the seam now states the driver's measured rule, records the divergence as a divergence, and points at the upstream card that owns which of the two rules is right (objectstack#17469). RelatedList.tsx's pointer comment and the objectui#7299 test header carried the same sentence and are corrected to match.

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 401611b21 (merge-base with origin/main): 52 file(s) changed outside .changeset/, read against 2024 pending declaration(s) that publish a body (2653 pending in total). · run

@github-actions

github-actions Bot commented Oct 2, 2026

Copy link
Copy Markdown
Contributor

✅ Console Performance Budget

Metric Value Budget
Eager closure (gzip, 330 chunks) 3551.1 KB 3574.6 KB
Main entry chunk (gzip) 150.4 KB 350 KB
Entry file index-BcHkakd8.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.88KB 6.25KB
app-shell (runtime-config.js) 20.68KB 7.36KB
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) 40.22KB 10.61KB
auth (AuthShell.js) 3.49KB 1.40KB
auth (ForgotPasswordForm.js) 12.21KB 3.45KB
auth (LoginForm.js) 18.17KB 5.40KB
auth (PreviewBanner.js) 0.90KB 0.50KB
auth (RegisterForm.js) 6.72KB 2.24KB
auth (SocialSignInButtons.js) 9.70KB 3.93KB
auth (UserMenu.js) 3.39KB 1.21KB
auth (auth-gate-events.js) 1.29KB 0.66KB
auth (authStyles.js) 5.04KB 1.72KB
auth (createAuthClient.js) 40.70KB 10.94KB
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.11KB 7.97KB
collaboration (LiveCursors.js) 3.17KB 1.27KB
collaboration (PresenceAvatars.js) 6.28KB 2.60KB
collaboration (PresenceProvider.js) 2.79KB 1.13KB
collaboration (index.js) 1.68KB 0.73KB
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) 569.83KB 136.77KB
core (index.js) 10.00KB 3.96KB
create-plugin (index.js) 27.94KB 9.51KB
data-objectstack (index.js) 230.46KB 63.94KB
fields (index.js) 261.51KB 66.22KB
i18n (LocalizationContext.js) 1.76KB 0.96KB
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.24KB 2.27KB
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) 34.49KB 9.23KB
i18n (useSafeTranslation.js) 7.14KB 2.92KB
layout (index.js) 39.36KB 11.18KB
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) 13.86KB 5.00KB
permissions (PermissionContext.js) 0.31KB 0.25KB
permissions (PermissionGuard.js) 0.89KB 0.45KB
permissions (PermissionProvider.js) 6.52KB 2.26KB
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) 53.17KB 15.46KB
plugin-charts (index.js) 83.53KB 22.84KB
plugin-chatbot (index.js) 198.22KB 46.97KB
plugin-dashboard (index.js) 141.71KB 38.15KB
plugin-designer (index.js) 231.28KB 48.76KB
plugin-detail (index.js) 245.43KB 64.53KB
plugin-editor (index.js) 2.23KB 1.05KB
plugin-form (index.js) 172.73KB 44.50KB
plugin-gantt (index.js) 179.16KB 45.06KB
plugin-grid (index.js) 233.13KB 63.89KB
plugin-kanban (index.js) 49.51KB 15.54KB
plugin-list (index.js) 116.63KB 28.97KB
plugin-map (index.js) 25.60KB 8.62KB
plugin-markdown (index.js) 13.88KB 4.80KB
plugin-report (index.js) 44.04KB 12.21KB
plugin-timeline (index.js) 38.80KB 11.71KB
plugin-tree (index.js) 14.51KB 5.15KB
plugin-view (index.js) 90.23KB 22.73KB
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.81KB 3.58KB
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) 120.63KB 39.56KB
react (data-invalidation.js) 5.05KB 2.08KB
react (index.js) 4.50KB 2.06KB
react (schema-input.js) 4.25KB 2.04KB
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.08KB 1.30KB
sdui-parser (index.js) 6.06KB 2.68KB
sdui-parser (input-type.js) 2.84KB 1.40KB
sdui-parser (parse.js) 25.28KB 7.80KB
sdui-parser (provenance.js) 3.84KB 1.90KB
sdui-parser (types.js) 0.28KB 0.23KB
sdui-parser (validate.js) 21.42KB 7.05KB
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 (complex.js) 3.32KB 1.64KB
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) 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) 5.07KB 2.39KB
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) 2.52KB 1.31KB
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) 4.99KB 1.96KB
types (spec-ui-namespace.js) 0.20KB 0.19KB
types (strict-authoring-face.js) 19.93KB 7.25KB
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: ee688e10abba27be4af1349409984439887dc8bf
Local-runs: none

Read for this record, 2026-10-02T17:31Z: card #11475 (body and all six comments, triage 5955104287 governing, amendment 5955873664), PR #11490 (body, 64-file list, net diff origin/main... at the head, +2050 / −359), and every check-run on the head. Check-runs at 2026-10-02T17:27Z: 43 runs, 40 success, 3 skipped (Test (coverage), the coverage shard matrix placeholder, dependabot), 0 failures; the aggregate Test completed success, Type Check, Lint, Build & E2E, Test (dist pins), README Export Check, Changeset Bump Policy, Changeset Fixed Group Check, Changeset Declaration, Changeset Claim Re-read, Changeset Overwrite Report, Doc Snippet Type Check, Line Citation Gate, Control Byte Scan, Spec Main Shape Gate all success. Commit status Vercel success. Nothing was built, run or re-run here.

① Derived judgments

Public surface, @object-ui/core and @object-ui/fields (both released, barrel exports):

  • percentDisplayValue(value) becomes percentDisplayValue(value, percentScale), percentScale required (PercentScale, re-exported by core from the spec), fraction multiplies by 100, whole passes through, anything else throws TypeError. Right. This is triage's "the magnitude inference retires, no consumer-side guess", and the accept set narrows exactly as the changeset states (a one-argument call is refused).
  • formatPercent(value, precision, locale) becomes formatPercent(value, percentScale, precision, locale), storage second because required. Right, FROM and TO stated; the positional move is the breaking half and is named.
  • NEW export percentCellScale(field) in fields: progress is stated whole with the reason on the helper, every other bag asks the spec's percentScaleOf about percent with the bag's declared max (a non-number max is not a declaration), so it never answers undefined. Right per the amendment's accepted route notes; the consequence that a textual field promoted by format: 'percent' reads a fraction is the accepted reading, not a guess.
  • PercentField now asks percentScaleOf by reference; the local max above 1 restatement is gone. Right (amendment: one convention, not two equal copies).
  • core formatMeasure: the server's percentScale annotation wins; an unannotated % pattern is read as numeral reads it, fraction. Right as a stated storage. Visible: an unannotated 57 moves from 57% to 5700%; the PR body and the core/fields changeset both name it, and the PR's claim that every first-party % measure is server-annotated is consistent with the analytics service annotating result fields (percentScale on the spec's analytics result).

Faces that hold a field (each verified in the diff and in the head tree census: 15 calls in 11 files, matching the pin's table call by call):

  • fields PercentCellRenderer text and bar: percentCellScale(percentField). Right; bar and number take one storage.
  • plugin-dashboard ObjectMetricWidget: a sum/avg/min/max over a percent field renders the tile itself through formatPercent(stored, percentCellScale(valueFieldDef), width, locale); count is excluded by answersInFieldUnit; width is the authored % pattern's decimals (metricPatternDecimals, a module export not in the barrel) or the field's resolved width. Right. MetricWidget's % pattern with no field states fraction. Right (triage: a face with no field states its storage). The 9165 control row 12.3 moves from 12% to 1,230%; the test says so on purpose and the changeset names the class.
  • plugin-dashboard renderFieldValue % branch: percentCellScale(fieldMeta) for percent/progress, else fraction. FieldMeta.max added, copied from the schema def only; FieldMeta is not exported from the package barrel, and TableColumn declares no max, so the member lands in the derived refusal band (Exclude over keyof FieldMeta), which is the intended verdict; Type Check green confirms the band compiles. Right.
  • plugin-detail chip text and bar: percentCellScale({ type: ftype, max }) over the merged { ...objField, ...sectionField } bag; summaryChipPercentPoints(raw, percentScale) is module-internal (imported only by DetailView, absent from the barrel). Right.
  • plugin-gantt tooltip percent row: percentCellScale(def). Right.
  • plugin-grid footer: percentCellScale(column) with max read off the field only (ListColumnSchema declares none). Right. Mobile card: a percent field reads percentCellScale(percentDef); a non-percent field in the name-keyed slot prints through its own cell with no percent affix. Right, the seat's answer 3 option A, and the PR names lead_score and tax_rate.

Cell hosts that dropped max (the amendment's widened surface): ObjectGrid paths A/B/C, ObjectGallery buildEnrichedField, RelatedList's cell bag, dashboard buildFieldMeta now carry it with the presence test each already uses for scale. Right, and each has a pin (gridPercentStorage, ObjectGallery.percentStorage, detail percentStorage, ObjectDataTable fixtures). Hosts left alone and checked: DetailSection/HeaderHighlight/RecordMetaFooter enrich from the object schema through enrichDetailField, whose copy set includes min/max; grid path D, the expanded panel and ObjectKanban pass the whole def; RecordDetailPanel builds a DetailViewField bag with scale/useGrouping/format and no max, but DetailView merges the object schema it fetches underneath that bag, so no face reads wrong; named here as the one remaining bag of the shape this card fixed elsewhere.

plugin-report: no source change. A legacy type: 'percent' column goes through the shared cell with the report column as its field, so it reads the spec default (fraction) unless the column itself carries max, which the new pin shows is honoured when present. Right against answer 2 option A; the loss for a whole-stored field is stated in the core/fields changeset. The bridge specReportToPresentation writes { name, label } columns with no type, so its columns never reach the percent cell, as the PR says.

Enumeration pin scripts/__tests__/percent-storage-callers-11475.test.ts: population walked from disk over every packages/*/src and apps/*/src with comments stripped, every call's second argument compared to the table, every call required to have one, plugin-ai's module-local formatPercent excluded by name and asserted to be a different function. Right; this is triage's "one enumeration pin over every formatPercent caller".

Fixture triage: rows whose stored value meant points now declare a max above 1 (max: 100, max: 10000); rows that pinned the guess's boundary (exactly 1, -1, -5, 12.3) are re-judged by storage with the old reading kept only on a whole-declared field; locale, width and layout subjects keep their bytes. The chip-against-cell and text-against-bar agreement pins are unchanged in shape. Verified file by file; no fixture was weakened to pass.

Docs: content/docs/fields/percent.mdx now states both storages; the three READMEs replace the magnitude sentence with the declared storage; doc gates green.

② Semver level

  • .changeset/11475-percent-declared-storage.md: @object-ui/core and @object-ui/fields minor, BREAKING banner, FROM and TO lines for both signatures, the migration line, the progress, unannotated-measure and legacy-report consequences, and the reason for minor over major. Right: AGENTS.md 版本号策略 forbids major in the fixed group (enforced by check-changeset-no-major.mjs, the Changeset Bump Policy run, green) and says breaking semantics ship as minor with the break in prose, which this does.
  • @object-ui/plugin-dashboard minor: the metric tile's % pattern semantics move for any value at or above 1 and the object-metric tile gains a percent face. Right, and consistent with the 9165 precedent (minor).
  • @object-ui/plugin-detail, plugin-gantt, plugin-list patch: bag carriage and the storage read, no barrel export changes. Right.
  • @object-ui/plugin-grid patch: understated. useColumnSummary is a barrel export and its fieldMetadata member set gains max?: number (an additive widening of a published accept set), and the mobile card's visible move is a behaviour change on a shipped face. Precedent is split (9269 minor, 11254 patch). The fixed group releases at the highest declared level, minor from core/fields, so the published version is unchanged by this; named, not failing.
  • Six dated notes (9071, 9165, 9167, 9269, 9452, olive-pugs-sing) are pure appends under a dated heading; Changeset Overwrite Report and Changeset Claim Re-read green. check-changeset-presence: six changeset files cover the seven released packages whose source changed; plugin-report is test-only and owes none.
  • Clause-②: yes: line-initial in the PR body and in claim 5955492789, and true of the diff (a new export, two changed signatures, a widened accept set on useColumnSummary). Right. The line's one reader (clause2-line.mjs, imported by post-stamped.mjs and the changeset gates) reads a comment or a PR body, never a changeset, so the seat's noted absence of the line from the changeset is not a gap in any contract this fleet reads.

③ Boundary flags

Dev round 1 (5955827511, blocked) open questions, each answered by the amendment and closed in the diff:

  1. Widen the surface (A): done; the four hosts, PercentField and ObjectGrid are in the diff, tests and changesets with them.
  2. ReportViewer storage: measured first as the amendment asked; the bridge carries no type and no producer writes a percent column into a legacy report (my own grep of objectui non-test sources and objectstack examples agrees); option A taken, loss stated.
  3. Mobile card name-keyed slot for a non-percent field: option A; the PR and the grid changeset name the visible change and the two showcase fields.

Dev round 2 (5957520505, done): open_questions empty. Flags and residues:

  • progress stated whole at the one call site because the spec's percentScaleOf answers undefined for it: accepted by the amendment; whether the spec should own it is the maintainer's choice and is named in the PR. Escalated correctly, no card owed by this PR.
  • plugin-report's own formatValue format: 'percent' arm (a value printed verbatim with one decimal and %, on aggregation rows and untyped columns): outside triage's population, which is every formatPercent face; it reads no magnitude and guesses nothing, it simply never consults a declaration it does not have. Named in the PR's Acceptance notes; the seat's ACCEPT leaves it unfiled until a shipped face is measured wrong. Acceptable; the seat owns that filing.
  • ObjectMetricWidget's invert, still gated on 0..1: pre-existing, outside the population, named in the PR. Acceptable as a noted residue.
  • Deviations declared by the dev (pin placed in scripts/__tests__ because the fields test program cannot type node: modules; plugin-report test-only; merge of origin/main as a merge commit; model-free trailer pair): each is the right call and none widens the surface.
  • check:readme-exports was NOT MEASURED locally (prerequisite collapse); the head's README Export Check run answers it success.
  • Raise rule: not triggered; every shipped percent field declares max: 100 and its readings do not move.

Implemented-by: claude/issue-11475-percent-declared-storage
Reviewed-by: session_01YLg8XqWGJ785fwQ5v4pH37

VERDICT: PASS

@objectstack-fleet
objectstack-fleet Bot marked this pull request as ready for review October 2, 2026 17:33
@objectstack-fleet
objectstack-fleet Bot enabled auto-merge October 2, 2026 17:33
@objectstack-fleet
objectstack-fleet Bot added this pull request to the merge queue Oct 2, 2026
Merged via the queue into main with commit f560ded Oct 2, 2026
45 checks passed
@objectstack-fleet
objectstack-fleet Bot deleted the claude/issue-11475-percent-declared-storage branch October 2, 2026 17:49
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

Projects

None yet

2 participants