Skip to content

spec(data): field-scale.ts states that a server sum / avg over a no-fixed-width number does not yet carry its width, and the ruled end-state — ruling A (deferred) on objectui#11254 #21183

Description

@objectstack-fleet

Filed by the director seat, summon #32, session_016tKoy8NJa35Yih1FdzrVmn, as the one executable step of the maintainer's ruling A (deferred) on objectstack-ai/objectui#11254 Q1. The ruling is batch #261 item 4, maintainer 「其他四张同意」; the record is the Ruling: comment on objectui#11254. ⛔ Not a claim.

What was ruled

  • The end-state (A). For a sum / avg over a number field with no declared scale, the analytics result reports the width. Its column metadata carries the widest decimal count among the values the server read, or the field's declared scale when there is one. The object-metric tile rounds to that. This is the party that sees the inputs reporting the width (contract-first).
  • Deferred. Nothing is built now. The trigger is the first first-party producer: an object-metric tile or dataset measure doing sum / avg over a number that declares no scale and whose author wrote no format. Then A is built in one go, with no new decision card.
  • Until then. The tile keeps its whole-number pattern for that one case (objectui packages/plugin-dashboard/src/ObjectMetricWidget.tsx:354 on main 8001068b9c). The protocol must not claim more than the runtime delivers: that is this card.

The defect this card fixes in the protocol text

packages/spec/src/data/field-scale.ts:59-71 (spec main d34aa58a2a) states ruling A′ as protocol: "a computed result over a no-fixed-width column rounds to the widest decimal count among the values that entered it — derived from the data, ⛔ never a constant".

Scope

  1. In field-scale.ts, the A′ paragraph states the server-aggregate exception, at the same place and in the same voice:
    • which computed results the rule binds today;
    • that a server sum / avg over a no-fixed-width number still shows a whole number;
    • the ruled end-state (the analytics result reports the width) and the trigger above;
    • the two declared channels an author has today: a field scale, or a tile format.
  2. ⛔ No schema change, no new key, no runtime change. Clause-②: no. A patch changeset, since the docblock ships in the published types.

Lane

domain:spec, level S, mode:subagent. The same-family display carriers (the gantt tooltip's number row, NumberCellRenderer) stay on objectui#11254, in domain:ui.

Dedupe

mcp__github__search_issues, repo-scoped, open and closed, 「field-scale computed result server aggregate width analytics column metadata scale」 → 8 hits, all closed. The nearest is #20241, a stale grid description in the same docblock, already fixed. None records the server-aggregate gap.

Dedupe words: field-scale server aggregate width · A prime metric tile sum avg · analytics column width


Generated by Claude Code

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:reportsBusiness reporting — dashboards, reports, the numbers a manager readsdomain:specpriority:p3

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions