Skip to content

feat(types)!: a static chart node's series refuses the renderer-internal measureFormat carrier by name - #38145

Merged
os-zhuang merged 3 commits into
mainfrom
claude/project-thread-56gehw
Nov 28, 2026
Merged

os-zhuang merged 3 commits into
mainfrom
claude/project-thread-56gehw

Conversation

@objectstack-fleet

@objectstack-fleet objectstack-fleet Bot commented Nov 28, 2026 •

Copy link
Copy Markdown
Contributor

Requested by Tesla · project thread

Fixes #37214
repo:objectstack#3 · os-tesla · session_01L9qibvWkyWZ5TH7f1iwUVp

Clause-②: yes (narrowing)
Metadata-protocol: narrowed
Skills-docs: none — the key is renderer-internal and taught nowhere (git grep measureFormat -- skills content finds 0)

维护者速读

  • 搭建者或 AI 在页面里手写静态图表时,如果给数据系列写了只该由报表和仪表盘自动填的「数值格式」,保存时会被拒绝并说明原因;报表和仪表盘图表的坐标轴显示不变。
  • 属于「作者界面只接受渲染器会正确使用的东西」这条线,替用 AI 写页面元数据的搭建者堵住一个会和数据本身矛盾的手写格式。
  • 只影响手写了这个内部键的静态图表,它们需要删掉这个键(要改坐标轴格式就写坐标轴自己的格式);这是收窄,可以直接撤回这个 PR。
  • 无

What changes

  • @object-ui/types ChartDataSeriesSchema (zod/data-display.zod.ts) declares measureFormat as a retirementTombstone, beside the aggregate refusal it mirrors. The series object is non-strict, so until now an authored measureFormat was kept in the parse output and honoured by the renderer. It is now refused with one invalid_type issue at series.N.measureFormat; the guidance names the key, says the report and dashboard producers fill it, and points at the authored channel, the axis format (yAxis: [{ field, format }]), which already takes precedence over the carrier.
  • The TS twin ChartDataSeries (data-display.ts) types it measureFormat?: never, so a typed literal fails tsc.
  • The producers are untouched: DatasetReportRenderer and DatasetWidget build their series past this schema and keep filling the carrier.
  • ADR-0087 D3 entry chart-series-measure-format-carrier-refused (packages/spec/src/migrations/entries/semantic/19.chart-series-measure-format-carrier-refused.ts); no D2 conversion, because the carrier has no authored equivalent to rewrite into.
  • Changeset: @object-ui/types minor, @objectstack/spec minor (the ledger entry ships in its migration registry), with the FROM → TO row and the adr-0087: registered marker.

Tests

  • ui/packages/types/src/__tests__/chart-series-aggregate-refusal-11681.test.ts (the existing series-refusal harness), two new top-level describes:
    • each of three carriers ({ format: '0.0%', percentScale: 'whole' }, { format: '0,0.00', currency: 'CNY' }, {}) is refused by ChartDataSeriesSchema with exactly one invalid_type issue at measureFormat whose message names the key;
    • a static chart node carries the refusal to series.0.measureFormat, with the control node parsing;
    • a series that writes both aggregate and measureFormat is refused at both paths, so the aggregate refusal stays;
    • CONTROL: yAxis: [{ field, format }] on the same node parses;
    • the zod arm's input type is exactly undefined and the TS twin's member is never (type-level Eq), and a typed literal carrying it is a @ts-expect-error.
Readings at 58dedb3 (base origin/main 10321fa)
  • Premise at origin/main 93fa911 (vitest probe, since deleted): ChartDataSeriesSchema.safeParse({ name, measureFormat }) → success: true with the key kept; a static chart node with series[0].measureFormat → success: true; adding aggregate → only series.0.aggregate refused.
  • pnpm --filter @object-ui/types test: Test Files 390 passed (390), Tests 10526 passed (10526) (after a full @objectstack/spec build with declarations).
  • pnpm --filter @object-ui/types type-check exit 0; tsc -p tsconfig.test.json --listFiles includes the harness (1 hit), so the @ts-expect-error and the Eq pins are compiled.
  • Ablation 1, with scripts/ablation-replace.mjs on the committed fix: rename the zod arm measureFormat → measureFormat_ABLATED → Tests 5 failed | 10 passed (15) (all five runtime measureFormat pins); restored, blob == HEAD, git diff HEAD empty.
  • Ablation 2: TS twin measureFormat?: never → measureFormat?: { format?: string } → tsc -p tsconfig.test.json exit 2, TS2322 at the harness's twin Eq pin and at zod-mirror-parity.test.ts's ledger; restored, blob == HEAD.
  • node scripts/check-adr-0087-registration.mjs: 1 declared-breaking changeset(s), each carrying an ADR-0087 disposition — [BREAKING+bang+clause-②-narrowing+metadata-protocol-narrowed] registered chart-series-measure-format-carrier-refused.
  • dispatch-gates --commands: 90 derived, 90 run, every one exit 0 on its final run, 0 NOT-MEASURED (a derived zero), 0 unrun (dispatch-gates --ran, list gates-ran-58dedb3e.list). Seven exited non-zero on the first pass for local prerequisites, not this diff, and passed on a re-run: five needed a pnpm install after the worktree was fast-forwarded to a base whose lockfile adds a link, and the dogfood build closure (check:dual-build-cjs-loads, check:lean-entry-closure, check:type-check-debt, check:doc-formula-expressions, the cli migrate-meta-engine-guidance test); check-plugin-teardown-shape --self-test needed its fixture commit fetched into the shallow clone; ui vitest run scripts/ needed the built closure (Test Files 172 passed | 2 skipped (174), Tests 5144 passed | 2 skipped (5146)).
  • Producer chart pins: DatasetReportRenderer.chartChrome, .comparePrevious-36645, .measureFormatCarrierParity-37053, DatasetWidget.integerMeasureTicks-11681 and AdvancedChartImpl.axisLabels: Test Files 5 passed (5), Tests 86 passed (86) — the producers still fill the carrier and the axis still reads it.
  • PR check-runs at 58dedb3: 59 success, 10 skipped, 0 failed or pending.
  • Dogfood battery: 58dedb3 · os-verify-lock: VERDICT command-exit 0 (pnpm --filter @objectstack/dogfood test, no shard, no path, after pnpm turbo run build --filter='@objectstack/dogfood^...' exit 0) · Test Files 490 passed | 3 skipped (493) · Tests 4144 passed | 68 skipped (4212) · no failures.

Acceptance notes

  • The refusal reaches what parses through @object-ui/types (the static SDUI chart node's zod face) and the TS authoring face. The spec's own ChartSeriesSchema already refuses the key as unknown, so no spec schema changes.
  • The renderer still reads measureFormat off a raw node it is handed; this PR closes the authoring door, not the reader, which the producers need.
  • The prepared patch held by zone a4-U was asked for on the card (comment 7232258512) and did not arrive by the claim's 03:30Z cut-off, so this was written from the card's "Shape of the fix".

Verification

Read first (by risk):

  1. ui/packages/types/src/zod/data-display.zod.ts: the measureFormat arm after aggregate and its guidance string.
  2. ui/packages/types/src/data-display.ts: measureFormat?: never at the end of ChartDataSeries.
  3. packages/spec/src/migrations/entries/semantic/19.chart-series-measure-format-carrier-refused.ts.

Two-minute check: cd ui && pnpm --filter @object-ui/types exec vitest run --root ../.. packages/types/src/__tests__/chart-series-aggregate-refusal-11681.test.ts shows 15 passing; rename the zod arm's key and the same command shows 5 failing.


Generated by Claude Code

@github-actions github-actions Bot added size/m documentation Improvements or additions to documentation tests tooling Fix lands in tooling, not a product package — enters pm:queue only with Unblocks: or a named surface labels Nov 28, 2026
@github-actions

github-actions Bot commented Nov 28, 2026 •

Copy link
Copy Markdown
Contributor

📓 Docs Drift Check

1 anchor(s) derived from 1 changed package(s); no hand-written page names any of them, so this run has nothing to list — not a clean bill of health. This check sees only pages that NAME a derived anchor: one that documents this change in prose, or enumerates it in an authoring dialect, names none and stays invisible to it on every run.

What this run could not see
  • 3 name(s) were too generic to anchor anything (single lowercase words)
  • the SDK route bridge reached 69 of 252 client-bound route-ledger rows — the other 183 have no registrar path: tail to select them, so pages documenting THEIR client methods cannot appear above, on this or any run. Of those 183: 0 are remediable by widening that discovery convention (an in-repo file declares the path; the convention did not scan it); 59 are structural — on a ledger where NOT ONE row is declared in-repo, so no discovery change reaches them at any price; 124 are undecided (no in-repo declaration, on a ledger that has other in-repo registrars — absence and an unreadable spelling are not distinguishable here). The rows themselves: node scripts/docs-audit/affected-docs.mjs --bridge-coverage
  • a page that states a rule by its inputs shares no identifier with the emitter that implements the rule, so an emitter-only diff cannot list it — not on this run and not on any run. Measured on fix(driver-sql): emit varchar(maxLength) for a text field a declared index keys on #11430: content/docs/protocol/objectql/types.mdx documents the text-family column mapping by the ObjectQL type names it maps FROM (text / textarea / html) while the diff changed createColumn; it went unlisted, and it was the page that diff falsified, in four places. No shared token exists to detect this on, so a rule your change carries has to be re-read by hand in the pages that restate it.
  • a key NAME is not a key, so the hand re-read the line above prescribes can land on the wrong schema. The same spelling is authorable on one governed type and a [REMOVED] tombstone on another for each of active, aria, joins, objects, template, tools and version (censused on [finding] tools is a key on BOTH AgentSchema (tombstoned, dead) and SkillSchema (live, cloud-attested), so a name-based search attributes skill examples to the agent key — it produced a false stop-the-line alarm on PR #19059 #19093 over the liveness ledger's governed types, top-level keys); nothing in a search result distinguishes the two, so a grep hit on a LIVE example reads as evidence about the DEAD key. Measured on fix(spec): the agent.tools liveness row says dead — it claimed live on a key the schema tombstoned #19059: content/docs/ai/agents.mdx was reported as contradicting the agent.tools tombstone over its tools: example at :161, which is inside the defineSkill({ block opened at :155 — the page was already correct. Settle ownership by PARSING the value against both schemas, never by the name: that literal PASSES SkillSchema, and as an AgentSchema it FAILS at tools with the tombstone prescription. ⛔ These names are not the whole class — a key retired through a .strict() guidance map leaves no tombstone in the walked shape and none of them here (tool.category, live as AIToolDefinition.category).

Coarse fallback — 177 page(s) merely mention a changed package (the pre-#9192 predicate, kept for the deliberately-wide backstop): node scripts/docs-audit/affected-docs.mjs --json 33a0d4fa625cdfb69873a89a1e0f5d9f49fea744 → packageMentionDocs.

Which tree this was computed on

This run read content/docs from db454817ef68a0b923e8fc6682f61f23c7fb6622 — the merge of head 608f5a6b90ac1b0c57d92b2121fee1d4ff5c02c2 into base 33a0d4fa625cdfb69873a89a1e0f5d9f49fea744, which is what actions/checkout gives a pull_request run. Not the PR head.

A worktree cut from an older main holds a different content/docs, so re-deriving there can legitimately return a different list — that is a different tree, not a wrong row. To answer on the same tree:

# while this PR is open — GitHub drops the merge commit once it closes
git fetch origin db454817ef68a0b923e8fc6682f61f23c7fb6622 && git checkout db454817ef68a0b923e8fc6682f61f23c7fb6622
# afterwards, rebuild it from the two parents, which stay fetchable
git fetch origin 33a0d4fa625cdfb69873a89a1e0f5d9f49fea744 608f5a6b90ac1b0c57d92b2121fee1d4ff5c02c2 && git checkout -B drift-repro 33a0d4fa625cdfb69873a89a1e0f5d9f49fea744 && git merge --no-ff 608f5a6b90ac1b0c57d92b2121fee1d4ff5c02c2

node scripts/docs-audit/affected-docs.mjs --json 33a0d4fa625cdfb69873a89a1e0f5d9f49fea744

⚠️ That checkout carried uncommitted changes, so the commit above does not fully identify what was read.

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#3 · os-tesla · session_01L9qibwSEecrzDjKjbk24r1

Contract-review-claim: session_01L9qibwSEecrzDjKjbk24r1 · head 58dedb3 · 2026-11-28T05:07Z

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#3 · os-tesla · session_01L9qibwSEecrzDjKjbk24r1
2026-11-28T05:12Z

Contract review

Served-tier: CONTRACT_REVIEW_TIER
Head-sha: 58dedb3e8b9fb41ce2b07914c93e6d4503f0134c
Local-runs: none
Scope: packages/spec/src/migrations/entries/semantic/19.chart-series-measure-format-carrier-refused.ts (the published-schema hit), ui/packages/types/src/zod/data-display.zod.ts, ui/packages/types/src/data-display.ts, ui/packages/types/src/tests/chart-series-aggregate-refusal-11681.test.ts + read, not reviewed: ui/packages/types/src/zod/tombstone.zod.ts, ui/packages/types/src/zod/objectql.zod.ts, ui/packages/plugin-charts/src/normalizeChartSchema.ts, ui/packages/plugin-charts/src/AdvancedChartImpl.tsx, ui/packages/plugin-charts/src/ObjectChart.tsx, ui/packages/plugin-dashboard/src/DatasetWidget.tsx, ui/packages/plugin-report/src/DatasetReportRenderer.tsx, packages/spec/src/ui/chart.zod.ts, packages/spec/src/migrations/types.ts, packages/spec/src/migrations/entries/README.md

Inputs read: card #37214 (body and its 5 comments), PR #38145 (body, file list, comments), the net diff of 5 files against merge base 10321fa2, and the 73 check-runs on this head (61 success, 12 skipped, 0 failed, 0 pending).

① Derived judgments

  • Accept set, zod face — NARROWED, right. ChartDataSeriesSchema is a z.looseObject; on the base an authored series[].measureFormat is undeclared, kept in the parse output and handed on. The diff declares it as retirementTombstone(...), which is z.never({ error }).optional().describe(...): any value other than undefined is refused with one invalid_type issue at the key's own path, and the series array carries it to series.N.measureFormat on ChartSchema. Nothing else on the object changes; the aggregate arm is untouched and still refuses beside it.
  • Accept set, TS face — right. ChartDataSeries gains measureFormat?: never. The interface has no index signature, so a fresh literal already failed the excess-property check; the member now also refuses a non-fresh object and gives the zod mirror a twin, which the mirror-parity ledger needs.
  • Public surface — one new declared, unwritable member on each face (ChartDataSeries.measureFormat, ChartDataSeriesSchema.shape.measureFormat, and through it the generated JSON-Schema description). No export added or removed.
  • Spec migration registry — one new D3 entry, chart-series-measure-format-carrier-refused, in MIGRATIONS_BY_MAJOR[19].semantic. The filename is derived from the id as entries/README.md requires, the five required SemanticMigration fields are present, and no conversionIds is claimed, which is right: there is no D2 conversion.
  • Not changed, and rightly so: @objectstack/spec ChartSeriesSchema (a strictObject that never declared the key), the renderer's reader (normalizeSeries in normalizeChartSchema.ts), and the two producers.
  • Pins — the harness covers what the card's acceptance names: three carrier shapes each refused with one issue naming the key, the node-level path, both keys refused together, a parsing control, the type-level Eq pins on both faces, and the @ts-expect-error literal. The literal pin alone would hold without the twin (excess-property check); the Eq pin on the twin is the one that binds it.

② Semver level

  • Clause-②: yes (narrowing) — judged right. The direction is a narrowing of a published accept set (BREAKING), and each face gains a declared member. The line is at line start in the PR body, the changeset and the claim comment, and matches the card's seat ruling.
  • Metadata-protocol: narrowed — right: a key a metadata author could write is now refused.
  • Level — @object-ui/types minor and @objectstack/spec minor. AGENTS.md step 3: a kind other than none takes at least minor on each package the diff moves; the diff moves exactly these two (the tombstone and twin; the ledger entry). The precedent .changeset/pre/35827-data-table-staged-edit-retired.md has the same shape. Right.
  • The changeset carries the BREAKING banner, a FROM → TO row, the one-line fix and exactly one adr-0087: registered marker whose id matches the entry. The PR title carries !. Skills-docs: none with its reason is present. Check Changeset is green on this head.

③ Boundary flags

  • open_questions: empty in the os-dev-report. Nothing to answer.
  • Dev flag, out_of_scope_findings: "the chart renderer still reads measureFormat off any raw node it is handed". Answered: by design. normalizeSeries must keep reading the key or the report and dashboard producers lose the axis units Report and dashboard chart value axis: show a whole-scale percent and a currency measure in the format the table gives them #37053 delivered; the card's target is the authoring faces. No escalation.
  • Dev flag: the a4-U prepared patch did not arrive by the claim's cut-off, so the fix was written from the card. Answered: the diff is judged on its own tree, and it matches the card's "Shape of the fix".
  • Reviewer's flag, outside this card's surface — read in code, not run: the object-chart node's INTERNAL series arm (ui/packages/types/src/zod/objectql.zod.ts, the z.looseObject({ dataKey, ... }) arm of series) declares neither aggregate nor measureFormat, so it keeps both, and ObjectChart.tsx spreads the schema's series on to ChartRenderer. The same carrier is therefore still writable through that node. It predates this PR, aggregate has the same door, and the card names the static chart node only, so it is not a finding on this diff. It is a candidate follow-up card for the lane.
  • SQL push-down: not applicable. The diff adds no query, no id materialisation and no in-app join.
  • Head: this record covers 58dedb3e. While it was being written the PR head moved to 608f5a6b (a merge of main, 137 files, none of them one of this PR's five paths). The record does not cover that head.

④ Design judgment

The narrowing, against the published spec on main: @objectstack/spec ChartSeriesSchema is a strict object that has never declared measureFormat, and the only percentScale the spec declares is on the analytics answer's fields[], not on any chart authoring shape. PR #37194 introduced the key as producer-filled and renderer-internal. So no declared capability is taken away at the consumer: the mirror's loose object accepted, by accident of being non-strict, a key the spec already refuses, and this diff makes that refusal real on the mirror, in the posture aggregate already has. The design holds.

Attempts to break it:

  • Producers refused by their own schema? No. DatasetWidget.tsx and DatasetReportRenderer.tsx build series objects in code and hand them to the renderer; neither parses through ChartSchema. Type Check UI, Test UI and Live E2E UI are green on this head, so the ?: never twin does not catch a producer either.
  • "The axis format takes precedence over the carrier" — true as cited: AdvancedChartImpl.tsx valueAxisTickFormatter tries formatterFor(axis.format) first, then measureTickFormatter(sharedMeasureFormat(...)), then the compact default.
  • The offered authored channel exists and parses: ChartSchema.yAxis is an array of the spec's ChartAxisSchema, whose format is declared; the harness pins a control.
  • Ledger entry against its first consumer, os migrate meta: surface, replacement, reason and acceptance criteria describe this diff and nothing wider; the claim "no D2 conversion" is honest, since the carrier's facts have no one-to-one authored key.
  • Both keys written together: refused at both paths; pinned.

Findings:

  • N1 (nit) — the guidance says "to format this chart's value axis, write the axis format" without its limit. formatterFor reads a % pattern as a 0–1 fraction and knows five currency symbols, so the axis format cannot say what percentScale: 'whole' or an ISO code such as CNY said in the carrier; normalizeChartSchema.ts states this itself in the measureTickFormatter docblock. A static chart's rows are authored inline, so the author can store the fraction, and the axis behaviour is unchanged by this PR; the refusal and the contract are unaffected. The sentence appears in the tombstone string, the TS docblock, the ledger entry and the changeset. One clause in the changeset is enough ("a % pattern reads the value as a 0–1 fraction"); the code strings are an accepted deviation or a follow-up card.
  • N2 (nit) — the changeset's FROM → TO row starts from currency: 'CNY' and ends at format: '$0,0', which formatterFor prints as US dollars. '¥0,0' is the matching pattern. Prose face only.

No must-fix, no should-fix.

Implemented-by: claude/project-thread-56gehw
Reviewed-by: session_01L9qibwSEecrzDjKjbk24r1

VERDICT: PASS

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#3 · os-tesla · session_01L9qibwSEecrzDjKjbk24r1

The brief the contract reviewer above was handed, filled, for the seat to read before it adopts the record:

Contract review brief — PR #38145 @ 58dedb3e8b9fb41ce2b07914c93e6d4503f0134c (card #37214)

You review at CONTRACT_REVIEW_TIER. Render ONE ## Contract review record on this head — its shape is
node scripts/pm/record-recognisers.mjs --template --face narrowing — with a PASS or FAIL verdict, and post it as ONE comment
on the PR or its card.

Inputs — these and nothing else:
· card #37214: its body and EVERY comment (rulings and earlier records included)
· PR #38145: its body, its file list, and the net diff against main at 58dedb3e8b9fb41ce2b07914c93e6d4503f0134c
· the check-runs on 58dedb3e8b9fb41ce2b07914c93e6d4503f0134c: their conclusions ARE the gate verdicts
⛔ Not the dispatch order, ⛔ not the dispatching seat's own conclusions — this brief is adversarial by design.

Scope — the narrowing is declared of the whole PR, never of a path: the floor is EVERY path of the diff outside the
prose faces (.changeset/37214-chart-series-measure-format-refused.md), plus every file those hunks make a claim about, read in the cited code.
Widen it freely, ⛔ never below that floor; the record's Scope: line lists both. No path is the lane seat's remainder.
④ judges the narrowing itself over that floor: lockfiles, generated output, changesets and prose elsewhere in
the PR are not reviewed; the published spec and the cited code are READ to judge it, never reviewed.

⛔ READ-ONLY. No worktree, no checkout, no build, no test run, no gate re-run, no ablation: the check-runs
on the head already answered every derived gate family, and a local run costs more than it returns.
If ONE probe is unavoidable, the record's Local-runs: line says probe — REASON; otherwise none.
Scratch space is /tmp/claude-0/-home-user/166e2125-4268-552f-a555-2b7c43a99f0f/scratchpad/pr-38145/ alone; nothing there you did not write this round is read.

Judge, in the record's own sections:
① Derived judgments — every accept-set and public-surface change the diff implies, each named right or wrong.
② Semver level — the changeset (or skip-changeset) matches what the diff publishes, and the Clause-②: line.
③ Boundary flags — every dev flag and every open_questions entry answered, or escalated.
On every face, SQL push-down: a new id materialisation or in-app join where SQL could push down is a
finding unless a reason is given (AGENTS.md, Prime Directive 5: SQL first).
④ Design judgment — the narrowing itself, read against the published spec on main: does it take a
declared capability away at the consumer, or make the spec's own refusal real? A capability declared
and not delivered is an implementation gap, implemented or retired, ⛔ never narrowed at the consumer.
Read the spec and the cited code in the live tree, and try to break the design.
Grade each finding must-fix, should-fix or nit — a nit has no effect on correctness or the contract.
A must-fix is a FAIL; a must-fix or should-fix earns a delta review of its fix; nits alone end the round.
Spell a must-fix or should-fix with its id and grade, S1 (should-fix) — …, and a clean round as
No must-fix, no should-fix.: the queue guard reads a graded finding as OPEN on this head and
refuses the record; the delta record names those it closes by id alone, S1: closed.
A nit is fixed only on the prose faces, or left as an accepted deviation or a follow-up card: a fix
anywhere else moves the head, and this record no longer covers it.
⛔ Judge the tree, never the PR body's account of it.
Sign Implemented-by: with the dev's branch and Reviewed-by: with your session id — the value is the FIRST
thing after each colon.

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#3 · os-tesla · session_01L9qibwSEecrzDjKjbk24r1

Contract-review-claim: session_01L9qibwSEecrzDjKjbk24r1 · head 608f5a6 · 2026-11-28T05:13Z

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#3 · os-tesla · session_01L9qibwSEecrzDjKjbk24r1
2026-11-28T05:42Z

Contract review

Served-tier: CONTRACT_REVIEW_TIER
Head-sha: 608f5a6b90ac1b0c57d92b2121fee1d4ff5c02c2
Local-runs: none
Scope: packages/spec/src/migrations/entries/semantic/19.chart-series-measure-format-carrier-refused.ts (the published-schema hit), ui/packages/types/src/zod/data-display.zod.ts, ui/packages/types/src/data-display.ts, ui/packages/types/src/tests/chart-series-aggregate-refusal-11681.test.ts + read, not reviewed: ui/packages/types/src/zod/tombstone.zod.ts, ui/packages/types/src/zod/objectql.zod.ts, ui/packages/plugin-charts/src/normalizeChartSchema.ts, ui/packages/plugin-charts/src/AdvancedChartImpl.tsx, ui/packages/plugin-charts/src/ObjectChart.tsx, ui/packages/plugin-dashboard/src/DatasetWidget.tsx, ui/packages/plugin-report/src/DatasetReportRenderer.tsx, packages/spec/src/ui/chart.zod.ts, packages/spec/src/migrations/types.ts, packages/spec/src/migrations/entries/README.md, packages/spec/src/migrations/semantic-relevance.test.ts

Merge-main record. This head is a merge commit whose parents are 58dedb3e8b9fb41ce2b07914c93e6d4503f0134c (the head the record in comment 7234525593 covers) and main 33a0d4fa625cdfb69873a89a1e0f5d9f49fea744. Measured here: git diff 33a0d4fa 608f5a6b and git diff 10321fa2 58dedb3e are the same 5 files, 133 insertions, and share the stable patch-id 75a5d27efb2fcb291bd9684b9419808970002f4d. The PR's own change is byte-identical; what is judged below is whether main's 137 files between 10321fa2 and 33a0d4fa change what it means.

Inputs read: card #37214 and its comments, PR #38145 (body, file list, comments), the net diff against main at this head, main's delta 10321fa2..33a0d4fa, and the 69 check-runs on this head: 59 success, 10 skipped, 0 failed, 0 pending (final, read at 05:39Z after the last run completed).

① Derived judgments

Unchanged from the record on 58dedb3e, re-read on this tree:

  • Accept set, zod face — NARROWED, right. ChartDataSeriesSchema (a z.looseObject) refuses an authored series[].measureFormat through retirementTombstone, one invalid_type issue at series.N.measureFormat; the aggregate refusal stays beside it.
  • Accept set, TS face — right. ChartDataSeries.measureFormat?: never.
  • Public surface — one declared, unwritable member on each face; no export added or removed.
  • Spec migration registry — one D3 entry, chart-series-measure-format-carrier-refused, of major 19, with no D2 conversion.

What main brought in, against each of these:

  • ui/packages/types/** — no file changed. data-display.zod.ts, data-display.ts, tombstone.zod.ts, objectql.zod.ts and ChartSchema are as the earlier record read them.
  • ui/packages/plugin-charts, plugin-report, plugin-dashboard, ui/packages/core/src/utils — no file changed. Main's 33 ui/ files are in app-shell, i18n, plugin-chatbot and plugin-kanban.
  • measureFormat — main's delta adds or removes no line naming it. On this head the key is written only by the two producers and read only by the renderer, as before.
  • packages/spec/src/ui/chart.zod.ts — unchanged; ChartSeriesSchema is still a strict object that does not declare the key.
  • Migration registry — main changed three files: it edited 19.knowledge-source-publish-refuses-missing-references-and-gated-objects.ts, added 19.knowledge-source-save-refused-without-knowledge-service.ts, and moved semantic-relevance.test.ts's pinned table from 29 to 30 entries. That table counts only entries that carry a relevance question; this PR's entry carries none, so the pin is not touched by it. There are 18 major-19 semantic entries on this head and no id collides with this one.

② Semver level

  • Clause-②: yes (narrowing) — right, as before. Metadata-protocol: narrowed — right.
  • Level — @object-ui/types minor and @objectstack/spec minor, right under AGENTS.md step 3.
  • The changeset .changeset/37214-chart-series-measure-format-refused.md is still present and unconsumed: both packages are still at 19.0.0-next.2, and main's delta brought 13 other changesets and no version bump or CHANGELOG. Check Changeset is success on this head.

③ Boundary flags

  • open_questions: empty. The dev's two flags (the renderer still reads the carrier off a raw node; the a4-U patch did not arrive) are answered as in the earlier record: by design, and judged on the tree.
  • Reviewer's flag, outside this card's surface, unchanged by the merge — read in code, not run: the object-chart node's INTERNAL { dataKey } series arm in objectql.zod.ts is a loose object that declares neither aggregate nor measureFormat, and ObjectChart.tsx hands the schema's series on to ChartRenderer. A candidate follow-up card, not a finding on this diff.
  • Dogfood on this head — for the seat, before queueing: the card's ruling asks for the full dogfood battery on the final head. The PR body and the os-dev-report record it at 58dedb3e only; neither the PR body, the PR comments nor the card records a re-run on 608f5a6b. On this head the Dogfood Regression Gate check-run is success, its three matrix shards and Dogfood Verify CLI are skipped, the same pattern as on 58dedb3e. Whether the green gate answers the card's ask for this merge head is the seat's call; this record does not make it.
  • SQL push-down: not applicable. No query, id materialisation or in-app join.

④ Design judgment

The judgment on 58dedb3e stands on this head. The spec on main at 33a0d4fa still refuses measureFormat on its strict ChartSeriesSchema and declares it on no chart authoring shape, so the mirror's refusal makes the spec's own refusal real and takes no declared capability away. Nothing main merged touches the mirror, the tombstone helper, the renderer's precedence (valueAxisTickFormatter: the axis format, then the carrier, then the compact default) or the producers, so every attempt to break the design recorded there reads the same code and ends the same way. Type Check UI, Test UI (16 shards), Test Core (10 shards) and Live E2E UI are success on the merged tree.

Findings carried forward:

  • N1 (nit) — open, unchanged. The guidance says to write the axis format without its limit: formatterFor reads a % pattern as a 0–1 fraction and knows five currency symbols, so it cannot say what percentScale: 'whole' or an ISO code said in the carrier. No effect on the refusal or the contract. One clause in the changeset is enough; the code strings are an accepted deviation or a follow-up card.
  • N2 (nit) — open, unchanged. The changeset's FROM → TO row starts from currency: 'CNY' and ends at format: '$0,0', which prints US dollars; '¥0,0' matches. Prose face only.

No new finding on this head.

No must-fix, no should-fix.

Implemented-by: claude/project-thread-56gehw
Reviewed-by: session_01L9qibwSEecrzDjKjbk24r1

VERDICT: PASS

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#3 · os-tesla · session_01L9qibwSEecrzDjKjbk24r1
2026-11-28T05:42Z

L1-a: ACCEPT at 608f5a6b90ac1b0c57d92b2121fee1d4ff5c02c2, the merge-main head of 58dedb3e

  • Face: contract tier, both faces. The published-schema hit is packages/spec/src/migrations/entries/semantic/19.chart-series-measure-format-carrier-refused.ts, and the PR declares Clause-②: yes (narrowing). Both records are from the same isolated reviewer:
    • 7234525593 at 58dedb3e: PASS, no must-fix or should-fix, nits N1 and N2;
    • 7234836092 at this head: PASS. Its brief is 7234532596.
  • The net diff is unchanged. git diff 33a0d4fa 608f5a6b and git diff 10321fa2 58dedb3e have the same git patch-id --stable (75a5d27e…), over 5 files. Main changed nothing in ui/packages/types, the chart producers, the renderer or chart.zod.ts. The changeset is not yet consumed.
  • My own L1 read of the narrowing.
    • The only runtime parse of ChartDataSeriesSchema is ChartSchema.series. ChartSchema is parsed on the authoring face (cli authoring-face.ts), never on the path where the producers build their series, so report and dashboard charts keep the carrier.
    • git grep measureFormat finds no authored use in examples, skills, content, docs or hotcrm main.
    • Skills-docs: none holds.
  • CI at this head: 59 success, 10 skipped, 0 failed. Dogfood Regression Gate is success.
  • Owed before hand-off. The narrowing owes the full dogfood battery pinned to the landing head. The recorded run is at 58dedb3e. A run at 608f5a6b is not yet recorded on the PR or the card, and the seat has asked the card thread for it.
  • Nits for the hand-off, not blocking.
    • N1: the guidance's "write the axis format" does not state its limits, namely a % read as a fraction and five currency symbols.
    • N2: the FROM → TO row goes from CNY to $0,0; ¥0,0 matches.
    • Follow-up candidate: the object-chart node's internal series arm (objectql.zod.ts) still keeps both measureFormat and aggregate.

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#3 · os-tesla · session_01L9qibyUSf2nKJWW6qBemSU

Recorded 2026-11-28T05:57Z.

维护者速读

  • 改了什么:在页面里手写静态图表时,如果给数据系列写了只该由报表和仪表盘自动填的「数值格式」(measureFormat),保存时会被拒绝并说明原因。报表和仪表盘图表的坐标轴显示不变。
  • 为什么:这个键是渲染器内部用的,手写进去会和数据本身矛盾。用 AI 写页面元数据的搭建者最容易踩到。
  • 风险:只影响手写了这个键的静态图表,它们要删掉这个键(要改坐标轴格式就写坐标轴自己的 format)。示例和技能里一处都没有。这是收窄,标题带 !,可以直接撤回。
  • 要你做什么:请审阅并亲手合并,或者批准后由本席落地。收窄改动按规则要人来批。契约审核在收窄档 PASS 7234525593,合 main 后的记录是 7234836092,Head-sha: 608f5a6b90ac1b0c57d92b2121fee1d4ff5c02c2。

席位意见:可以合。两个文字 nit(坐标轴 format 表达不了百分比整数和 ISO 币种的限制;changeset 示例里 CNY 对应的模式应是 ¥0,0)不挪 head,作为接受的偏差留下,坐标轴格式的表达力缺口随 follow-up 卡处理。

席位核对 — ACCEPT · repo:objectstack#3 · head 608f5a6b90ac1b0c57d92b2121fee1d4ff5c02c2

  1. 形态:Fixes #37214;Clause-②: yes (narrowing),Metadata-protocol: narrowed,标题带 !;Skills-docs: none(git grep measureFormat -- skills content 为 0);+133 / −0。
  2. 前提实测:静态图表节点的 series 接受渲染器内部的 measureFormat 载体,而渲染器只对报表和仪表盘产出的节点正确使用它(卡线程实测,PR 正文)。
  3. 门禁 check-runs:本 head 上 completed/success=59 completed/skipped=10,0 failed。dogfood battery:os-dev-report 7234969294,os-verify-lock: VERDICT command-exit 0,490 个文件、4144 条测试通过。同 head 上 types 测试 10526/10526、type-check 0、spec check:generated 0、adr-0087 registration 0。landing-k 读出 K = 8。check-governed-merges ⇒ NOT governed by path;按收窄改动的规则交维护者。
  4. 接受的偏差:L2 的 N1、N2 两个 nit(上段),prose only,不影响拒绝和契约。L2 PASS 7234525593(58dedb3e),简报 7234532596;合 main 后净 diff 按 patch-id 字节一致,记录 7234836092,L1-a ACCEPT 7234846544。渲染器仍从原始节点读 measureFormat 是设计如此(报表和仪表盘的坐标轴单位要它)。
  5. 范围外去向:object-chart 的 series 臂(objectql.zod.ts)仍保留这个载体,合并后本席立卡(os-dev-report 7234969294 的 out_of_scope_findings)。
  6. 落地条款:收窄 ⇒ 维护者亲手合并,或 GOVERNED_APPROVERS(os-zhuang)批准后本席照落地前检落地。head 再动就重新判,dogfood 也要在新 head 上重跑。认领 7232274207,报告 7234450631、7234969294。

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#3 · os-tesla · session_01L9qibyUSf2nKJWW6qBemSU

Narrowing approval request at 2026-11-28T05:58Z. Seat record: the newest ## 席位核对 above (ACCEPT, Head-sha: 608f5a6b90ac1b0c57d92b2121fee1d4ff5c02c2). Contract review PASS on the narrowing floor 7234525593; merge-main record 7234836092. Dogfood battery on this head: command-exit 0 (os-dev-report 7234969294).

@objectstack-fleet objectstack-fleet Bot added the pm:awaiting-merge PR only: landing waits on the maintainer's own review and merge (SKILL.md 复核 ②); never on an issue label Nov 28, 2026
@os-zhuang
os-zhuang marked this pull request as ready for review November 28, 2026 06:02
@os-zhuang
os-zhuang added this pull request to the merge queue Nov 28, 2026
Merged via the queue into main with commit fe0473d Nov 28, 2026
75 checks passed
@os-zhuang
os-zhuang deleted the claude/project-thread-56gehw branch November 28, 2026 08:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation pm:awaiting-merge PR only: landing waits on the maintainer's own review and merge (SKILL.md 复核 ②); never on an issue size/m tests tooling Fix lands in tooling, not a product package — enters pm:queue only with Unblocks: or a named surface

Projects

None yet

3 participants