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

fix(components): FilterBuilder 切换 field 时按新列类型重整 value —— 可转则转,不可转清空 (#4781) - #4876

Merged
yinlianghui merged 2 commits into
mainfrom
claude/issue-4781-filter-value-reconcile
Aug 16, 2026
Merged

yinlianghui merged 2 commits into
mainfrom
claude/issue-4781-filter-value-reconcile

Conversation

@yinlianghui

Copy link
Copy Markdown
Contributor

Fixes #4781

按维护者 2026-08-16 裁定(评论 5306092839,方案 B:能转则转、不能转才清)实施。

前提复核

按 origin/main 65e88e6 逐条核对,issue 正文的读数全部成立,PR #4779 落地后此处代码未再动过:

  • changeField 在 operator 未变时走 { ...c, field: nextField },value 原样带过去;
  • 值输入框由 getInputType 按新字段类型重绘,type="number" 的输入框对非数字 value 显示空白;
  • 已有测试 filter-builder-field-switch-operator.test.tsx 里那条「a scalar value is carried through untouched」正是把这个行为钉住的(text 的 "acme" 切到 number 列后仍是 "acme")—— 缺陷有现成的钉子,实测通过。

改了什么

切换 field 现在是一次编辑,同时结算三件事:operator(#4768 已做)、value 的形状(reshapeFilterValue,#4768 已做)、value 的类型(retypeFilterValue,本单新增)。

convertibility 判定收在一处 convertScalarToFamily,与 reshapeFilterValue 并列,判定标准是干净、无歧义的读数:

目标族 转 清
number "42" → 42、" 42 " → 42、"-3.5"、"1e3" "acme"、"42abc"、"1,000"、"Infinity"、true
boolean "true" / "False" → 布尔(两端可往返) 1、"yes"、"acme"
date "2024-03-05" 原样;"2024-03-05T14:30" → "2024-03-05" "2024-02-31"、"05/03/2024"、带时区的 ...Z / ...+08:00
datetime 无时区的 "2024-03-05T14:30[:ss]" 原样 裸日期、"...T25:00"、带时区
time "14:30[:ss]" 原样 "29:71"、时间戳
text / select / lookup / 未知 全收;非字符串走 String()(42 → "42"、true → "true") 无

几处刻意的取舍,都写进了代码注释:

  • 比 parseFloat 严。parseFloat 会把 "acme" 读成 0、"42abc" 读成 42,那是用户从未写过的筛选,正是裁定要挡的。文件里另外三处键入路径仍是宽松写法,今天被数值输入框挡着碰不到 —— 单独立了观察类 issue FilterBuilder 三处数值输入用 parseFloat(raw) || 0 —— 半截读数与 NaN 都落成 0(今天被 number 输入框挡着) #4875,不在本 PR 扩围。
  • 裸日期不会被补上午夜去凑 datetime 列。equals 2024-03-05T00:00 是一条看起来已填、实则几乎匹配不到东西的规则,比空输入框更坏。
  • 无时区时间戳切到 date 列做截断:这是唯一一处不丢「目标输入框本来就能显示的信息」的转换,而且它让显示与存储重新一致(formatValue 早就按 T 切开显示了)。带时区的一律清 —— 手工截断正是裁定说要拒绝的歧义。
  • 空标量 '' 不动:没填的行本来就是该族的空形,「清空」它是把无操作装成决定。

顺带把 getInputType 改为读同一张 family 表,而不是对同一批类型列表再写一遍分支 —— 「值被转成的类型」与「值被编辑的输入框」是同一个问题,答两遍正是二者能各说各话的原因,而不一致就是本单的病灶。行为不变,按类型逐条钉住。

测试

新增 filter-builder-field-switch-value.test.tsx(38 条):UI 驱动真实下拉的转换/清空/不动三类,加上 retypeFilterValue 的逐族矩阵与逐形状(scalar / list / pair)矩阵。list 分支老实标注了可达性 —— 今天只有 select / lookup 两个桶提供 in/notIn,二者同属文本族,所以没有任何字段切换能把 list 驱到数值列,该分支按「算子落到哪一族」写并直接钉在 helper 上。

既有 fixture 的两处分诊(filter-builder-field-switch-operator.test.tsx):

  • 「a range keeps its lower bound」:目标由 Amount 改为 Title。它钉的是 pair → scalar 的塌缩,text 列同样触发算子重置(其桶里没有 between)且装得下塌缩出来的日期串;留在数值列上会让这条钉子被一个不属于它的值判定盖住。
  • 「a scalar value is carried through untouched」:目标由 Amount 改为 Stage。它原本钉的就是本单裁定要推翻的行为("acme" 活着落到 number 列);钉子本身的命题(形状重置不该抹掉值)不变,故换到一个仍装得下该值的目标,number 目标的相反判定进了新测试文件。

命令与结果:

pnpm exec vitest run packages/components --maxWorkers=2
  → Test Files 143 passed (143) | Tests 1281 passed (1281)

pnpm exec vitest run <消费半径:app-shell viewFilterFold ×4 / plugin-list ×2 / fields / plugin-view>
  → Test Files 8 passed (8) | Tests 209 passed (209)

pnpm exec turbo run type-check --concurrency=2
  → Tasks: 81 successful, 81 total

node scripts/check-control-bytes.mjs
  → OK (scanned 4356 tracked text file(s))

反向验证

先提交,再把 changeField 里的 retypeFilterValue 调用断开(退回 value: reshaped)。预判先写死:15 条转红 —— 复现两条、it.each 里四个目标装不下的切换、5 条转换钉、4 条清空钉;而 6 条「新列装得下就别动」的爆炸半径守卫、10 条 helper 矩阵、11 条输入框类型钉、以及整个 operator 测试文件保持绿。实跑 15 failed | 48 passed,逐条对上。

第一轮反向验证还揪出我自己测试里的一条假钉子:原先写的「输入框显示的与行存的一致」是 expect(input.value).toBe(String(row.value)),断开后它仍然绿 —— jsdom 对「新建即为数值输入框」会做值净化(显示空),但对原地翻转 type(字段切换正是这个动作)不会重跑净化,于是它把切换前那个浏览器本该抹掉的字符串原样交回来。这条钉子不可能因它被写下的理由而失败,等于没钉。已替换为直接断言「行里存的值是该输入框能原样显示的值」,并把这段测量写进注释;同时补了一条「数值列对非数字值显示空」的症状钉(两个方向都绿,作用是:值控件哪天不再是数值输入框,清空规则就该重新想,而不是静默守着空气)。

变更集

.changeset/filter-builder-field-switch-retypes-value.md(@object-ui/components: patch)。

顺带发现(均已立单,未在本 PR 修)


Generated by Claude Code

…4781)

切换一行的 field 时,PR #4779 只在算子家族变化时重整 value 的形状;标量到
标量没有形状问题,值被原样带过去。但字段的**类型**也换了,而值输入框正是
按新类型重绘的:`<input type="number">` 对非数字 value 一律显示为空。于是
text 列的 `equals "acme"` 指到 number 列后,输入框空白,行却仍带着
`"acme"` —— `foldFilterGroupToSpecRules` 原样持久化,实时网格拿
`amount equals "acme"` 去查。与 #4768 同一形状的「看不见的值」,只是发生在
value 而不是 operator 上。

按维护者 2026-08-16 裁定(方案 B:能转则转、不能转才清):

- convertibility 一处定义(`convertScalarToFamily`),与 `reshapeFilterValue`
  的 carry-if-possible 语义并列;判定为**干净、无歧义**的读数,比
  `parseFloat` 严格 —— 后者会把 `"acme"` 读成 `0`,写出用户从未写过的筛选;
- number:`"42"` → `42`,`"42abc"` / `"1,000"` / `Infinity` 清空;
- boolean:只认 `"true"` / `"false"`(两端可往返),`1` / `"yes"` 是约定不是
  读数,清空;
- date/datetime/time:只收目标输入框本身能渲染的值,外加唯一一处不丢信息的
  截断(无时区时间戳 → 其日期)。裸日期不会被补上午夜去凑 datetime 列:
  `equals 2024-03-05T00:00` 是一条看起来已填、实则几乎匹配不到东西的规则;
- 新列装得下的值原样保留(两个 text 列之间、两个数值列之间),空行仍是空行。

`getInputType` 改为读同一张 family 表,使「值被转换成的类型」与「值被编辑的
输入框」不可能各说各话 —— 二者不一致正是本单的病灶。

Co-authored-by: Claude <noreply@anthropic.com>
`FILTER_INPUT_TYPE_BY_FAMILY` 上一版标了「@internal exported for tests」,
但测试并不导入它 —— 输入框类型是从渲染出来的 DOM 上钉的,那本来就是更硬的
钉法。`packages/components/src/custom/index.ts` 是 `export *`,于是它白白进了
包的公共 API(连 `dist/*.d.ts` 都带上了)。没有消费方要求的东西不进契约。

Co-authored-by: Claude <noreply@anthropic.com>
@github-actions

Copy link
Copy Markdown
Contributor

✅ Console Performance Budget

Metric Value Budget
Main entry (gzip) 24.7 KB 350 KB
Entry file index-DPjW1tE7.js —
Status PASS —

📦 Bundle Size Report

Package Size Gzipped
app-shell (index.js) 9.56KB 3.59KB
app-shell (runtime-config.js) 7.42KB 2.32KB
app-shell (types.js) 0.01KB 0.04KB
app-shell (urlParams.js) 8.92KB 3.41KB
auth (AuthContext.js) 0.31KB 0.24KB
auth (AuthGuard.js) 1.17KB 0.53KB
auth (AuthProvider.js) 25.13KB 5.40KB
auth (AuthShell.js) 3.49KB 1.40KB
auth (ForgotPasswordForm.js) 12.21KB 3.45KB
auth (LoginForm.js) 18.13KB 5.39KB
auth (PreviewBanner.js) 0.90KB 0.50KB
auth (RegisterForm.js) 6.64KB 2.21KB
auth (SocialSignInButtons.js) 9.60KB 3.89KB
auth (UserMenu.js) 3.40KB 1.22KB
auth (auth-gate-events.js) 1.29KB 0.66KB
auth (authStyles.js) 5.04KB 1.72KB
auth (createAuthClient.js) 38.46KB 10.17KB
auth (createAuthenticatedFetch.js) 6.34KB 2.43KB
auth (index.js) 2.35KB 1.07KB
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.02KB 0.88KB
auth (useIsWorkspaceAdmin.js) 1.61KB 0.85KB
collaboration (CommentThread.js) 26.07KB 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.65KB 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) 498.36KB 111.03KB
core (index.js) 3.79KB 1.52KB
create-plugin (index.js) 10.08KB 3.26KB
data-objectstack (index.js) 157.05KB 43.28KB
fields (index.js) 231.73KB 57.60KB
i18n (LocalizationContext.js) 1.76KB 0.96KB
i18n (currency.js) 1.22KB 0.64KB
i18n (i18n.js) 4.28KB 1.75KB
i18n (index.js) 3.35KB 1.38KB
i18n (pickLocalized.js) 3.69KB 1.73KB
i18n (provider.js) 23.12KB 7.62KB
i18n (useDisplayLocale.js) 2.84KB 1.45KB
i18n (useObjectLabel.js) 27.59KB 6.63KB
i18n (useSafeTranslation.js) 7.77KB 3.13KB
layout (index.js) 38.86KB 10.83KB
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.74KB
mobile (index.js) 1.50KB 0.62KB
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.71KB 0.42KB
mobile (useResponsiveConfig.js) 1.36KB 0.63KB
mobile (useSpecGesture.js) 4.32KB 1.64KB
mobile (useTouchTarget.js) 1.01KB 0.54KB
permissions (MePermissionsProvider.js) 9.35KB 3.31KB
permissions (PermissionContext.js) 0.31KB 0.25KB
permissions (PermissionGuard.js) 0.89KB 0.45KB
permissions (PermissionProvider.js) 4.42KB 1.42KB
permissions (evaluator.js) 5.12KB 1.74KB
permissions (index.js) 0.91KB 0.41KB
permissions (store.js) 0.91KB 0.42KB
permissions (useFieldPermissions.js) 1.28KB 0.52KB
permissions (usePermissions.js) 1.81KB 0.83KB
plugin-ai (index.js) 15.75KB 3.80KB
plugin-calendar (index.js) 46.62KB 12.83KB
plugin-charts (index.js) 64.44KB 18.28KB
plugin-chatbot (index.js) 181.21KB 43.14KB
plugin-dashboard (index.js) 128.14KB 32.58KB
plugin-designer (index.js) 212.39KB 42.83KB
plugin-detail (index.js) 239.81KB 59.97KB
plugin-editor (index.js) 2.46KB 1.10KB
plugin-form (index.js) 115.34KB 27.74KB
plugin-gantt (index.js) 164.06KB 39.94KB
plugin-grid (index.js) 192.23KB 51.30KB
plugin-kanban (index.js) 52.72KB 14.54KB
plugin-list (index.js) 111.23KB 26.97KB
plugin-map (index.js) 17.91KB 5.72KB
plugin-markdown (index.js) 13.72KB 4.69KB
plugin-report (index.js) 41.38KB 11.09KB
plugin-timeline (index.js) 26.68KB 7.66KB
plugin-tree (index.js) 8.50KB 2.88KB
plugin-view (index.js) 83.81KB 20.49KB
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.44KB 0.22KB
providers (types.js) 0.01KB 0.04KB
react-runtime (index.js) 5.62KB 2.34KB
react (LazyPluginLoader.js) 3.77KB 1.33KB
react (SchemaRenderer.js) 27.53KB 9.41KB
react (data-invalidation.js) 5.05KB 2.08KB
react (index.js) 1.28KB 0.68KB
react (schema-input.js) 1.45KB 0.83KB
react (spec-input.js) 0.20KB 0.18KB
sdui-parser (codegen.js) 4.09KB 1.74KB
sdui-parser (index.js) 4.47KB 2.03KB
sdui-parser (parse.js) 10.04KB 2.82KB
sdui-parser (types.js) 0.29KB 0.24KB
sdui-parser (validate.js) 4.69KB 1.48KB
types (ai.js) 0.20KB 0.17KB
types (api-types.js) 0.20KB 0.18KB
types (app.js) 2.87KB 0.99KB
types (base.js) 0.20KB 0.18KB
types (blocks.js) 0.20KB 0.18KB
types (complex.js) 0.20KB 0.18KB
types (crud.js) 0.20KB 0.18KB
types (dashboard-filter-alias.js) 6.23KB 2.74KB
types (data-display.js) 0.20KB 0.18KB
types (data-protocol.js) 0.20KB 0.19KB
types (data.js) 0.20KB 0.18KB
types (designer.js) 1.87KB 0.85KB
types (disclosure.js) 0.20KB 0.18KB
types (error-code.js) 1.54KB 0.88KB
types (feedback.js) 0.20KB 0.18KB
types (field-types.js) 0.20KB 0.18KB
types (form.js) 0.20KB 0.18KB
types (http-retry.js) 4.32KB 2.02KB
types (index.js) 3.05KB 1.52KB
types (layout.js) 0.20KB 0.18KB
types (managed-by.js) 0.19KB 0.18KB
types (mobile.js) 2.59KB 1.31KB
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 (spec-report.js) 5.05KB 1.93KB
types (system-fields.js) 3.33KB 1.54KB
types (theme.js) 0.20KB 0.18KB
types (ui-action.js) 3.40KB 1.71KB
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

Copy link
Copy Markdown
Contributor Author

【PM 验收 · ACCEPT】objectui 分片 PM(session_01GTRjn8xBqp75dk7kFupVRt)对 #4781 裁定(方案 B,评论 5306092839)的实施验收:

实物核验:4 文件对账相符(filter-builder.tsx +269、新钉 38 条 + 旧文件 2 fixture 再分诊、changeset);边界零越包、模型标识 0、releases 0。裁定逐条兑现:convertibility 一处定义(convertScalarToFamily,严于 parseFloat —— "acme" 不再读成 0);date/boolean 干净无歧义才转,默认清空;唯一不丢信息的截断(datetime→date)与「裸日期不补午夜」的不对称取舍已在 PR 声明理由;机制复用 #4768 的 reconcile 家族形态。结构性加分:getInputType 改读同一张 family 表 —— 值被转成的类型与值被编辑的输入框结构上不可能各说各话,正中病灶。

反向验证:15 红 48 绿逐条命中;更可贵的是第一轮揪出自己的假钉(jsdom 对原地翻转 input type 不重跑值净化,原断言不可能为其被写下的理由失败)—— 测量写进注释、换成 inputShowsExactly 并补两向皆绿的症状钉。conversion matrix 全族覆盖(含 list/pair 形状与可达性如实标注)。CI 亲读:19 项全 completed(17 success + 2 skipped),零失败。

三个新 finding(#4873 假值当空、#4874 值域外显示空需裁定、#4875 三处 parseFloat||0 口径并存)记账合格,留分诊。

处置:undraft + auto-merge(SQUASH)。


Generated by Claude Code

@yinlianghui
yinlianghui marked this pull request as ready for review August 16, 2026 20:01
@yinlianghui
yinlianghui added this pull request to the merge queue Aug 16, 2026
Merged via the queue into main with commit be60815 Aug 16, 2026
19 checks passed
@yinlianghui
yinlianghui deleted the claude/issue-4781-filter-value-reconcile branch August 16, 2026 20:01
akarma-synetal pushed a commit to akarma-synetal/objectui that referenced this pull request Aug 17, 2026
…tstack-ai#4776)

`dashboard.widgets[].responsive` 已在 @objectstack/spec 17.0.0-rc.6
(objectstack#4876, ADR-0049 D2) 整键退休。objectui 的 Zod 孪生按引用派生,
自 rc.6 起就在拒收该键;但 TS 接口没有跟上:`responsive` 被 `Omit` 挡在继承
之外并重新声明为 `any`,同一个键因此 tsc 放行、校验拒收。

把 `responsive` 移出 `Omit` 列表、删除 `any` 声明,让它像 objectstack#5010
退休的四个键一样自然继承为 `?: never`。

被删掉的注释给 `any` 写了理由——「渲染器读按断点的 record」。objectui#3173
的测量证伪了它:全仓零个 `widget.responsive` 读点,两仓语料零书写,存量迁移
量为 0。断点能力不受影响,共享的 `ResponsiveConfig` 形状仍活在
`page.components[].responsive` 上,`useResponsiveConfig` 读的是那个。

pin 分两半,因为两半守的不是同一件事:Zod 那条断言墓碑消息含
`objectstack-ai#4876, ADR-0049 D2`(与 objectstack-ai#5010 四键的消息不同),守的是上游不要把该键并进
错误的退休批次;TS 那条是 `@ts-expect-error`,由本包 `tsconfig.test.json`
的 type-check 真实执行,守的才是本次改动本身。

Co-authored-by: Claude <noreply@anthropic.com>
akarma-synetal pushed a commit to akarma-synetal/objectui that referenced this pull request Sep 9, 2026
…ectstack-ai#7685)

* chore(deps): resolve @objectstack/spec at 17.3.0 in the lockfile

Moves the `@objectstack/spec` resolution in `pnpm-lock.yaml` from 17.2.0 to
17.3.0. Every one of the 30 manifests that declare the dependency already
carried a range admitting it (`^17.0.0` / `^17.1.0` / `^17.2.0`), so the
declared specifiers are untouched and no published dependency declaration
changes by a byte; `check-changeset-presence` confirms the range independently
("0 of them a manifest whose published contract moved").

The bump is committed on its own because the reconciliation it forces is not
mechanical: 17.3.0 reddens 14 test files / 36 assertions across six packages,
and at least four of those reds are public-contract decisions rather than pin
updates. The PR body carries the full measured red set.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_0114Ytxr5sM1vdW19Y9WAx6E

* fix(app-shell,scripts): reconcile the declared-symbol surface with @objectstack/spec 17.3.0 (objectui#7122)

Three repairs, each prescribed by the thing that failed.

1. `SchemaDiffEntryKind` gained `unreachable` in 17.3.0, so app-shell's
   deliberately-total `DIFF_LABEL` map stopped compiling — TS2741, the single
   error behind the `Build packages: failure` CI reported on this branch. The
   map is total on purpose so an upstream addition fails the build instead of
   rendering a blank cell; that mechanism worked. Labelled "Not checked —
   remote unreachable", following the spec's own ruling that this kind asserts
   NOTHING about the remote schema and must never be surfaced as "schema
   changed".

2. 17.3.0 began exporting `FlowNodeLike` from `@objectstack/spec/system`, so
   app-shell's two same-named local declarations became shadows. Measured
   rather than assumed: the spec's `id?` is OPTIONAL where the inspector's is
   REQUIRED, and assignability runs one way only, so importing the spec export
   would silently widen away the guarantee `locateFlowNode`'s callers rest on.
   Genuine dialects ⇒ renamed to `InspectorFlowNode` and `ScopeFlowNode`, with
   the tripwire rows the guard asks for in `page-nav-misc-spec-parity.test.ts`.

3. The `BreakpointName` / `BreakpointColumnMap` ALLOW entries were written
   self-expiring: they covered the interval while objectstack#11027's
   retirement was merged but unreleased, and their own text said to delete them
   on the pin bump and move the names to the absence pin. 17.3.0 published the
   retirement, ratchet 3 failed them as excusing nothing, so both are deleted
   and both names are pinned absent instead.

`node scripts/check-spec-symbol-derivation.mjs` — exit 0 (was 1 with three
findings): 1345 files scanned, 18 declared dialects.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_0114Ytxr5sM1vdW19Y9WAx6E

* test(types,plugin-form,auth): re-point the citation-stripped pins at the prescription (objectui#7122)

`@objectstack/spec` 17.3.0 stripped the `#NNNN` issue-number citations from its
refusal messages while keeping the prescriptive half intact. Sixteen assertions
were pinned on the stripped half and went red; each is re-pointed at what the
refusal still carries, which is the half the pins' own comments name as the
point — "the prescription is the half that makes the refusal actionable for an
author; asserting only `success === false` would stay green if it were reduced
to 'Invalid input'".

- `submitRedirect.test.ts` (13): `objectstack-ai#7496` -> `ruled 2026-08-11`. The refusal still
  cites its governing ruling, now by date rather than by issue number; the
  key-name and non-genericity assertions are untouched.
- `export-options-spec-parity.test.ts`: `/8010|1301/` -> the surviving format
  list and the `os migrate meta` command, i.e. the actionable repair itself.
- `report-chart-query-spec-parity.test.ts`: `'objectstack-ai#4876, ADR-0049 D2'` -> the ADR
  reference, which survived, plus the `Delete the key.` prescription.

Separately, the `PreviewModeConfig` doc-provenance ratchet FIRED and is retired
exactly as its own docblock prescribed ("correct the README line … and then
delete this guard, which has no reason to outlive the sentence it protects").
⚠️ The docblock expected that at spec major 18 — objectstack#11846 registered
the retirement in `RETIRED_DEFS_BY_MAJOR[18]` — and it arrived in a MINOR
instead, one of four public type exports 17.3.0 removed with no major signal.
The capability is untouched: `previewMode` is host-supplied and stays.

Verified: `pnpm exec vitest run` over the five affected files — 5 passed,
150 tests passed, exit 0. The edited gate script's own pin suites
(`check-spec-symbol-derivation.test.ts`, `check-doc-component-types.test.ts`) —
2 passed, 108 tests, exit 0.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_0114Ytxr5sM1vdW19Y9WAx6E

* chore(changeset): declare the app-shell/auth reconciliation the 17.3.0 bump forced (objectui#7122)

The branch previously declared 'no release' with empty frontmatter, which was
true while its only diff was the lockfile. It no longer is: `@object-ui/app-shell`
needed a source fix to compile against 17.3.0 at all, and `@object-ui/auth`'s
README carried a provenance claim 17.3.0 falsified. Both are declared as patches;
the lockfile-only changeset keeps its own empty-frontmatter declaration.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_0114Ytxr5sM1vdW19Y9WAx6E

* fix(core): re-derive the spec action-key inventory for 17.3.0's `operation` / `patch` (objectui#7122)

`SPEC_ACTION_KEYS` declares itself as "every property `@objectstack/spec`'s
`ActionSchema` declares", and `actionKeys.pin.test.ts` walks the schema and fails
the day that drifts. 17.3.0 added `operation` and `patch` — the declarative
single-record field write mirroring a list view's `bulkActionDefs` — so the
inventory was stating something false.

Restating the spec, NOT adopting a feature, exactly as the `description` entry
above it records for the same situation: `ActionDef` still does not declare
either key, no runner branch reads them, and no action surface forwards them.
That omission is deliberate under the maintainer's 2026-09-05 ruling on this
bump — record them as justified omissions now, forward only a key a runtime
actually reads once its semantics are read from upstream, no speculative
forwarding.

⚠️ Deliberately checked rather than assumed: the inventory feeds
`KNOWN_ACTION_KEYS`, which `classifyActionKeys` consults — and that function only
builds `unknown` / `retired` lists for a dev-mode console warning. It rejects
nothing and drops nothing, so widening it does not move what any published
`@object-ui/*` package accepts or refuses. Clause-② stays `no`.

Verified: `pnpm exec vitest run packages/core/src/actions/` — 24 files, 427
tests, exit 0. `node scripts/check-action-forward-parity.mjs` — exit 0, still
19 justified omissions / 7 known gaps, so no new gap was opened.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_0114Ytxr5sM1vdW19Y9WAx6E

* docs(auth): state the preview-mode provenance without a version literal (objectui#7122)

`scripts/__tests__/doc-version-claims.test.ts` is a ratchet over version
literals on doc surfaces, and my first correction of this sentence introduced
one. Its prescription is explicit — prefer DELETING the literal and pointing at
the truth instead, because that is the only spelling that cannot go stale
(objectui#3645 froze a spec range across 36 READMEs for thirteen majors exactly
this way). The sentence now names the upstream retirement and the fact that the
resolved spec no longer exports the symbol, with no version to go stale.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_0114Ytxr5sM1vdW19Y9WAx6E

* chore(deps): resolve the @objectstack/* family at 17.3.0 so the spec dedupes

`@objectstack/client`, `core`, `formula` and `lint` at 17.2.0 each pin
`@objectstack/spec` EXACTLY at 17.2.0. Resolving the spec alone to 17.3.0
therefore stopped satisfying them, and the console shipped TWO copies of the
spec: `vendor-objectstack` went 926.1 -> 1877.6 KB gzip and the eager closure
went 3186.1 -> 4137.7 KB against a 3191.4 KB budget, with no chunk entering or
leaving the closure.

Moving the family in the lockfile collapses the duplicate. Every declared range
already admitted 17.3.0 (`^17.0.0` on all four), so no manifest's published
contract moves by a byte -- `check-changeset-presence` independently reports
"0 of them a manifest whose published contract moved". The lockfile was
resolved by raising the four ranges temporarily, resolving, then restoring the
manifests and re-installing, so `pnpm update`'s two side effects are absent:
no declared range moved, and `zod` stays at 4.4.3 rather than splitting the
`@objectstack/*` peer context into two variants (which would have re-introduced
the very duplication this commit removes).

Measured after: eager closure 3466.1 KB, `vendor-objectstack` 1206.1 KB. The
duplicate IS gone -- markers unique to the 17.2.0 artifact fall from 92.3% to
9.2% presence in the chunk, and `defaultValue` occurrences fall 413 -> 258
against a 203 baseline. What remains is real growth, not duplication: the spec's
own browser dist is +292.2 KB gzip at 17.3.0. `check:eager-closure` therefore
stays RED by 274.7 KB, which no repair inside this repo can answer.

The family bump forces exactly one source reconciliation, and no new test reds.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_0114Ytxr5sM1vdW19Y9WAx6E

* test(types): re-point the select-option pins at 17.3.0's authoring boundary

`@objectstack/spec` 17.3.0 implements the maintainer's 2026-08-25 ruling on
objectui#6140 / objectui#6153 (Option A): `SelectOptionSchema.description` and a
type-gated `rows` become declared, authorable keys. Two pin files still asserted
the 17.2.0 truth -- that the spec REFUSES both -- so they were measurably false,
and one of them was the only remaining `Type Check` blocker (TS2344 at lines 101
and 124). Re-pointing them executes the ruling; it makes no new one.

Measured against the installed 17.3.0 rather than read from a changelog:
`SelectOptionSchema` declares six keys (`color`, `default`, `description`,
`label`, `value`, `visibleWhen`); `rows` is accepted on `textarea`, `markdown`,
`html` and `richtext` and refused on `text` / `select` as a `custom` refinement
rather than `unrecognized_keys`; `icon` and `disabled` are still refused by
name, at `options.0` when routed through `FieldSchema`.

The boundary moved, it did not disappear, so every re-point keeps a refusal
opposite it:

- `description` and `rows` are asserted ADMITTED **and** value-enforced (a
  wrongly-typed `description` is `invalid_type` at its key; `rows: 0` is
  `too_small`, `rows: '4'` is `invalid_type`). A merely-tolerated key passes the
  first assertion and fails the second, which is what makes the pair a reading.
- `icon` / `disabled` carry the refusal half, so a schema that had gone
  permissive cannot pass either file.
- The four inert rich-text keys (`toolbar` / `preview` / `minHeight` /
  `maxHeight`) are newly pinned as still-refused on all four multiline types.
  The ruling's expansion stops at `rows` (objectui#7635 records this: do not
  widen), and that door has to be seen to stay shut.
- `rows`'s type gating is pinned in both directions, because "declared" is not
  "declared everywhere".

In the convergence file the type-level halves moved for a reason worth stating:
`SelectOptionBase` derives the spec's keys BY REFERENCE, so `description`
arrived on BOTH faces with no edit to the type at all. The form face's
pre-convergence equality therefore became a SET DIFFERENCE -- the same idiom the
object-metadata face has used for `default` since the convergence -- and the
"the two faces differ on exactly `value`" assertion now says so directly instead
of excusing `description` from the comparison.

NOT done here, deliberately: the prose in `packages/types/src/field-types.ts`
and `select-option.ts` still describes the 17.2.0 boundary and is now false in
the other direction. Those comment sites are objectui#7635's declared surface.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_0114Ytxr5sM1vdW19Y9WAx6E

* chore(deps): collapse the postcss duplicate the first lockfile bump introduced

`@object-ui/cli` failed `type-check` with `TS2321: Excessive stack depth
comparing types 'Plugin & ExportedAPI' and 'Plugin'` in
`src/utils/workspace-vite.ts`, a file this branch never touched.

Cause, measured rather than inferred: the CLI's type-check program held TWO
postcss copies. `@tailwindcss/postcss@4.3.3` depended on `postcss@8.5.26` while
`autoprefixer@10.5.4` resolved its auto-installed peer to `postcss@8.5.28`, so
`Plugin` on one side and `Plugin & ExportedAPI` on the other were structurally
distinct types and the comparison exceeded the instantiation budget.
`origin/main` has a single `autoprefixer@10.5.4(postcss@8.5.26)` and no 8.5.28
at all, which is why it is green.

The duplicate is NOT from this round's family bump: `postcss@8.5.28` is present
at `36baa6d57`, and the family-bump commit's lockfile diff touches neither
postcss nor autoprefixer. It arrived with `aabc527cb`, the branch's first
lockfile bump, whose own diff shows `postcss@8.5.26 -> 8.5.28` alongside the
spec move. It stayed invisible because `turbo run type-check` aborts at its
first failing task, and `@object-ui/types` failed before `@object-ui/cli` ever
ran -- so "the 2 TS2344 are the ONLY Type Check blocker" was never a reading the
old measurement could support.

Collapsed in the lockfile only, by the same route as the `@objectstack/*` family:
all eight manifests that declare postcss already declare `^8.5.26`, which admits
8.5.28, so the ranges were raised temporarily, resolved, then restored and
re-installed. No declared range moved; `postcss@8.5.26` leaves the graph
entirely and `@tailwindcss/postcss` now shares the single 8.5.28. `postcss@8.5.23`
is a separate consumer, present on main too, and is untouched.

After: `@object-ui/cli` `tsc --noEmit` exits 0.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_0114Ytxr5sM1vdW19Y9WAx6E

* wip(spec-17.3.0): parity reconciliation in progress — INCOMPLETE AND UNREVIEWED

Rescue commit made by the PM seat after the dispatched dev was terminated
mid-task by an account session limit (HTTP 429 on claude-opus-5, resets
2026-09-05T18:00Z). Committed so the work survives container reclaim; it is
NOT a claim that any of it is correct, complete, or gated.

Observed state at rescue time, and nothing beyond it: 18 modified files and
2 untracked changesets, 550 insertions / 115 deletions against the branch
tip 339885d. No gate was run against this content by this seat.

Not present in the diff: any change to an eager-closure ceiling or
performance budget. The maintainer-authorised ceiling raise had not been
made when the agent stopped.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_0114Ytxr5sM1vdW19Y9WAx6E

* wip(spec-17.3.0): two files in progress — INCOMPLETE AND UNREVIEWED

Rescue commit made by the PM seat after the container running the dispatched
agent was restarted mid-task. Committed so the work survives; it is NOT a
claim that it is correct or finished.

Observed state at rescue time, and nothing beyond it:
  M packages/plugin-designer/src/MetadataFieldsPage.tsx
  M packages/types/src/__tests__/export-options-spec-parity.test.ts
56 insertions / 49 deletions. No gate was run against this content.

Not present: any change to an eager-closure ceiling or performance budget.
The maintainer-authorised ceiling raise had still not been made.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_0114Ytxr5sM1vdW19Y9WAx6E

* fix(spec-17.3.0): carry the ninth platform capability, and pin refusals on their ruling not its issue number

Two families of red from the `@objectstack/spec` 17.3.0 bump, both of which
executed an existing ruling rather than making a new one.

`manage_org_presentation` (3 assertions, `packages/fields`). 17.3.0 declares a
ninth platform capability; `CURATED_CAPABILITY_LABELS` carried eight, so the
spec-parity pin failed in the "spec added a member" direction it was built for
(objectui#6285 already ruled the curated set IS the spec's set, both ways). The
label is the spec artifact's own (`Manage Organization Presentation`), not an
invented one. Authored in all ten locale packs and in `useFieldTranslation.ts`,
which the widget's own docblock requires of any edit to that list; the nine
non-English strings are composed from each pack's established sibling
vocabulary (`manage_org_users`, `manage_platform_settings`) rather than
machine-translated, and a native review pass is welcome on them.

The `objectstack-ai#7496` token (14 assertions, 3 files). Every one was
`expected '<message>' to contain 'objectstack-ai#7496'`, while the sibling assertions on
`RELATIVE path only` stayed green: 17.3.0 kept all five refusals and their
reasoning and only restated provenance as `(ruled 2026-08-11)`. The pins
asserted the citation FORM, not the citation — the objectui#7702 defect shape.
Re-pinned on the durable property via a documented `CITES_ITS_RULING`, which
still discriminates the spec's prose from a local hand-written sentence (the
load-bearing mutation probe in `ObjectForm.submitRedirect.test.tsx`'s header).
Not re-pinned to the new prose verbatim, which would only move the brittleness.

Part of objectstack-ai#7122

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_0114Ytxr5sM1vdW19Y9WAx6E

* fix(spec-17.3.0): harvest three exemptions the contract outgrew, and re-derive two negative pins

The rest of the 17.3.0 red set outside the `objectstack-ai#7496` and capability families.
Every verdict below is read off the installed artifact, not off an assertion
name or a changelog.

`registry-inputs-spec-parity` (5 assertions). Four of the five were ONE fact
wearing four assertion names, two of which appear to point in opposite
directions ("a published key must lose its entry" vs "spec no longer declares
object-grid.defaultSort"). Neither reading is right: 17.3.0 made
`object-grid.defaultSort` an ADR-0087 D2 TOMBSTONE — member is
`z.never().optional()`, description opens `[REMOVED]`, `safeParse` answers
`invalid_type` `expected: 'never'` at that path. It therefore left the
authorable set while staying listed, which is precisely how the eight
tombstones before it were harvested. Its exemption, its GA-pending entry and
its carve-out row are deleted, and the block's prose parenthetical claiming a
tombstone "would NOT make them stale here" is corrected — its own cited
counter-example, the record_picker trio, was harvested exactly that way.

The fifth emptied `OFF_SPEC_ARM_EXEMPTIONS` entirely: both arms converged
upstream in the direction their own reasons named. `element:number.filter` now
accepts `[]` and judges content at `filter.0` (objectui#6206's first option);
`object-grid.data` now answers `invalid_union` at `data.provider`, the
discriminated `ViewDataSchema` shape `ObjectGridSchema.data` already resolved
to (objectui#6207's "convergence is upstream"). Neither declaration was edited
— the contract moved to them. objectstack-ai#6206 and objectstack-ai#6207 are closable as resolved-upstream.

Two negative pins whose premise evaporated, both re-derived rather than
inverted:

- `masterDetailFormTypeManifest` pinned that the manifest enum does NOT make a
  value unpublishable. 17.3.0 closed that gap deliberately: `invalid_value`
  naming the honoured pair, plus a bespoke prescription for the near-miss
  `wizard` citing ADR-0001 and the renderer measurement. The pin now records
  that both authorities agree, checks each independently, keeps a positive
  control on `simple`/`tabbed`, and pins the refusal's SHAPE so "the enum
  closed" cannot be confused with a dropped key or a cross-field rule.
- `LocationField.optionalKeys` pinned that the location value schema is
  non-strict. 17.3.0 closed the shape (`unrecognized_keys` naming the retired
  `latitude`/`longitude` pair). The test carried a note for this exact event —
  "the guard could then be delegated to it" — and the re-derived answer is NO:
  the fence guards the object handed to `onChange` and no parse stands on that
  path, so strictness changed the CONSEQUENCE of a spread regression, not the
  widget's exposure. The key-level assertions stay; the strictness is pinned.

Part of objectstack-ai#7122

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_0114Ytxr5sM1vdW19Y9WAx6E

* docs(changeset): describe the 17.3.0 capability carry and the pin re-pointing

Two changesets for the work in dc82492 and e328e36: a released one for the
`manage_org_presentation` label (`@object-ui/fields`, `@object-ui/i18n`), and an
empty-frontmatter one for the test-only pin re-pointing and exemption harvest,
which releases no package.

Part of objectstack-ai#7122

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_0114Ytxr5sM1vdW19Y9WAx6E

* chore(budget): raise the eager-closure ceiling once, on maintainer authorisation, to 17.3.0's measured cost

Raising a gate ceiling is a gate weakening and sits on the manual floor, so it
is a human's decision, not an agent's. The authorisation, verbatim:

    维护者 sam@objectstack.ai 于本轮明确授权:「抬上限,把 7685 弄绿」

recorded on objectui#7122 as decision batch 1 item 1 = "B + A" — a one-time,
cause-recorded adjustment of exactly the measured delta, with the upstream card
filed alongside.

⛔ NOT routine growth, and the body must not read as if it were. The residue is
`@objectstack/spec` 17.3.0's own browser-dist growth: +292.2 KB gzip on the spec
package, whose measured mechanism is that 17.3.0 lengthened the Zod
`.describe()` doc strings shipped in the browser build — authoring
documentation prose, delivered on every page load.

⛔ NOT duplication either. That was the larger, separate problem and this branch
already fixed it by moving the `@objectstack/*` family together in the lockfile:
−671 KB, with markers unique to 17.2.0 falling from 92.3% to 1.0% of 104 and the
single survivor accounted for. No chunk entered or left the closure.

⭐ The honest long-term fix is upstream and this ceiling is its marker, not its
answer: a `describe()`-stripped browser build returns ~292 KB to EVERY consumer
of the spec. Filed as objectstack#16063 and recorded in the gate as the restore
condition.

Four constants, two ceiling/baseline pairs, measured by `pnpm build` (exit 0,
43/43 — 43/43 CACHED on the re-read, which observes rather than argues the
"nothing here reaches the bundler" invariant) reading
apps/console/dist/eager-closure.json on 34a1578:

  MAX_EAGER_CLOSURE_GZIP_BYTES              3_268_000 -> 3_597_000
  BASELINE                                  3_222_314 -> 3_551_191 (48/517 -> 50/518)
  PER_CHUNK_GZIP_CEILINGS.vendor-objectstack  967_000 -> 1_254_000
  PER_CHUNK_BASELINE.vendor-objectstack       948_461 -> 1_235_029

Headroom is 45,809 (0.50x) and 18,971 (0.21x) of the 91,136-byte regression the
gate exists to catch — the proportions the retiring pairs carried (0.50x, 0.20x)
— so the gate still reds on a repeat of objectui#5266. `check:eager-closure`
exits 0 with sensitivity ✅ on all five ceilings. The three per-chunk lines that
still pass (i18n-locales, framework, ui-components) were NOT touched.

The unit test moves with the constants because it deliberately retypes
`BASELINE.gzipBytes` rendered (3146.8 -> 3468.0) rather than deriving it, and
the baseline prose pins are re-pointed at the new commit.

Part of objectstack-ai#7122

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_0114Ytxr5sM1vdW19Y9WAx6E

* fix(app-shell,plugin-designer): declare the lookup guard's stricter-than-spec refusal, and make its message accurate (objectui#7122)

The guard's predicate is `typeof reference === 'string' && reference.trim()
!== ''`, which is STRICTER than the contract. Measured on the installed
17.3.0, at field level and again through the whole document:

  FieldSchema.safeParse({ type: 'lookup', label: 'L', reference: '   ' })
    => success = true
  ObjectSchema.safeParse({ …, fields: { rel: { …, reference: '   ' } } })
    => success = true

— the spec ACCEPTS a whitespace-only target and both writers refuse it.
objectui being stricter than the platform is a divergence, not a neutral
choice, so it is now STATED: in both docblocks, in the changeset, in the
refusal message the author actually reads, and pinned in both writers'
tests so it cannot go silent again.

⭐ The `.trim()` is KEPT. A whitespace-only `reference` names no object, so
admitting it buys the author nothing and only moves the identical failure
past the guard, past the PUT and into a stored document, where it surfaces
with no field named. This guard exists precisely to stop a target-less
lookup being saved, and a blank target is a target-less lookup that happens
to parse. ⛔ No accept/refuse behaviour changed: the predicate is
byte-identical.

⚠️ The spec accepting `'   '` while refusing `''` reads as an upstream gap
rather than deliberate latitude — its own refusal prose says "non-empty …
naming the target object", and `ObjectSchema.fields`' key grammar
(/^[a-z_][a-z0-9_]*$/) admits no whitespace-bearing name for it to resolve
to. Filed as objectstack#16126; the new pins are designed to go red when it
lands, which is the signal to retire the declaration, not to weaken the
guard.

The message is also corrected. It said the field "has none" for every
refused value, which is wrong for two of the four states: a non-string
`reference` is refused as `invalid_type` at that path, not as a missing
target (so "supply a target" is the wrong repair to prescribe for
`reference: 42`), and a whitespace-only one is not refused by the spec at
all, so the 422 the message promised could not be delivered for it. Each of
the four states now gets its own accurate diagnosis and consequence, via a
`describeUnusableTarget` split out in both writers.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_0114Ytxr5sM1vdW19Y9WAx6E

* test(plugin-form,console): tighten CITES_ITS_RULING, and make the fourth pin use it (objectui#7122)

Two pin-quality defects the contract review found in this branch's own
re-point, both of the shape this card has been fixing all round.

**The loose alternative discriminated nothing.** The regex was first written
`/\(ruled \d{4}-\d{2}-\d{2}\)|#\d{3,}/`, two alternatives meant to admit
either spelling upstream uses. But `#\d{3,}` matches any sentence citing
`objectui#NNNN`, and this repo's own hand-written messages routinely do — so
a locally authored sentence satisfied it, and telling those two apart is the
assertion's entire job. Only the `(ruled …)` half was ever load-bearing.

It was also unnecessary, which is the measurement that settled it. Both
spellings, read off the installed artifacts rather than recalled:

  17.2.0  "… and this is an absolute URL (ruled 2026-08-11 on objectstack-ai#7496)."
  17.3.0  "… and this is an absolute URL (ruled 2026-08-11)."

The issue number never appears OUTSIDE that parenthesis, so `(ruled ` + a
date already matched both releases on its own. It is now
`/\(ruled \d{4}-\d{2}-\d{2}(?: on #\d{3,})?\)/`: the optional tail keeps the
17.2.0 spelling admissible — the two-form latitude the alternative was added
for — without admitting a bare local `objectstack-ai#7122`. Verified against both measured
messages and against four local-prose counter-examples.

**The fourth file was the odd one out.**
`packages/plugin-form/src/submitRedirect.test.ts` had been re-pointed to the
literal `'ruled 2026-08-11'` while its three siblings used the shape — the
same brittleness one word along, a date instead of an issue number, and four
files disagreeing about what the pinned property even is. It now carries
`CITES_ITS_RULING` too, with the reasoning.

Test-only; no runtime byte moves.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_0114Ytxr5sM1vdW19Y9WAx6E

* docs(changeset): grade objectui's own breaking behaviour `minor`, with the semantics (objectui#7122)

`AGENTS.md:239` grades objectui's own breaking changes `minor` — never
`major`, because any `major` in the fixed group pushes all 39 packages off
`@objectstack`'s major — with the breaking semantics written into the
changeset body. Three package entries were graded `patch` and should not
have been.

- `@object-ui/app-shell` + `@object-ui/plugin-designer` → `minor`. A
  `lookup`/`master_detail` field with a missing or empty `reference` is now
  refused before any PUT; a caller that previously got a request issued (and
  accepted by a 17.2.0 backend) now gets a rejection and no request at all.
  The changeset also declares the whitespace-only divergence and the message
  correction (objectstack#16126).
- `@object-ui/types` → `minor`. The exported `ObjectSchemaClientExtensions`
  narrows from `interface { editMode?: 'modal' | 'page' }` to
  `type … = Record<never, never>`. Two breaking consequences, both named:
  it no longer declares `editMode` (the spec's `ServiceObject` now carries
  it, so `ObjectSchemaMetadata` still has it but code written against the
  extension type alone does not), and `interface` → alias ends declaration
  merging, so a consumer that reopened the interface to add its own member
  no longer compiles.

The pin-repointing changeset additionally records the `CITES_ITS_RULING`
tightening and the fourth file (test-only, empty frontmatter, releases
nothing).

Gates: check-changeset-presence 0, -fixed 0, -no-major 0.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_0114Ytxr5sM1vdW19Y9WAx6E

* ci(live-e2e): move the backend pins to 17.3.0 with the matching showcase ref

This branch's lockfile resolves `@objectstack/spec` to 17.3.0, but
`e2e/live/ci/backend.env` still pinned `OBJECTSTACK_VERSION=17.2.0`. The
pin test imported from main (`scripts/__tests__/ci-cd-pipeline-doc.test.ts`)
reads both numbers and requires them equal, so the lockfile bump — this
PR's whole purpose — is what trips it. Fix it in the direction the change
came from, as that test's own message instructs.

Both lines move together. `OBJECTSTACK_REF` is not machine-checked, by
design: resolving the release tag needs the objectstack repository, which
the unit lane cannot reach. Bumping only the version would turn the gate
green while pointing the live-e2e lane at showcase metadata from the wrong
tree.

The ref is the commit `@objectstack/cli@17.3.0` points at. That tag is
annotated, so it must be dereferenced: `refs/tags/@objectstack/cli@17.3.0`
is tag object 1177d3ee591f72e3b8c828fbec46f4e113ff5c4a, which peels
(`^{}`) to commit 8a1bad8b8ee7189a54229368400b5b427e3ad5e2. The tag-object
sha is not the commit sha, and `start-backend.sh` does
`git fetch --depth 1 origin "$OBJECTSTACK_REF"`, so the un-peeled sha would
have been silently wrong.

No declared dependency range and no published package's accept/refuse
behaviour is touched: `e2e/` is not a workspace package and ships in
nothing.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_0114Ytxr5sM1vdW19Y9WAx6E

* docs(plugin-list): give the view-type map its tenth member, `page`

The map in `packages/plugin-list/README.md` is keyed by
`NonNullable<ListViewSchema['viewType']>`, so it is total by construction
and a member added to the union fails the block. The map arrived on main
(objectui#8110) written against @objectstack/spec 17.2.0's nine members;
this branch pins the spec at 17.3.0, which declares a tenth, `page`. The
two are only in the same tree as of this merge, which is why the branch's
own Doc Snippet Type Check ran green and the failure appears here:

  packages/plugin-list/README.md:200:7  TS2741: Property 'page' is missing
  in type '{ grid: …; tree: string; }' but required in type
  'Record<NonNullable<"map" | … | "page" | …>, string>'.

The gloss is read off the installed 17.3.0 artifact, not guessed:
`node_modules/@objectstack/spec/src/ui/view.zod.ts:1655` declares the
member as "Mount an already-published page", and the two refusals that
police it — VIEW_PAGE_MOUNT_NEEDS_PAGE_NAME (:1492) and
VIEW_PAGE_MOUNT_HAS_COLUMNS (:1502) — both say the view has no rows and
no column list of its own. Phrased like its nine siblings: one terse
rendering of what the reader sees, naming no driving field.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_0114Ytxr5sM1vdW19Y9WAx6E

* chore(changeset): drop the lookup-guard declaration — this branch no longer authors it

Part of objectstack-ai#7122.

`.changeset/7122-lookup-target-required-before-save.md` graded
`@object-ui/app-shell` and `@object-ui/plugin-designer` as `minor` *because of*
the lookup / master_detail target guard, with the breaking semantics and the
declared whitespace divergence written into its body. Every one of those claims
now belongs to objectstack-ai#8076's `.changeset/7714-lookup-draft-stays-client-side.md`,
which arrived on `main` with the guard itself.

Determined mechanically against `bdb4dbd58`, not by reading the body:

  git diff --name-only bdb4dbd -- packages/plugin-designer  =>  empty
  git diff --name-only bdb4dbd -- packages/app-shell        =>  15 files

- `@object-ui/plugin-designer`: this branch changes nothing in it any more, so
  the entry declared a release for no change at all.
- `@object-ui/app-shell`: still changed, but only by the spec-17.3.0 parity
  work — the ValidationPanel `unreachable` label, the flow-inspector renames,
  the palette-exclusion ledger, and three pin re-points. That surface already
  carries its own accurate declaration at the grade it warrants,
  `.changeset/7122-spec-17-3-0-reconciliation.md` (`patch`), which names those
  changes specifically. So app-shell IS regraded here, from `minor` to `patch`:
  the `minor` claim is withdrawn and the pre-existing `patch` entry stands.

Rewriting this file's body instead of deleting it would have duplicated that
declaration; nothing in it survives the guard's departure.

Arbiter, exit code captured before any pipe:

  node scripts/check-changeset-presence.mjs   => exit 0
    "48 source file(s) of 12 released package(s) changed, and this change
     declares 8 changeset(s)"
  node scripts/check-changeset-no-major.mjs   => exit 0
  node scripts/check-changeset-fixed.mjs      => exit 0

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_0114Ytxr5sM1vdW19Y9WAx6E

* test(console): ledger the three blocks @objectstack/spec 17.3.0 adds with an empty shape

Part of objectstack-ai#7122.

The `main` merge brought objectstack-ai#8212's census gate onto the 17.3.0 pin for the first
time, and it did exactly what it exists to do: it named three
`ComponentPropsMap` entries this gate neither judges nor accounts for.

    accounts for every spec-carried block …
      + ["cloud-connection:panel", "marketplace:installed-list", "mcp:connect-agent"]
    states the size of the population it judges
      - specCarried: 42   + specCarried: 45

One fact, two assertions. All three are new in `@objectstack/spec` 17.3.0 and
MEASURED on the installed artifact, not inferred: each resolves to an object
schema with ZERO top-level keys, so neither direction of this gate has a
question to ask about them. That is the ledger's `EMPTY SPEC SHAPE` class, and
the entries are asserted against `specTopLevelKeys(type) === []` — self-clearing
the day upstream gives one of them an authoring surface.

⚠️ EMPTY SPEC SHAPE is recorded rather than NOT REGISTERED even though both
ledger arms happen to pass here, and the difference is truth, not convenience:
`@object-ui/app-shell` DOES register all three propless
(`CloudConnectionPanel.tsx`, `InstalledListWidget.tsx`, `ConnectAgentWidget.tsx`),
and this file does not import app-shell — so the NOT-REGISTERED arm would be
satisfied by an import-graph accident while stating something false about the
repo. `app:launcher` and `global:notifications` are ledgered on exactly this
reasoning already.

⛔ Not a gate weakening, and the distinction is checkable rather than asserted:
no threshold moved, no exemption widened what the gate tolerates, and `judged`
and `registeredPropless` are unchanged at 29 and 7 — the pin ADDED three blocks
rather than moving any across the partition.

Also de-counts one sentence in the ledger's docblock. "the recorded reason even
for the two the app shell does register" was a LIVE figure that this change
makes five and nothing pins; it now names no count and says why.

    pnpm exec vitest run apps/console/src/__tests__/registry-inputs-spec-parity.test.ts
      Tests  198 passed (198)      (was 2 failed | 196 passed)

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_0114Ytxr5sM1vdW19Y9WAx6E

* fix(types): raise the declared @objectstack/spec floor to ^17.3.0

Part of objectstack-ai#7122. Closes the `[floor-too-low]` finding on objectui#7688 for
`@object-ui/types`.

`packages/types/dist/spec-report.d.ts` names `FilterCondition` from
`@objectstack/spec`, which `17.0.0` does not export, so `^17.0.0` was a claim
the artifact does not support. `scripts/check-spec-range-floors.mjs` names
`^17.3.0` as the lowest published version carrying every symbol the package
references, and raising the range is the remedy the gate itself prescribes —
⛔ never a tolerant re-declaration on this side (objectui#5793).

⚠️ THIS IS BUMP-CAUSED, NOT PRE-EXISTING, and objectui#7688 records the
opposite. Measured on both sides today rather than reasoned about:

  main (spec 17.2.0)   `Spec Range Floors` — the last EIGHT scheduled runs are
                       all `success`, most recently at `c2e3cee2c` 04:27Z. CI
                       builds the workspace, so none is the `no-artifact` shape
                       that card's own caveat warns about.

  this tree            `pnpm check:spec-floors -- --cross-check` (the workflow's
  (spec 17.3.0)        own invocation, after `pnpm build` 43/43) exits 1 with
                       exactly this finding; 278 (subpath, symbol) pairs across
                       19 published packages judged, 49 entry points cross-
                       checked. With this raise it exits 0 on the same tree.

That card's justification — `runtimeFilter?: FilterCondition` is byte-identical
in the 17.2.0 and 17.3.0 artifacts — is a claim about the SPEC's artifact. The
gate reads what `tsc` emits for THIS repo while resolving against the installed
spec, which is a different thing. ⛔ The mechanism behind the divergence is NOT
measured here and is deliberately not guessed at; only the outcome is.

Why it could not wait for objectui#7688: the PR-facing copy of this gate is
push-only and by its own header "cannot make anyone's pull request red", but the
blocking copy runs on the PUBLISH path. Left alone, the first symptom would have
been a cancelled release rather than a red check.

Graded on `@object-ui/types`'s existing `minor` entry, which already carries a
breaking-surface declaration; the raise is written into its body. Breaking for a
consumer pinned below 17.3.0, which can no longer resolve the package. Precedent
for a floor above the family minimum: `@object-ui/core` and
`@object-ui/data-objectstack` declare `^17.2.0`, `@object-ui/plugin-detail`
`^17.1.0`.

⛔ Raising a published range was previously ruled out for this branch (objectstack-ai#7685 §8,
"Not raised here, as instructed") on the premise that the finding was old debt.
The measurement above retires that premise, and the maintainer authorised the
raise on this branch after seeing it.

The lockfile moves by exactly one line — the recorded specifier. The RESOLUTION
is unchanged at `17.3.0(ai@7.0.65(zod@4.4.3))`, so no dependency moves and
`ci-cd-pipeline-doc.test.ts`'s backend.env/lockfile equality still holds.

Gates on this tree: `check:spec-floors -- --cross-check` 0 (was 1),
`check-changeset-presence` / `-no-major` / `-fixed` 0, `check:phantom-deps` 0,
`check:control-bytes` 0.

Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_0114Ytxr5sM1vdW19Y9WAx6E

---------

Co-authored-by: os-sam <sam@objectstack.ai>
Co-authored-by: Claude Opus 5 <noreply@anthropic.com>
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

FilterBuilder 切换行的 field 后 value 原样留下 —— 文本值落到 number 列,输入框显示空而行仍带着该值

2 participants