Repository navigation
feat(spec)!: retire the boolean arm of a relationship field's inlineEdit, which read as absent once a parent field group decides the placement - #36802
Conversation
A field group of the parent decides whether the parent's form inlines a child; true and false both read as an absent inlineEdit at every reader. The arm is refused at the parse with its prescription, a protocol-18 conversion deletes it from stored sources, and the D3 entry records it. Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_011y7As8yeqbR9TKANdPKRxt
…elds The golden corpus places its line items with a parent field group, test fixtures respell or drop the retired value, docs teach 'grid' | 'form', and stale comments name the field group as what inlines a child. Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_011y7As8yeqbR9TKANdPKRxt
…ctor Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_011y7As8yeqbR9TKANdPKRxt
…id/form select With the boolean arm retired a select spells every value, so the union reason that kept the key off the field form no longer holds: the reconciliation ledger drops its row and the key leaves that ruled class. Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_011y7As8yeqbR9TKANdPKRxt
📓 Docs Drift CheckThis PR changes 4 package(s): 27 hand-written doc(s) name something this change touched — list omitted above 15 rows. Re-derive on the tree named below: ⛔ 7 release-owned page(s) also affected — read-only, see AGENTS.md Documentation Guardrails. What this run could not see
Coarse fallback — 186 page(s) merely mention a changed package (the pre-#9192 predicate, kept for the deliberately-wide backstop): Which tree this was computed onThis run read A worktree cut from an older # while this PR is open — GitHub drops the merge commit once it closes
git fetch origin 0616c3001ae4cdb31819220d1dd60371472758f0 && git checkout 0616c3001ae4cdb31819220d1dd60371472758f0
# afterwards, rebuild it from the two parents, which stay fetchable
git fetch origin 5ff858b798c5f68ad8910729c65bb6bdca4844f3 ca353ccee80626d8346b6e19fc46801095e92fec && git checkout -B drift-repro 5ff858b798c5f68ad8910729c65bb6bdca4844f3 && git merge --no-ff ca353ccee80626d8346b6e19fc46801095e92fec
node scripts/docs-audit/affected-docs.mjs --json 5ff858b798c5f68ad8910729c65bb6bdca4844f3
|
…nd the predicate census counts the new form row The scenario scorer's master-detail tag reads the form factor, so each corpus line item keeps 'grid' beside the parent field group that places it. Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_011y7As8yeqbR9TKANdPKRxt
Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_011y7As8yeqbR9TKANdPKRxt
…nt source hashes over the merge Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_011y7As8yeqbR9TKANdPKRxt
…tire-inline-edit-true
Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_011y7As5bdhV5T4N9vpjmZzH
|
repo:objectstack#7 · os-alice · session_011y7As5bdhV5T4N9vpjmZzH Contract-review-claim: Taking the contract review of this head (narrowing face, |
|
repo:objectstack#7 · os-alice · session_011y7As5bdhV5T4N9vpjmZzH Contract reviewServed-tier: Full first-round review of this head; no earlier record or claim stood on the PR or on card 35926. Claim: comment 7138336858. Read-only shape: the diff ① Derived judgments
② Semver level
③ Boundary flags
④ Design judgment
Findings:
No must-fix on the contract faces. Not a contract finding, for the seat: GitHub reports this head Implemented-by: Review run: an isolated one-shot sub-agent of the seat session, which ran no other agent; the seat adopts. VERDICT: PASS |
|
repo:objectstack#7 · os-alice · session_011y7As5bdhV5T4N9vpjmZzH 席位核对 — REWORK · head 5874e77The substance is accepted: the contract review of this head is PASS (comment 7138399935) and nothing below asks for a design change. The head cannot land as it stands, and one declaration line is still in its pre-ACCEPT spelling, so the verdict is REWORK with three mechanical items. Must-fix
The six checks
Sentences read one by one. Changeset: the summary line, the three FROM / TO rows, the one-line fix ( |
…tire-inline-edit-true Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_011y7As5bdhV5T4N9vpjmZzH
…ch entry Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_011y7As5bdhV5T4N9vpjmZzH
|
repo:objectstack#7 · os-alice · session_011y7As5bdhV5T4N9vpjmZzH Contract-review-claim: Taking the delta read of contract review 7138399935 on this head (narrowing face, |
|
repo:objectstack#7 · os-alice · session_011y7As5bdhV5T4N9vpjmZzH Contract reviewServed-tier: Delta read of contract review 7138399935 (PASS at head 5874e77), which said the merged head owes one. Claim: comment 7144213273. That round left should-fix findings, so the follow-up head is read as a delta by the same reviewing session; this run is a fresh one-shot sub-agent of it and re-measured what it carries over instead of trusting it. Read-only shape: the range ① Derived judgments
② Semver level
③ Boundary flags
④ Design judgment
Findings, carried from 7138399935 and re-stated for this head:
No must-fix on the contract faces. Implemented-by: Review run: an isolated one-shot sub-agent of the seat session, which ran no other agent; the seat adopts. VERDICT: PASS |
|
repo:objectstack#7 · os-alice · session_011y7As5bdhV5T4N9vpjmZzH 席位核对 — ACCEPT · head ca353ccThe three must-fix items of seat record 7138432732 are done on this head, the delta contract review is PASS (comment 7144263532), and the dev owes nothing more. Two seat-side items remain before the handoff; neither moves the head. Seat-owed before the handoff (no head move)
Rework items, each checked
Gates, check-runs at this head. 61 success, 9 expected skips, 0 unexpected skips, 0 failed, 0 pending; The dogfood battery: accepted as head-pinned evidence, no re-run asked. The rule asks for a battery pinned to the head, complete, with every red fixed or reported. The report's
A build cut short can leave a half-written Sentences read one by one (the prose delta). Changeset: the front-matter line Other checks. Shape: open, draft, base Landing clause. A declared narrowing: it waits for the maintainer's approval. No seat readies, arms or queues it on green. The handoff to os-zhuang is ready once items 1 and 2 above are done on this same head. |
|
repo:objectstack#7 · os-alice · session_011y7As5bdhV5T4N9vpjmZzH Contract reviewServed-tier: Closing delta record on the same head as 7144263532. The head has not moved: no file changed since that record, so its sections ① to ④ stand as written and are not repeated. What changed is outside the tree: the seat filed one card and rewrote the PR body. This record reads those two acts against the two findings that were carried, and nothing else. Read-only shape: cards 37042 and 37127, the PR body as it now reads, and the head's check-runs. ① Derived judgments
② Semver level
③ Boundary flags
④ Design judgment
Findings:
S1 is the skills text, carried by card 37042 and named on the Implemented-by: Review run: an isolated one-shot sub-agent of the seat session, which ran no other agent; the seat adopts. VERDICT: PASS |
|
repo:objectstack#7 · os-alice · session_011y7As5bdhV5T4N9vpjmZzH 维护者速读
Review request — declared narrowing (
|
…jectstack-ai#36814) <!-- claude-projects-attribution: {"github_login":"os-support-ai"} --> _Requested by **Yibo Wang** · [project thread](https://claude.ai/code/project/chan_01BVUyyPie8gHwoPM18iABwB?thread=cmsg_01BVUyyPie8gHwoPM18iABwB9Gqqp1VYZwEqbXEm1YsTjU)_ Fixes objectstack-ai#36447 Clause-②: no Metadata-protocol: none repo:objectstack#3 · os-support-ai · session_01WGufziH9MVhWYLVCiw5eXB ## 维护者速读 - 报表设计器右侧属性面板在英文界面下,所有说明文字和栏目名改成业务用语(数据来源、分组、指标、排序),时间段与导出下面的六个子项也各有自己的名称和说明,与中文面板说法一致;日文、西班牙文同步补上了新增的六项。 - 属于"报表与仪表盘面板说业务话"这项体验工作的英文收尾,替用英文界面搭报表的业务管理员解决看不懂开发术语的问题。 - 只改了说明文字和表单排布,不改任何可保存的设置;出错最多是某句提示读起来别扭,直接撤回即可。 - 无 ## What changes The report authoring form (`packages/spec/src/ui/report.form.ts`) produces the English rows the console's report panel draws below its curated controls. Per the seat route (producer-first, no `en` overlay, no rename of a section title whose key is slugged from its label), every such row now reads in business terms carrying the zh-CN meaning: data source, grouping, metric, sort. - **Round 1**: reworded the section descriptions and hints that no pin held. - **Round 2**, on the seat's widened surface (claim amendment 7119493070): - Rewords the six ledger-pinned hints and moves the two platform-objects echo-decision ledgers' `en` sources with them.⚠️ Each moved row records that its zh-CN / ja-JP / es-ES verdicts and values were taken against the OLD English and were not re-judged. - Declares the `dateRange` and `exportOptions` children and a Description hint as form rows, with a completeness pin (`report-form-composite-children.test.ts`, the objectstack-ai#30267 view-form shape). - Renames the joined-block and sort row titles in the form and in the item schema `.meta({ title })` together, which the repeater-item-titles pin requires. - **Translations**: the 13 new catalog leaves are regenerated in every platform `*.metadata-forms.generated.ts`, with zh-CN, ja-JP and es-ES values authored. The other locales carry the English fill and its provenance entry. - The console's zh overlay (`metadata-form-zh-cn.ts`) carries the six new children: that file's rule is that every `report` field string the curated inspector renders lives there, copied from the platform zh-CN bundle. - **Measured premise correction**: the dashboard **widget** panel (`DashboardWidgetInspector.tsx`) draws **zero** rows from spec text. Its rows are console strings (`engine.inspector.widget.*`) that already read "Data source", "Group by", "Metrics" in English. **Row table — every English row the report panel draws from spec text** (lines on base 4c93f88; enumerated by rendering `ReportDefaultInspector` in English for summary, matrix and joined reports with every section open, then re-rendered at the final head) | Row | Source | Before | After | |:---|:---|:---|:---| | Section "Basics", description | report.form.ts:24 | Identity and report type. | unchanged (same meaning as zh-CN 标识与报表类型) | | Description, hint | i18n.zod.ts:275 (shared `I18nLabel` describe; no form hint) | Display label — the default-language string, or an inline locale map ({ en, "zh-CN" }) resolved at render time | One sentence on what this report shows, displayed under its name. (form row hint; the shared describe is untouched) | | Section "Dataset binding", label | report.form.ts:34 | Dataset binding | **left over** (slugged section key) | | Section "Dataset binding", description | report.form.ts:35 | The semantic-layer dataset this report renders. Values are the dataset’s measures; rows are its dimensions. | Where the report’s numbers come from, how they are grouped and sorted, and which records open when you click a row. | | Order, label | prettified | Order | Sort Order | | Order, hint | report.form.ts:51 | Sort keys, most significant first (a rows/columns dimension or a values measure). Time dimensions are chronological by default. | What to sort by, most important first (a grouping or a metric). Time groupings sort in date order by default. | | Order rows, label | report.form.ts:57 = report.zod.ts:107 title | Order By | Sort By | | Drilldown, hint | report.form.ts:61 | Click an aggregated row/cell to open the underlying records | Click a summarized row or cell to open the records behind it. | | Section "Joined blocks", label | report.form.ts:65 | Joined blocks | **left over** (slugged section key) | | Section "Joined blocks", description | report.form.ts:66 | Additional dataset-bound blocks stacked into a single report (joined reports only). | Other blocks stacked into the same report, each with its own data source (joined reports only). | | Blocks, hint | report.form.ts:72 | Dataset-bound sub-reports (joined report only) | Sub-reports, each with its own data source (joined reports only). | | Blocks rows | report.form.ts:89-94 = `JoinedReportBlockSchema` titles | Dataset / Rows / Columns / Values / Order | Data Source / Group By / Group Columns By / Metrics / Sort Order | | Section "Filter & chart", description | report.form.ts:101 | Render-time scope filter and chart presentation. | Filter conditions and how the chart is shown. | | Runtime Filter, hint | report.form.ts:105 | Render-time scope filter, ANDed at query time | A filter applied whenever the report is shown, on top of the data source’s own conditions. | | Date Range, hint | report.form.ts:122 | Default period and custom-range switch. The dimension must be a date dimension of the dataset; leave it empty when the dataset has exactly one. | The period the report opens with, and whether people may choose their own range. | | Date Range children | report.zod.ts:702-705 describes (no form rows) | Dimension: Dataset dimension (declared `type: 'date'`) the window applies to; omitted = the dataset's one date dimension · Default Range: Default date range preset · Allow Custom Range: Allow users to pick a custom date range | Date Field: The date grouping of the data source the period applies to. Leave it empty when the data source has only one. · Default Period: The period the report opens with. · Allow Custom Range: Let people pick their own start and end dates. | | Export Options, hint | report.form.ts:123 | Download formats (csv, xlsx) and file name. Who may download is the export permission on the dataset object. | Download formats (csv, xlsx) and file name. Who may download is set by the export permission on the data source’s object. | | Export Options children | list-view-export-options.ts:195-198 describes (no form rows) | Formats: Formats the report's export control offers (default: ['csv', 'xlsx']); an empty list turns the control off · Include Headers: Include column headers in the exported file (default true) · File Name Prefix: Download file name prefix — replaces the report label in the generated file name | Formats: The download formats offered. Left unset, both csv and xlsx are offered; an empty list turns downloads off. · Include Headers: Put the column names in the first row of the downloaded file. · File Name: The start of the downloaded file’s name, used instead of the report name. | Rows the panel does not draw, because its curated controls replace them (the server-served form still renders them): | Row | Source | Before | After | |:---|:---|:---|:---| | Type, hint | report.form.ts:30 | Report type: tabular/summary/matrix/joined | Report type: tabular, summary, matrix or joined. | | Dataset, hint | report.form.ts:39 | Dataset to bind (measures/dimensions come from its semantic layer) | The report reads its numbers from here; everyone sees only the records they have access to. | | Values, hint | report.form.ts:40 | Measure names (from the dataset) to display | The metrics to total or count (from the data source). | | Rows, hint | report.form.ts:41 | Dimension names (from the dataset) to group rows by | The fields to group by (from the data source). | | Columns, hint | report.form.ts:43 | Dimension names across (matrix only) | Groups spread across the columns (matrix reports only). | | Chart, hint | report.form.ts:108 | Chart config (type, legend, colors) | Chart type and settings. | **Left over — section titles whose key is slugged from the label** (not renamed, per the seat route: renaming moves the `dataset_binding` / `joined_blocks` keys of the zh overlay and of every `metadataForms` catalog): - "Dataset binding" (report.form.ts:34) - "Joined blocks" (report.form.ts:65) Unchanged on purpose: the "Runtime Filter" and "Drilldown" labels (zh-CN reads the same words; the ledger records both as correct English). The top-level Dataset / Values / Rows / Columns labels are not drawn by the panel. The shared `I18nLabel` and list-view export describes are untouched, per the seat route. ## Tests <details><summary>Spec, platform translations, console tests — green at 60b7741; the last commit f2cbae0 touches two test files only, re-run green</summary> - spec: `pnpm --filter @objectstack/spec exec vitest run src/ui/` plus repeater-item-titles, metadata-form-declared-rows.pin, i18n-resolver and schema-index: Test Files 192 passed (192), Tests 7209 passed (7209). `pnpm --filter @objectstack/spec typecheck` exit 0. - New pin `src/ui/report-form-composite-children.test.ts`: 6 tests. Ablation through `scripts/ablation-replace.mjs`, deleting the `includeHeaders` row: "Tests 1 failed / 5 passed", restored blob == HEAD. - platform-objects: `pnpm --filter @objectstack/platform-objects test`: Test Files 125 passed (125), Tests 2126 passed (2126). This includes both report echo-decision ledgers and the object-lifecycle positive control (763, then 765 after the merge of main, then 771). - ui, from `ui/`, over every report-form reader (all `ReportDefaultInspector*`, `panelBusinessWording-36373`, `report-schema`, `metadata-form-i18n`, `InterfacesPillar.report*`, `metadataError.report*`, `ReportConfigPanel*`, `ReportView*` and more, 35 files): first run 17 failed in 5 files, all pinning the old labels. After those pins moved: 5 passed (5), 37 tests; the other 30 files passed. - At merged head 60b7741: platform-objects 125/125 files, 2126/2126 tests; spec 192/192, 7209/7209; ui 35/35, 273/273. Every run exited 0 under the verify lock. - f2cbae0: `check:test-source-alias` red on CI (lane `lint-ci-engine`, rolled up as Lint & Repo Gates). Cause: the two edited pins reach the console's dynamic `@objectstack/lint` / `@objectstack/formula` imports inside a case's clock. Fix: module-top side-effect imports. Local result: `check-test-source-alias OK`, EXIT=0, and the two files pass 2/2 files, 6/6 tests. </details> ## Acceptance notes - The ja-JP and es-ES values of the six reworded ledger rows still render the old developer meaning (the zh-CN values already matched the business meaning). Re-judging them belongs to a translator pass, not this card. - The Default Period select shows the stored preset (`this_month`) as its option text, in both locales: the enum has no option labels in this form. Out of scope here. - Open draft PR objectstack-ai#36802 regenerates the same bundles; the generated files are `merge=os-regen`, so whichever lands second regenerates. ## Verification First read, by risk: `packages/spec/src/ui/report.form.ts` (the declared children and every reworded row); `packages/platform-objects/src/apps/translations/report-form-echo-decisions.test.ts` (moved `en` sources, counts and their reason); `packages/spec/src/ui/report.zod.ts` (six `.meta({ title })` strings, prose only). Two-minute check: open a summary report in the Studio with the console in English and expand "Period & export". It should show Date Field, Default Period and Allow Custom Range, then Formats, Include Headers and File Name, each with a plain-language hint. Switch to Chinese and the same rows read 日期字段 / 默认时间段 / 允许自定义范围 / 格式 / 包含表头 / 文件名. --- _Generated by [Claude Code](https://claude.ai/code/session_01WGufziH9MVhWYLVCiw5eXB)_ <!-- signed: repo:objectstack#3 · os-support-ai · session_01WGufziH9MVhWYLVCiw5eXB --> --------- Co-authored-by: Claude <noreply@anthropic.com>
…note say which toolbar draws Refresh (objectstack-ai#36872) <!-- claude-projects-attribution: {"github_login":"os-support-ai"} --> _Requested by **Yibo Wang** · [project thread](https://claude.ai/code/project/chan_01BVUyyPie8gHwoPM18iABwB?thread=cmsg_01BVUyyPie8gHwoPM18iABwB9Gqqp1VYZwEqbXEm1YsTjU)_ Fixes objectstack-ai#36353 Clause-②: no Metadata-protocol: none repo:objectstack#3 · os-support-ai · session_01WGufziH9MVhWYLVCiw5eXB ## 维护者速读 - 用户无感:视图元数据里「紧凑工具栏」这一项的说明文字改了,写明默认就是紧凑工具栏、紧凑工具栏上没有刷新按钮;界面与行为都不变。 - 属于「列表页重做」专题的收尾:上一轮已把「刷新开关只管宽工具栏」写进刷新开关的说明,这次把相邻的工具栏说明和审计台账补齐。 - 出错时最坏是说明文字不准,作者或智能体误判某个开关管哪个工具栏;只改文字,可整体撤回。 - 无。 ## What changes - `packages/spec/src/ui/view.zod.ts`, the `compactToolbar` describe: the first sentence is kept and two are added. It now says the compact toolbar is on by default (omitted or `true`; `false` draws the wide toolbar, one button per control) and that the compact toolbar draws no Refresh button, so `userActions.refresh` governs only the wide toolbar; pull-to-refresh is unaffected by either key. The wording follows the `userActions.refresh` describe that objectstack-ai#36339 landed ("Governs only the wide toolbar's Refresh button (`compactToolbar: false`): the default toolbar has no Refresh, so the toggle changes nothing there."). - `packages/spec/src/ui/view.form.ts`: the view form's `compactToolbar` hint mirrors the new describe. The hint == describe pin (`src/ui/view-form-composite-children.test.ts`, "top-level rows that gained a hint carry their schema description") requires it. - `packages/spec/liveness/view.json`, the `userActions` note: the `userActions.refresh` sentence now says it drives only the wide toolbar's Refresh button and names the reader by line: `showRefresh` at `ui/packages/plugin-list/src/ListView.tsx:2710`, the button at `:8125` behind `!compactToolbar`, measured at `5c2e34cdb`. The verdict stays `live`. - Regenerated, not hand-edited: `content/docs/references/{ui/view,data/object,api/protocol}.mdx` (`check:generated --fix`, which found only `check:docs` stale) and `packages/platform-objects/src/apps/translations/en.metadata-forms.generated.ts` (`node scripts/check-i18n-bundles.mjs --write --filter=platform-objects`; translated locales keep their wording). - Changeset `.changeset/36353-compact-toolbar-refresh-describe.md`: patch for `@objectstack/spec` and `@objectstack/platform-objects`. Description text only. `compactToolbar` stays `z.boolean().optional()` and `userActions.refresh` is not touched, so no key, type, default or optionality changes and the accept set is the same. What the new sentences rest on, read on `origin/main` `5c2e34cdb` (`ui/packages/plugin-list/src/ListView.tsx`): 1. Default: `compactToolbar: schema.compactToolbar !== false` (`:2718`). The plugin-list registry input already says "On by default; `false` draws one toolbar button per control" (`ui/packages/plugin-list/src/index.tsx:236`). 2. No Refresh in the compact toolbar: the only Refresh button is `toolbarFlags.showRefresh && !toolbarFlags.compactToolbar` (`:8125`, `data-testid="refresh-button"`). `ViewSettingsPopover` gets no refresh prop (the `viewSettingsElement` at `:7548`), and `components/ViewSettingsPopover.tsx` has no `refresh` hit at all. 3. Pull-to-refresh: `usePullToRefresh({ onRefresh: handlePullRefresh, enabled: !!dataSource && !!schema.objectName })` (`:3680`), attached unconditionally to the list root (`ref={pullRef}`, `:7637`). It reads neither `compactToolbar` nor `userActions.refresh`. Prior rulings: `check-prior-rulings --paths` over both files lists 146 hit lines. The ones near the edited lines (view.zod.ts `:3710` ruling 6095014058 letter A on `sharing`, `:3733` objectstack-ai#15184 ruling B on composition order, `:1935`/`:1946` the `hideFields`/`editInline` defaults; view.json `:236`, `:250`, `:254`) are about other keys, and none governs `compactToolbar` or the refresh scope. No ADR names `compactToolbar`. The scope sentence restates what objectstack-ai#36339's describe already says (contract review record 7076152814, N2 and N3), and no ruling is reversed. Read first, by risk: 1. `packages/spec/src/ui/view.zod.ts`, the `compactToolbar` line: this is the published schema text, and the contract review reads it. 2. `packages/spec/liveness/view.json`, the `userActions` note: the line numbers it cites. ## Tests Final head: `ca02fd3f8`. Every local reading below was taken against that head's tree. <details><summary>Local readings (builds and tests under scripts/pm/os-verify-lock.sh)</summary> - `pnpm --filter @objectstack/spec build`: VERDICT command-exit 0. - `pnpm --filter @objectstack/spec check:generated --fix`: rebuilt the package first, and regenerated only `check:docs` (`content/docs/references/**`), the one artifact it found stale. A re-run of `check:generated` then exited 0. - `pnpm --filter @objectstack/spec test`: Test Files 885 passed (885), Tests 28146 passed, 1 todo (28147), exit 0. - `pnpm --filter @objectstack/spec typecheck`: exit 0. - `pnpm --filter @objectstack/platform-objects test`: Test Files 125 passed (125), Tests 2126 passed (2126), exit 0. `typecheck`: exit 0. - The hint == describe pin `src/ui/view-form-composite-children.test.ts`: Test Files 1 passed (1), Tests 20 passed (20), VERDICT command-exit 0. With `view-form-pagination.test.ts` and `view.test.ts`: 3 files, 573 tests passed. - `node scripts/check-i18n-bundles.mjs`: before the regeneration, "platform-objects: 1 bundle(s) drifted from the schema". After `--write --filter=platform-objects`: "OK (10 package(s), all bundles in sync)". This ran after the build of the `@objectstack/cli` + `@objectstack/platform-objects` closure (VERDICT command-exit 0). </details> No ablation and no reverse verification: the diff changes description text, a ledger note and generated output, and no tested behaviour. ## Acceptance notes - Card "Done when" 1 (describe states the default, no Refresh in the compact toolbar, pull-to-refresh unaffected, matching `ListView.tsx` on `main`; form hint, regenerated docs and the hint == describe pin in step): done; see the three readings above. The pin passes. - Card "Done when" 2 (liveness note names the wide-toolbar scope and the current reader line): done (`:2710` reader, `:8125` button). - Noted, not filed: the note's first sentence still cites `ListView.tsx:374 toolbarFlags`, an older objectui line, for the whole `userActions` row. Only the refresh sentence is in this card's scope. Today the memo is at `ui/packages/plugin-list/src/ListView.tsx:2700-2729`. - Noted, not filed: the ten translated `compactToolbar` hints (and `ui/packages/app-shell/src/views/metadata-admin/metadata-form-zh-cn.ts:440`) carry only the first sentence. They are still true, just less precise than English. Translating them is a translator's edit, as with objectstack-ai#36339's `refresh` hint. - Overlap: `node scripts/pm/overlap-check.mjs` reports a textual conflict with objectstack-ai#36802 in the generated `content/docs/references/data/object.mdx` only. That file is routed `merge=os-regen` (`.gitattributes:159`), so whichever PR lands second regenerates it with `check:generated --fix`. It merges cleanly against `origin/main`, objectstack-ai#36857 (which shares `view.zod.ts`) and objectstack-ai#36858. ## Verification Two-minute check: `pnpm --filter @objectstack/spec exec vitest run src/ui/view-form-composite-children.test.ts` shows 20 passed. `grep -n "compactToolbar: z" packages/spec/src/ui/view.zod.ts` shows the new describe after `z.boolean().optional()`. <details><summary>Gates</summary> - `node scripts/pm/dispatch-gates.mjs --commands` on the final diff named 112 commands, and all of them ran locally. The `--ran` reconciliation reads "112 derived famil(ies) accounted for, 112 run, 0 NOT-MEASURED". - 108 exited 0. The other four: - Exit 3, PREREQUISITE NOT MET, so NOT MEASURED locally (CI measures them): `node scripts/check-plugin-teardown-shape.mjs --self-test`, because the shallow clone cannot reach its pinned fixture commit; `pnpm check:dual-build-cjs-loads`, because the whole-tree dist is absent; `pnpm --filter @objectstack/spec run check:skill-examples`, because some workspace dists are absent. - Exit 1: `pnpm check:platform-checklist`, "ABSENT SYMBOL `packages/metadata-core/src/anonymous-form-intake.ts#anonymousFormExplicitWithdrawals`" in `docs/qa/platform-checklist/areas/access-security.json`. This diff touches neither file. The symbol is absent from that source at the base `5c2e34cdb` and at the current `origin/main` `d9c799c10`, so it is red independently of this PR, and it is reported to the seat. - `pnpm --filter @objectstack/spec check:generated`: exit 0. `node scripts/check-i18n-bundles.mjs`: exit 0. `node scripts/pm/overlap-check.mjs`: see Acceptance notes. - `node scripts/check-dev-prereqs.mjs` (a local-only family): exit 1, "the workspace is not built" (44 of 108 package dists absent in this container). This describes the machine and says nothing about the diff. - `node scripts/pm/dispatch-gates.mjs --tier`: no path-derived mandate. </details> --- _Generated by [Claude Code](https://claude.ai/code/session_01WGufziH9MVhWYLVCiw5eXB)_ 🤖 Generated with [Claude Code](https://claude.com/claude-code) https://claude.ai/code/session_01WGufziH9MVhWYLVCiw5eXB <!-- signed: repo:objectstack#3 · os-support-ai · session_01WGufziH9MVhWYLVCiw5eXB --> --------- Co-authored-by: Claude <noreply@anthropic.com>
…ms (objectstack-ai#36879) <!-- claude-projects-attribution: {"github_login":"os-support-ai"} --> _Requested by **Yibo Wang** · [project thread](https://claude.ai/code/project/chan_01BVUyyPie8gHwoPM18iABwB?thread=cmsg_01BVUyyPie8gHwoPM18iABwB9Gqqp1VYZwEqbXEm1YsTjU)_ Fixes objectstack-ai#36838 Clause-②: no Metadata-protocol: none repo:objectstack#3 · os-support-ai · session_01WGufziH9MVhWYLVCiw5eXB ## 维护者速读 - 报表设计器(英文界面)里报表顶层的四个栏目名改成与联合报表分块表格一致的说法:数据来源、指标、分组、列分组;“指标”和“文件名”两条提示改成与实际运行一致;中文面板的“日期范围”“运行时筛选”两条提示跟上了新的英文说法。 - 属于“报表面板说业务话”这项体验工作的收尾,替用英文界面搭报表的业务管理员解决同一张表单里一个设置有两种叫法的问题。 - 只改了栏目名和提示文字,不改任何可保存的设置;出错最多是某句提示读起来别扭,直接撤回即可。 - 无 ## What changes One form, one vocabulary: the report form's top-level data rows now carry the titles its joined-blocks grid already uses (`report.form.ts` lines 93–96 on main), and two hints now say what the runtime does. **Label resolution, measured.** The four top-level rows declared no `label`, and `ReportSchema` gives those keys no `.meta({ title })`, so both readers fell through to the key: - the console form: `SchemaForm.tsx:1931–1934`, `fieldSpec.label`, then the localized schema `title`, then `prettify(name)`; - the catalog extractor: `packages/lint/src/i18n-walk.ts:2771`, `inlineText(field.label) ?? humanizeFieldPath(path)`. A form-row `label` is therefore the route (producer-first, no `en` overlay). Each `metadataForms.report.fields.KEY.label` leaf already existed with the humanized text, so no catalog key is added, moved or removed; only its `en` value changes. | Row (key) | Old en | New en | zh-CN | |:---|:---|:---|:---| | `dataset` label | Dataset (prettified key) | Data Source | console overlay 数据来源, unchanged; platform bundle 数据集, unchanged | | `values` label | Values (prettified key) | Metrics | overlay 指标, unchanged; platform 度量, unchanged | | `rows` label | Rows (prettified key) | Group By | overlay 分组, unchanged; platform 行, unchanged | | `columns` label | Columns (prettified key) | Group Columns By | overlay 列分组, unchanged; platform 列, unchanged | | `values` hint (N2) | The metrics to total or count (from the data source). | The metrics to show, such as totals, counts, averages or ratios (from the data source). | overlay 要统计的指标(来自数据来源), unchanged; platform 要展示的度量名(来自该数据集), unchanged | | `exportOptions.fileNamePrefix` hint (N3) | The start of the downloaded file’s name, used instead of the report name. | The start of the downloaded file’s name. Left empty, the file is named after the report’s label, or its name when it has no label. | overlay and platform: 下载文件名的开头。留空时以报表的显示名称命名,没有显示名称时用名称 (was 下载文件名的开头,用来代替报表名称) | | `dateRange` hint (N4) | en unchanged | en unchanged | overlay: 打开报表时显示的时间段,以及使用者能否自己选择范围 (was 默认时间段与自定义范围开关。按数据来源里的一个日期分组筛选;只有一个日期分组时可留空) | | `runtimeFilter` hint (N4) | en unchanged | en unchanged | overlay: 每次显示报表时都会应用的筛选,叠加在数据来源自身的条件之上 (was 渲染时的范围筛选,在查询时以 AND 方式并入) | - **N3, measured at the runtime:** `ReportExport.tsx:210–217` passes `prefix`, then the localized report `label` with `name` as its fallback, into `buildExportFileName` (`ui/packages/core/src/utils/export-filename.ts:58–77`), which takes the prefix first and appends the date and time. The form's own `Label` / `Name` rows are the words the hint now uses (显示名称 / 名称 in zh-CN). - **N2:** a report metric is any dataset measure (sum, count, average, ratio, derived), so the hint names examples instead of a closed pair. - **N4:** console overlay only, per the card. `dateRange` was already a hand-worded row (marked 36373); `runtimeFilter` is now marked the same way, because the platform zh-CN row is the ledger-pinned rendering of the older sentence and is left alone. - **Locale packs:** `node scripts/check-i18n-bundles.mjs --write` changed only `en`. The `fileNamePrefix` hint is re-translated in zh-CN, ja-JP and es-ES (it is not one of the six rows objectstack-ai#36836 carries). The locales that held the old English as a fill (ar, de, fr, ko, pt-BR, ru, zh-Hant) carry a provenance entry for the leaf, so they serve the new English until translated, which is the repository's rule for a changed source string. - **Ledgers:** `report-dataset-panel-echo-decisions.test.ts` pins the `en` of four leaves this PR moves (`dataset`, `values`, `rows` labels and the `values` hint). Each row now holds the new English and says why: the label values are still byte-identical to their blocks twins, whose English is now the same string; the `values` hint values promise no narrower set than the new English. No verdict and no translated value changed. `report-form-echo-decisions.test.ts` asserted the English of the "Dataset" twin its section heading was rendered from; that assertion now points at the dataset type's own label, which reads the same three words, and the header records why the population did not move. - Left alone, per the seat route: the slugged section titles `Dataset binding` and `Joined blocks`, every key, type, default and Zod shape. ## Tests <details><summary>platform-objects, spec, console readers: all green at cf23885</summary> - `pnpm --filter @objectstack/platform-objects test`: Test Files 125 passed (125), Tests 2126 passed (2126). The first run of the translations folder had one red, `report-form-echo-decisions.test.ts` "the authored vocabulary the other five rows were derived from is still there" (expected 'Data Source' to be 'Dataset'); fixed as described above. - `pnpm --filter @objectstack/spec exec vitest run src/ui/ src/system/ src/kernel/repeater-item-titles.test.ts scripts/schema-index.test.ts`: Test Files 267 passed (267), Tests 9316 passed (9316). - `pnpm --filter @objectstack/spec --filter @objectstack/platform-objects run typecheck`: exit 0. - From `ui/`, `pnpm exec vitest run` over 26 report-form reader files (every `ReportDefaultInspector*`, `panelBusinessWording-36373`, `report-schema`, `metadata-form-i18n`, `SchemaForm.machineNameChip-8231`, `SchemaForm.deDeveloperize-8218`, `SchemaForm.refDatasetWidget-11601`, `InterfacesPillar.report*`, `metadataError.report*`, `ReportConfigPanel*`, `_shared.labels`, `export-filename`, the `ReportExport*` tests): Test Files 26 passed (26), Tests 254 passed (254). - `pnpm --filter @objectstack/spec check:generated`: "All 14 generated artifacts are up to date". - `pnpm check:i18n-stale-fill`: OK, no new stale fills. </details> <details><summary>Derived gate families: 91 run at cf23885, 89 exit 0, 2 not measured (prerequisite, exit 3)</summary> - `node scripts/pm/dispatch-gates.mjs --commands` derived 91 commands for this diff; each ran once, exit code captured before any pipe. 89 exited 0, among them `pnpm check:i18n` ("all bundles in sync, no undeclared authoring keys"), `pnpm check:i18n-stale-fill`, `pnpm check:test-source-alias`, `pnpm check:doc-authoring`, `pnpm check:nul-bytes`, spec `check:docs` / `check:api-surface` / `check:authorable-surface`, and `pnpm --dir ui exec vitest run scripts/`. - NOT MEASURED, exit 3: `node scripts/check-plugin-teardown-shape.mjs --self-test` (positive control pinned to a commit this shallow checkout cannot reach) and `pnpm check:dual-build-cjs-loads` (needs a whole-workspace build). Both are CI's. - `node scripts/pm/dispatch-gates.mjs --ran`: "91 derived famil(ies) accounted for — 91 run, 0 NOT-MEASURED" (the two above are NOT MEASURED by their own exit code). - `node scripts/pm/overlap-check.mjs`: VERDICT clean (origin/main and open objectstack-ai#36802 both merge cleanly). </details> ## Acceptance notes - The platform zh-CN, ja-JP and es-ES values for these four labels still read the older dataset vocabulary (数据集 / 度量 / 行 / 列 and their ja-JP and es-ES twins), at the top level and in the blocks grid alike, so each locale stays one vocabulary inside the form. The console's curated panel reads the business words from its own overlay. Moving the platform values to the business wording is a translator pass over both positions together (eight leaves), not part of this rename. - Overlap with objectstack-ai#36836: the `values` hint is one of its six rows. Its English moved again here; its zh-CN, ja-JP and es-ES values were not touched, so that card should translate against the new English. The `fileNamePrefix` hint is not one of the six and is fully translated here. - With a label that no longer spells the key, the server-served form shows its machine-name hint beside these four rows (`SchemaForm.tsx:2044–2051`), as it already does for Sort Order. This follows from that rule; it was not checked in a browser. - `@object-ui/app-shell` type-check was not run locally (one data file, strings only); it is left to CI's Type Check UI. ## Verification First read, by risk: `packages/spec/src/ui/report.form.ts` (four labels, two hints); `packages/platform-objects/src/apps/translations/report-dataset-panel-echo-decisions.test.ts` (moved `en` sources and their reasons); `ui/packages/app-shell/src/views/metadata-admin/metadata-form-zh-cn.ts` (three zh-CN hints). Two-minute check: open a summary report's metadata form in Studio with the console in English. The data rows read Data Source, Metrics and Group By (Group Columns By on a matrix report), matching the joined-blocks grid, and the File Name hint under Period and export says an empty prefix names the file after the report's label. --- _Generated by [Claude Code](https://claude.ai/code/session_01WGufziH9MVhWYLVCiw5eXB)_ <!-- signed: repo:objectstack#3 · os-support-ai · session_01WGufziH9MVhWYLVCiw5eXB --> --------- Co-authored-by: Claude <noreply@anthropic.com>
…e lane, computed in the query (objectstack-ai#36857) <!-- claude-projects-attribution: {"github_login":"os-support-ai"} --> _Requested by **Yibo Wang** · [project thread](https://claude.ai/code/project/chan_01BVUyyPie8gHwoPM18iABwB?thread=cmsg_01BVUyyPie8gHwoPM18iABwBDHJBvzScLgkhKgms97sNuU)_ repo:objectstack#3 · os-support-ai · session_01WGufzhoBbwh8URjwQHde8v Fixes objectstack-ai#36520 Clause-②: yes Metadata-protocol: semantic Skills-docs: follow-up objectstack-ai#36422 (skills/objectstack-ui/rules/list-views.md teaches the board lane summary, now including avg / min / max) ## 维护者速读 - 看板用户在每列底部看到的合计,从「只算已加载的卡片」改为「整列全部记录」(由服务器统一计算),服务器答不了时不显示数字;新增平均值、最小值、最大值三种列底统计,看板设置里也能直接选,原来「已加载卡片」的字样不再出现。 - 属于看板视图设置专题,替用户解决「长列的合计只算了已加载部分、数字偏小」的问题。 - 出错时列底只是不显示数字,不会显示错误的数字;卡片、拖拽和列计数都不受影响,可以直接撤回。 - 无 ## What changes A stored `kanban.summary` of type `sum` now totals every record in the lane (computed in the query) instead of the loaded cards; where the board cannot ask the server, no figure is drawn. - **One grouped aggregate per board, no fetch-then-add** (AGENTS.md Prime Directive 5). `ObjectKanban` asks ONE aggregate over the board's own query (its resolved filter and its host's search pair), grouped by the lane field, with the statistic as the aggregation, through the existing door `DataSource.queryGroupHeaders` (`POST /data/:object/query`, routed to `engine.aggregate`; the door a grouped list view's headers and a paged grid's footer already ride). New package-private module `KanbanLaneStatistic.ts` compiles the read (`compileLaneStatisticQuery`) and folds the answer into lanes (`readLaneFigures`, `laneFigureOf`): lane keys use `laneKeyOf`, so reference lanes key by foreign key exactly as the cards do; a group whose key is no fixed lane, and the empty group, fold into "Uncategorized" (sum adds, min/max compare, avg weighs each group by its `COUNT(field)`); paged lanes match keys exactly (as each lane query does), a board of one query matches without case (as `index.tsx` buckets cards). - **The foot draws the read's figure** (`KanbanImpl` `LaneFootStatistic`). The 「loaded cards」 label and its `partial` path are gone. A lane with no record shows 0 for a sum and nothing for avg/min/max. A lane the board knows holds records (count above 0) that the answer has no group for draws NO figure, not 0: the door can cut the group rows under a deployment's default page size and `queryGroupHeaders` drops its `hasMore` (round 2, L2 S3; the whole answer is follow-up objectstack-ai#36870). No door, a refusal, or a filter that does not lower draws no figure, never a loaded-card reduction. Cards a host hands in still have their `sum` added on the board; avg/min/max draw nothing over them. Known gap, stated in the spec text and changeset (round 2, L2 S4): `ListView` hands a board whose lanes it cannot know before the query (lookup lanes, grouping) its fetched page, so there `sum` totals that page, unmarked; follow-up objectstack-ai#36871. - **Permissions.** The board asks nothing for a field the reader may not read (the existing `checkField` gate). Server side, unchanged and measured: the aggregate runs under the read scope stamps and the RLS `where` injection like `find`, and the FLS aggregate-input guard (plugin-security authz middleware, step 2.5b) refuses an aggregate over an unreadable field with `PermissionDeniedError`; the board draws no figure on that refusal. No server code changed. - **Spec** (`packages/spec/src/ui/view.zod.ts`): `KanbanLaneSummarySchema` gains the `avg`, `min`, `max` arms (each `field` required, strict); its docblock, `.describe()` and `KanbanConfig.summary`'s text now say the figure covers every record of the lane, computed in the query, and name the host-handed carve-out above. Regenerated: reference docs, strictness ledger counts, and the `variant-docs.json` key for the union. - **Lint** (`kanbanSummaryRefusal`): judges `avg`/`min`/`max` by their own aggregate × field-type rows like `sum`, less the boolean class read from the spec's `BOOLEAN_VALUE_TYPES` instead of two inline literals. `rule-explanations.ts` text matches. `ListView`'s `laneStatisticSums` reads the same spec class. Stale "prints a sum of 0" test comment corrected. - **Picker** (`ViewSettingsPopover.tsx`, round 2, L2 S2): `summaryWord` names `avg` / `min` / `max` (Average / Minimum / Maximum) and the lane-summary page offers each over the same fields as `sum` (number fields, booleans excluded through `BOOLEAN_VALUE_TYPES`); picking one writes `{ type, field }`. - **Locales** (`ui/packages/i18n/src/locales/*.ts`, all 11 packs): the unreferenced `kanban.laneStatistic.loadedOnly` key is removed; `list.optionsMenu.kanbanSummaryAvg` / `Min` / `Max` are added (en Average / Minimum / Maximum, zh-Hans 平均值 / 最小值 / 最大值, each other pack in its own wording). <details><summary>Files changed in round 2 (head e3e1e77)</summary> - `ui/packages/plugin-list/src/components/ViewSettingsPopover.tsx`, `ui/packages/plugin-list/src/__tests__/ViewSettingsPopover.kanban-36370.test.tsx` - `ui/packages/i18n/src/locales/{ar,de,en,es,fr,ja,ko,pt-BR,ru,zh-Hans,zh-Hant}.ts` - `ui/packages/plugin-kanban/src/KanbanLaneStatistic.ts`, `ui/packages/plugin-kanban/src/KanbanImpl.tsx`, `ui/packages/plugin-kanban/src/ObjectKanban.laneStatistic-36370.test.tsx` - `packages/spec/src/ui/view.zod.ts`, `content/docs/references/ui/view.mdx` (regenerated) - `.changeset/36520-kanban-lane-statistic-server.md` (`Metadata-protocol: semantic`, `@object-ui/i18n` minor, the plain `sum` sentence, the carve-out) </details> <details><summary>Round 3 (paper only, head 05955a5)</summary> - `.changeset/36520-kanban-lane-statistic-server.md`: `Skills-docs: follow-up objectstack-ai#36422 (…)`; the two known-gap follow-ups named, objectstack-ai#36870 (the door's `hasMore`) and objectstack-ai#36871 (the list view's one-page lane sum). The PR body names the same cards and objectstack-ai#36880 (picker date fields for `min` / `max`). No code change. </details> ## Tests Round 1 lines measured at `fcd041c766`; round 2 lines at `e3e1e77a9f`. <details><summary>Board pins (shared harness `ObjectKanban.laneStatistic-36370.test.tsx`, new top-level describes)</summary> - 70-record lane on a paged board (50 loaded): foot reads the whole lane's sum 2415, not the loaded 1225; Won 10, empty lane 0, Uncategorized folds the null group and an off-lane group (4); exactly one `queryGroupHeaders` call with `{ groupBy: ['stage'], aggregations: [{ function: 'sum', field: 'amount', alias: 'sum_amount' }] }`. - avg / min / max each pinned from the same read (34.5 / 0 / 69 on the long lane; weighted fold 0.8 in Uncategorized; empty lane draws none). - Board filter lowered into `where`, host search and fields carried as `search` / `searchFields`. - Board of one query past its row cap draws the read's figure. - Unreadable field: no read asked, no figure. Server refusal (403): no figure. Source without the door: no figure. Handed rows: sum adds them, avg draws nothing and asks nothing. - `readLaneFigures` units: reference keys, case folding, data-derived lanes, a non-number value. - `pnpm --dir ui exec vitest run packages/plugin-kanban/src/ObjectKanban.laneStatistic-36370.test.tsx` plus the five plugin-list kanban files: Test Files 6 passed, Tests 47 passed. </details> <details><summary>Round 2 pins and runs (e3e1e77)</summary> - Cut answer: the read answers no group for Won (5 records): Won draws no figure, Lost (empty) still draws 0, Open 2415. - Picker: an authored avg view shows `Average · Amount` selected (`aria-checked` true, sum false); all four labels offered and picking min calls `onChange({ type: 'min', field: 'amount' })`; zh pack names 平均值 / 最小值 / 最大值. - `pnpm --dir ui exec vitest run` over the popover file, `packages/i18n/src/__tests__/` (key parity included) and the board file: Test Files 110 passed, Tests 2038 passed, 13 skipped. - Ablation of the new guard (`if (holdsRecords) return null;` deleted via `ablation-replace.mjs`, anchor 1 to 0, blob 5b5b7b5 to ef1b0d2d1112): 1 failed / 17 passed, the cut-answer pin; restored, blob equals HEAD, `git diff HEAD` empty. - plugin-kanban, plugin-list, i18n `type-check`: exit 0. - `@objectstack/spec` build then `check:generated --fix`: 1 stale (`content/docs/references/**`), regenerated, re-check green. - 21 derived families touching round-2 files (changeset, docs, spec checks incl. `check:authorable-surface`, `check:variant-docs`, `check:liveness`, `check:api-surface`, `check:nul-bytes`, `check:i18n-stale-fill`, ui `vitest scripts/`): all exit 0. </details> <details><summary>Ablation (one, on the tested behaviour)</summary> Committed first; `node scripts/ablation-replace.mjs` replaced the foot's figure read (`laneFigureOf(summary.figures, …)`) with the old loaded-card reduction (`sumLaneField(cards, …)`): anchor 1 to 0, blob 46f245e to 47dcb7a8be5f. Result: 7 failed / 10 passed (the whole-lane sum, avg, min, max, one-query, refusal and no-door pins went red). Restored: blob equals HEAD, `git diff HEAD` empty. </details> <details><summary>Package suites and typechecks</summary> - plugin-kanban full: Test Files 84 passed, Tests 562 passed (pre-merge head 5bca69a plus test commit). - plugin-kanban and plugin-list `type-check`: exit 0 both (re-run on `fcd041c766`). - `@objectstack/lint` full: Test Files 229 passed, Tests 9514 passed (pre-merge). - `@objectstack/spec` full: Test Files 977 passed, Tests 29691 passed, 1 todo (pre-merge `aca894a4f`). - `pnpm --dir ui exec vitest run scripts/`: Test Files 172 passed, 2 skipped (re-run on `fcd041c766`). - `pnpm --filter @objectstack/spec check:generated`: all 14 artifacts up to date after `--fix` (re-run after merging main). </details> <details><summary>Derived gate families</summary> `node scripts/pm/dispatch-gates.mjs --commands` (120 commands) run with exit codes recorded; `--ran` reconciliation: 120 derived, 117 run, 3 NOT MEASURED (exit 3, prerequisite: `check-plugin-teardown-shape --self-test` needs an unshallow clone, `spec check:skill-examples` and `check:dual-build-cjs-loads` need a full workspace build). Two first-run reds were re-run: `check:variant-docs` was a real finding (the union's ledger key), fixed in this PR, then exit 0; `ui vitest scripts/` was OOM-killed under contention, then green. `check-platform-checklist --changed-from origin/main`: OK. `check:nul-bytes`: OK. `ui check:new-line-citations`: 0 new. CI runs the full farm. </details> ## Acceptance notes - Read first, by risk: `ui/packages/plugin-kanban/src/ObjectKanban.tsx` (the read's gate, question key and refresh triggers), `ui/packages/plugin-kanban/src/KanbanLaneStatistic.ts` (lane folding), `ui/packages/plugin-kanban/src/KanbanImpl.tsx` (`LaneFootStatistic`). - The filter is lowered with `@object-ui/core`'s `composeDrillFilter(filter, undefined)`, the one exported seam that runs the spec's `parseFilterAST`; plugin-kanban declares no direct `@objectstack/spec` dependency and its `package.json` is outside this card's file surface. - No explicit `limit` is sent on the lane read. The door accepts one, but the group rows are one per distinct lane value in the filtered set, off-lane values included, so a limit equal to the lane count would cut more often than the deployment's default page, and a limit above `OS_DATA_MAX_PAGE_SIZE` is refused. A whole answer needs `hasMore` from the door: follow-up objectstack-ai#36870. - The picker offers `min` / `max` over number fields, as for `sum` (the round-2 order); the aggregate table also admits date fields for those two, which the picker does not offer yet: follow-up objectstack-ai#36880. - overlap-check: one generated-docs conflict with objectstack-ai#36802 in `content/docs/references/data/object.mdx`; whichever lands second regenerates. - A `sum` over a currency field in record mode was a mixed-currency total; the engine refuses that aggregate, so the foot now draws no figure there. - The figure refreshes when the board re-reads (refresh, data invalidation, a write); between a drag and that re-read it shows the previous answer. - `Metadata-protocol: semantic` (L2 S1, accepted by the seat): `added` for the three new arms, `semantic` for `sum`'s changed meaning; precedence gives `semantic`. Level stays minor, `Clause-②: yes`. ## Verification Two-minute check: `pnpm --dir ui exec vitest run packages/plugin-kanban/src/ObjectKanban.laneStatistic-36370.test.tsx`; expect 18 passed, including "draws the whole lane's sum on a lane longer than its page, from one grouped aggregate". https://claude.ai/code/session_01WGufzhoBbwh8URjwQHde8v 🤖 Generated with [Claude Code](https://claude.com/claude-code) <!-- signed: repo:objectstack#3 · os-support-ai · session_01WGufzhoBbwh8URjwQHde8v --> --------- Co-authored-by: Claude <noreply@anthropic.com>
…tstack-ai#36883) <!-- claude-projects-attribution: {"github_login":"os-support-ai"} --> _Requested by **Yibo Wang** · [project thread](https://claude.ai/code/project/chan_01BVUyyPie8gHwoPM18iABwB?thread=cmsg_01BVUyyPie8gHwoPM18iABwBP9pYn3ZkhGT2R2hstwEY6w)_ Fixes objectstack-ai#36816 Clause-②: no Metadata-protocol: none repo:objectstack#3 · os-support-ai · session_01WGufzh1FMUQYf1PcEunaaK ## 维护者速读 - 在工作室打开仪表盘设置面板的搭建者,看到的九条字段提示(名称、显示名称、列数、间距、自动刷新、页眉、组件、日期范围、全局筛选)从开发术语改成了业务说法,英文、中文和其余八种语言同步更新。 - 属于"报表与仪表盘面板说业务话"这项体验工作,是已完成的报表面板改写的仪表盘姊妹篇,替用工作室搭仪表盘的业务管理员解决看不懂开发术语的问题。 - 只改了提示文字,不改任何可保存的设置;出错最多是某句提示读起来别扭,直接撤回即可。 - 无 ## What changes The dashboard authoring form (`packages/spec/src/ui/dashboard.form.ts`) supplies the hints the Studio dashboard settings panel draws. The route is the one the seat set for the report panel: English wording at the producer first, no `en` overlay, and no rename of a section title whose key is slugged from its label. Nine hints are rewritten in business terms, with no CSS units, casing jargon or "config". | Row | Before | After | |:---|:---|:---| | Name | snake_case unique identifier | A unique internal name for this dashboard: lowercase letters, numbers and underscores, starting with a letter (for example sales_overview). | | Label | Display name | The title people see for this dashboard. | | Columns | Grid columns (default 12) | How many columns the widgets are laid out on, from 1 to 24. Leave it empty and the dashboard picks a width that fits its widgets. | | Gap | Space between widgets, in steps of 0.25rem (4 = 1rem) | How much space to leave between widgets. Larger numbers spread them further apart; leave it empty for the standard spacing. | | Refresh Interval Seconds | Auto-refresh (seconds) | How often the dashboard reloads its data, in seconds. Leave it empty or enter 0 to turn automatic reloading off. | | Header | Dashboard header config (title, subtitle, actions) | What shows at the top of the dashboard: its title, its description and action buttons. | | Widgets | Dashboard widgets with position and sizing | The charts, numbers and tables on this dashboard, and where each one sits. | | Date Range | Default date range selector | The period the dashboard opens with, and whether viewers may pick their own dates. | | Global Filters | Filters applied to all widgets | Filters viewers can use to narrow every widget at once, or only the widgets you choose. | The Columns and Gap rows describe what the dashboard renderer really does with an empty value. An unset `columns` is inferred from the widgets' widths (4 or 12), not fixed at 12. An unset gap falls back to the standard 4. - **Translations.** `node scripts/check-i18n-bundles.mjs --write` rewrote the `en` leaves and kept every translated value (merge mode). The nine leaves were then re-translated by hand in all ten translated locales: zh-CN, zh-Hant, ja-JP, ko, es-ES, fr, de, pt-BR, ru and ar. This follows the repository's usual rule for changed source text (the last source-hint change, 9742142, re-translated every locale too). No `*.source-hashes.generated.ts` moved: these leaves had no provenance entry. - **Console zh-CN overlay** (`ui/packages/app-shell/src/views/metadata-admin/metadata-form-i18n.ts`, claim amendment 7124829549). The curated dashboard inspector renders Chinese from this overlay, not from the platform bundle. Its nine dashboard hints now carry the platform's new zh-CN wording; before, they still read "snake_case 唯一标识" and "栅格列数(默认 12)". The comment over the gap row is rewritten to match. - **The console's "Tailwind units" control** (`metadata-form-i18n.test.ts`) read the producer's English gap hint and asserted it still held developer units, so that its zh leg would mean something. It was built to go red once the spec spoke plainly. Its English leg is now a fixed literal (the pre-rewrite hint). It then holds both the producer's English and the zh overlay free of the vocabulary, and a new case sweeps every dashboard hint in both languages. The `columns` zh pin moved with its row. - **Pin.** `packages/spec/src/ui/dashboard-form-business-wording-36816.test.ts` names the nine rewritten rows. Each must declare a hint free of developer vocabulary, and a sweep holds every hint in the form to the same rule. A control proves the vocabulary test fires on the old hints. It pins the kind of text, not a sentence. Unchanged on purpose: section titles and descriptions; field and repeater-row labels (each row label must equal its schema `title`); the three header-child hints, which already read as a builder would say them; and the `DashboardSchema` `.describe()` prose, which is author documentation outside the panel. The widget panel (studio `engine.inspector.widget.*`) is out of scope. Left over (slugged section keys): none — no section title was renamed. **Contract review.** This PR moves non-test `packages/spec/src` text, so it owes an **L2 contract review** before landing. ## Tests <details><summary>spec, platform-objects and console readers: green at 5af304e</summary> - spec: `pnpm --filter @objectstack/spec exec vitest run --maxWorkers=2 src/ui/ src/kernel/repeater-item-titles.test.ts src/system/i18n-resolver.test.ts`: Test Files 191 passed (191), Tests 7185 passed (7185). The new pin alone, verbose: 11 passed (11). - spec `typecheck` plus `check:generated`: exit 0, "All 14 generated artifacts are up to date" (measured at 2969e9a; the merge of main touched no spec file of this diff). - platform-objects: Test Files 125 passed (125), Tests 2126 passed (2126). - ui, from `ui/`: metadata-form-i18n, dashboard-schema, DashboardDefaultInspector*, p1-spec-alignment and `packages/app-shell/src/preview`: Test Files 56 passed (56), Tests 447 passed (447). Before the console change, the old control failed as predicted: 1 failed / 78 passed. - Ablation of the spec pin through `scripts/ablation-replace.mjs`, putting the old gap hint back (anchor x1 to x0): Tests 2 failed / 9 passed. Restored blob equals HEAD's. - Ablation of the console sweep, putting "snake_case 唯一标识" back into the overlay (anchor x1 to x0): Tests 1 failed / 22 passed. Restored blob equals HEAD's. - eslint on the two console files: exit 0. Every run above exited 0 under the verify lock, except the two ablation legs, which were meant to fail. </details> ## Acceptance notes - `ui/packages/plugin-dashboard/src/DashboardRenderer.tsx:409` reads `schema.gap || 4`. An authored gap of 0, which `DashboardSchema.gap` allows (`.min(0)`), would therefore render as 4 (1rem). This is read from the code, not measured through a public door. The new Gap hint deliberately does not promise that 0 means no space. - `DashboardSchema.columns` says "(default 12)", but the renderer infers 4 or 12 from the widgets' widths when columns is unset (`DashboardRenderer.tsx:391-406`). The new Columns hint describes the inferred behaviour; the describe prose is unchanged. - The old developer phrasing remains in the `DashboardSchema` `.describe()` prose (`dashboard.zod.ts` gap and header) and in its mirror in `packages/cli/src/commands/explain.ts:293`. That is author documentation, outside the panel and outside this card's surface. - Open PRs objectstack-ai#36879, objectstack-ai#36872 and objectstack-ai#36802 regenerate the same platform bundles. The files are `merge=os-regen`, so whichever lands second regenerates; `overlap-check` reports a clean merge with all three today. ## Verification First read, by risk: `packages/platform-objects/src/apps/translations/*.metadata-forms.generated.ts` (the ten hand-translated sets of nine leaves); `ui/packages/app-shell/src/views/metadata-admin/metadata-form-i18n.test.ts` (the reworked control and the new sweep); `packages/spec/src/ui/dashboard.form.ts` (the nine hints). Two-minute check: open a dashboard in Studio with the console in English and open its settings. The Layout rows should read "How many columns the widgets are laid out on…", "How much space to leave between widgets…" and "How often the dashboard reloads its data…". Switch to Chinese and the same rows read 组件排布所用的列数… / 组件之间留出的空间… / 仪表盘重新加载数据的频率(秒)…. --- _Generated by [Claude Code](https://claude.ai/code/session_01WGufzh1FMUQYf1PcEunaaK)_ <!-- signed: repo:objectstack#3 · os-support-ai · session_01WGufzh1FMUQYf1PcEunaaK --> --------- Co-authored-by: Claude <noreply@anthropic.com>
…both doors (objectstack-ai#36926) <!-- claude-projects-attribution: {"github_login":"os-support-ai"} --> _Requested by **Yibo Wang** · [project thread](https://claude.ai/code/project/chan_01BVUyyPie8gHwoPM18iABwB?thread=cmsg_01BVUyyPie8gHwoPM18iABwBDErTg6aA1Xze24mDcUfseY)_ Fixes objectstack-ai#36860 > **Held for the maintainer's own review.** This is part (b) of the card's two-PR split. The whole card measured about 3,530 changed lines, over the 3,000-line human-review line, so the maintainer ruled that every part goes to their own review whatever its size: splitting must not route around it. This PR stays a draft and out of the merge queue until the maintainer has read it. Part (a), objectstack-ai#36881, merged on L1 + L2 before that ruling and is handed to the maintainer with this one. This part closes the card: the other 26 types, their header translations in all 11 bundles, the console's own declarations moved into the spec, and the runtime dispatcher translating the types listing, which folds in objectstack-ai#36886 (the dispatcher answered `/meta/types` in English). Clause-②: yes (widening: `/meta/types` serves `list` on 26 more entries, and the runtime dispatcher's listing is now translated) Metadata-protocol: none ## 维护者速读 - 工作室里 27 类元数据(对象、字段、视图、页面、流程、报表、智能体等)的列表列改由平台规范统一声明,列头按界面语言显示(11 种语言都有译文);经运行时分发器访问的主机,类型列表也不再一律显示英文。 - 属于工作室元数据列表标准化(objectstack-ai#36860 的第二部分,第一部分是 objectstack-ai#36881):控制台、命令行和 AI 客户端读同一份列定义。 - 影响打开这些列表的管理员;列名和顺序有变化(例如页面列表去掉了不存在的 route 列)。出错时页面退回默认列,合并后可直接撤回。 - 需要你亲自审阅后再决定合并:这一卡总量超过 3,000 行,按你的要求分拆后的每一部分都交你审,本 PR 不进合并队列。 ## What changes - **Registry (`@objectstack/spec`).** `METADATA_LIST_REGISTRY` declares 27 types: the first batch (`hook`, `flow`, `job`, `api`, `action`, `report`, `dataset`, `email_template`, `assignment_rule`, `sharing_rule`, `queue`, `agent`, `tool`, `skill`, `doc`, `seed`, `mapping`, `picklist`, `translation`) and the eight the console declared itself (`object`, `field`, `view`, `page`, `dashboard`, `permission`, `position`, `book`). Every column is a key the type's schema declares, checked by the reconciliation test, whose roster now asserts all 27. Keys the card proposed that no schema declares were dropped or corrected, as reported in the card's thread. - **Headers in every language (`@objectstack/platform-objects`).** The 52 headers no form field already labels get their own `metadataForms.<type>.fields.<path>.label` leaf, regenerated with `node scripts/check-i18n-bundles.mjs --write` and translated in all ten non-English locales. No zh-CN, ja-JP or es-ES leaf echoes the English. A column the form labels reads the form's words. - **Both doors translate the listing (`@objectstack/rest`, `@objectstack/runtime`), objectstack-ai#36886.** `translateMetaTypesListing` (`meta-item-read-gate.ts`) is the one translation of the types listing: type labels and descriptions, form labels, list headers and schema titles. `RestServer`'s `GET /meta` now delegates to it, and the runtime dispatcher's `GET /meta` and `GET /meta/types` call it with the request's locale and answer through `successWithHeaders` with `Vary: Accept-Language`, as `RestServer` and the rest of the meta domain do. Before, the dispatcher served `getMetaTypes()` untranslated, so a zh-CN reader of a dispatcher-served host got English for all of it. - **Console (`@object-ui/app-shell`).** `builtinComponents.tsx` and `anchors.ts` drop their `listColumns` and keep only what the schema cannot say: a field row's server-stamped `object` (`listExtraColumns`), a position's holder count and granted permission sets, a view's derived display type and a book's audience (`listCells`), and a sharing rule's `sharedWith` rendering plus its `_packageId`. `object` was registered twice with disagreeing columns (the later won); both declarations are gone, so the spec's is the only one. A page's former `route` column named no `PageSchema` key and is dropped. - **Changelog for what admins see (`@object-ui/app-shell`).** The changeset names the private console package, which `.changeset/config.json` versions (`privatePackages.version: true`), and says what changes on screen: no fixed column widths on the moved lists (except the view list's display type and the book list's audience), the Fields list reads name, type, label, then object, the sharing-rule header reads "Access Level", and the Pages list shows type and description in place of the dropped route column. - **Summary cells read an expression's source (`@object-ui/app-shell`).** The `summary` renderer joined only an object's scalar members, so a cron schedule, whose `expression` is served as the `{ dialect, source }` envelope, read `cron · UTC`. An expression envelope member now contributes its `source`, so a cron job reads `cron · <expression> · UTC` (the showcase job: `cron · 0 1 * * * · UTC`). Any other object member stays out, as before. - **Echo ledgers (`@objectstack/platform-objects` tests).** The bare-type ledger reads a type as bare when its catalog entry has no form `sections`, since a type with no form now carries `fields` for its column headers; the metadata-form catalog count grows by the 52 header rows (771 → 823). - **Docs.** `content/docs/protocol/kernel/i18n-standard.mdx` adds the list columns row (`resolveMetadataListLabels`), the slot paragraph, and says all three resolvers run in `GET /meta` on both doors. ## Tests - `packages/spec/src/system/metadata-list-zod-reconciliation.test.ts`: the roster assertion grows from `['hook']` to the 27 types (111 passed). - `packages/lint/src/i18n-walk.metadata-list-columns.test.ts` (new, the L2 N2 pin on objectstack-ai#36881): a column on a type with no form gets its own slot entry seeded with the header (`job.schedule` → `Schedule`), a dotted path the form leaves out gets one (`agent` `model.model` → `Model`), a column the form labels keeps exactly one entry, the form's (`hook.events`), and every registry column has exactly one entry (4 passed). - `packages/runtime/src/domains/meta-types-translation-parity-36886.test.ts` (new): both dispatcher doors answer zh-CN with the same label, form label and headers as `RestServer` (`{ label: '钩子', form: '事件', headers: ['名称', '事件'] }`), and both carry `Vary: Accept-Language`, as `RestServer` does. Controls: an en request, and a host with no i18n service, answer as declared. Ablations: putting back `deps.success(result)` reds the zh-CN case (1 failed, 2 passed); answering the translated body without the header reds the Vary case (1 failed, 3 passed). - `ui/.../ResourceListPage.servedListColumns-36860.test.tsx`: mounts each moved list under setup (`?scope=environment`) and checks the served headers, plus the view list keeping its derived display type through its console cell override. ## Screenshots (card acceptance, zh-CN) Taken on a booted `examples/app-showcase`: hooks and flows built from `9ce7a6d0` (the commits after it until `f2edd9de` change only the changeset and tests), the Jobs list re-taken on `f2edd9de`, console at `/apps/setup/metadata/<type>?scope=environment`, browser locale zh-CN. Stored in the project's shared files under `objectstack-seat3-ux/36860-shots/`: - `hook-list-zh.png`: 钩子 (8). Headers 名称 · 显示名称 · 对象 · 事件 · 优先级 · 异步 · 描述 · 来源. Events read as a list (`beforeInsert, beforeUpdate`), async as ✓ / ×. - `flow-list-zh.png`: 流程 (33). Headers 名称 · 显示名称 · 类型 · 描述 · 来源. Type reads as a badge (`autolaunched`, `record_change`, `schedule`, `screen`). - `job-list-zh.png`: 后台任务 (1). Headers 名称 · 显示名称 · 调度计划 · 已启用 · 描述 · 来源. The schedule reads `cron · 0 1 * * * · UTC` (it read `cron · UTC` before `f2edd9de`, L1 S4), enabled ✓. Every `GET /api/v1/meta` the console made answered 200 with `Vary: Accept-Language`. Item labels and descriptions stay in English: they are the example app's own text, which has no zh translation. ## Acceptance notes - L2 nits on objectstack-ai#36881 carried here: N1 (headers marked localized while the dispatcher served them untranslated) is closed by the objectstack-ai#36886 fold; N2 pin added (above); N3 (`listInclude` prose true only after the position move) is now true; the reconciliation roster grows. `@object-ui/app-shell` was first left out of the changeset on that review's advice, and is back in on this PR's L1 (S3), because `.changeset/config.json` versions private packages. N7 (the reconciliation test copies `humanizeFieldPath`) is unchanged. - objectstack-ai#36887 (`GetMetaTypesResponseSchema` declares neither `schema` nor `form`) is not in this PR; it follows as its own small PR. - objectstack-ai#36886 is folded in without a closing keyword; it is closed by hand when this lands. - `report`'s `dataset` header reads `Data Source`, the report form's label on current `main`. - Overlap: `node scripts/pm/overlap-check.mjs` against `main` and the two open PRs sharing files: objectstack-ai#36869 (`rest-server.ts`) merges cleanly; objectstack-ai#36802 conflicts in `object-lifecycle-panel-echo-decisions.test.ts`, where both PRs move the catalog count and add a receipt line. Whichever lands second resolves it to the sum of both receipts. ## Verification Read first, by risk: 1. `packages/runtime/src/domains/meta.ts`: the two `getMetaTypes` sites now translated, and the locale they read. 2. `packages/rest/src/meta-item-read-gate.ts` with `rest-server.ts`: `translateMetaTypesListing` must answer exactly what `translateMetaTypesResponse` answered before. 3. `ui/packages/app-shell/src/services/builtinComponents.tsx` and `anchors.ts`: what the console keeps after the move. 4. Spot-read a bundle, e.g. `zh-CN.metadata-forms.generated.ts`, for the 52 new leaves. Two-minute check: `pnpm --filter @objectstack/runtime exec vitest run src/domains/meta-types-translation-parity-36886.test.ts`. Expect 4 passed. <details><summary>Gates on 2fe89a7 (first round; the rework commits 9ce7a6d, 137ae10, 06064a1 and f2edd9d re-ran the gates they touch, listed last)</summary> - `node scripts/pm/dispatch-gates.mjs --ran`: 125 derived, 125 run, 0 NOT-MEASURED, all exit 0. Fixed in this PR along the way: `check:test-source-alias` (module-top imports in the new tests), `check:spec-parsed-alias` (`MetadataListCellTypeParsed`) and `check:engine-double-contract` (ledger rewritten with `--write`). Three gates first exited 3 on prerequisites and were re-run green after fetching the plugin-teardown fixture commit and building the packages that had no dist. - `check-governed-merges --branch HEAD`: not governed, 2,834 changed lines (+2,591 / −243), 2,220 of them the 11 generated bundles. - `tsc --noEmit` is clean for `@objectstack/rest` and `@objectstack/runtime`. `@object-ui/app-shell` type-check was not measured locally (the ui workspace deps have no dist); CI's type-check lane is the verdict. - Tests: runtime `domains/meta` 2,756 passed; rest meta 2,263; app-shell `metadata-admin` 222; spec reconciliation 111; lint pin 4; rest list headers + schema titles 6. - Rework round 2: `servedListColumns.test.tsx` + `ResourceListPage.servedListColumns-36860.test.tsx` 17 passed, with a new case for a served cron envelope and a control for an object member with no `source`; ablation (back to scalar members only) reds it (1 failed, 10 passed). ESLint clean on both files. - Rework round: runtime parity test 4 passed; platform-objects `bare-type-display-echo-decisions` + `object-lifecycle-panel-echo-decisions` 73 passed (the two files CI's Test Core (6/10) failed on 99dc6d0); `check-changeset-fixed`, `check-empty-changeset` and `check-changeset-no-major` (with this body) exit 0. </details> 🤖 Generated with [Claude Code](https://claude.com/claude-code) https://claude.ai/code/session_01WGufzg7mFFG5b13DcQ93kf <!-- signed: repo:objectstack#3 · os-support-ai · session_01WGufzg7mFFG5b13DcQ93kf --> --------- Co-authored-by: Claude <noreply@anthropic.com>
…d groups, not inlineEdit: true (objectstack-ai#37135) repo:objectstack#4 · os-justin · session_01QSeKYo86w1wqy2z2fMrryr Fixes objectstack-ai#37127 Clause-②: no Metadata-protocol: none ## 维护者速读 - 用户无感:只改场景卡评分器;主从子表「在主记录表单内联编辑」这一项,改为只看主对象的字段分组是否放置了子表。 - 为什么做:主从子表的内联由主对象字段分组决定(「一律只看分组」),评分器却仍按已退役的布尔开关给分,按正规方式内联的构建反被判不合格。 - 出错会怎样:只影响场景评测分数,不影响任何运行中的应用;可直接回退本次改动。 - 要你做什么:无。 ## What changes `records-forms.master-detail-inline-edit` (`packages/qa/scenarios/src/score/scenario-tags.ts`) credits a master-detail child as edited inline ONLY when a field group of its MASTER (the FK's `reference`) names it in `fieldGroups[].relatedList` (by child object name or `object.field`) and the FK is one a group may place. This is the runtime's own test, with the same two spec predicates: objectui `attachInlineSubforms` (`ui/packages/app-shell/src/providers/MetadataProvider.tsx`, lines 773-774) inlines a child only when `isGroupPlaceableRelationship(fk) && fieldGroupsPlaceRelationship(groupsOf(fk.reference), child, fk)` (`packages/spec/src/data/related-list-body-table.ts`, lines 80 and 110). `inlineEdit` takes no part. The `asserts` sentence and `packages/qa/scenarios/README.md` (the tag table) say the same. ## Deviation from the card The card asks to credit a child also "when `inlineEdit` is `'grid'` / `'form'`". This PR does not. It follows the maintainer's field-group ruling on objectstack-ai#35889 (record 7046311205, 「一律只看分组」), which outranks the card's wording: the runtime inlines nothing without a placing field group (MetadataProvider.tsx L773-775; `inlineEdit` only feeds `resolveInlineMode`, the form factor). A scorer that credited it would pass a build that inlines nothing. Decided by the PM (zone a4-A). ## Tests `packages/qa/scenarios/test/score/scenario-tags.test.ts`: - The rich fixture inlines the tasks the supported way: a `project` field group naming `task`, no `inlineEdit` on the FK. - The degradation table pins two failing shapes: no placing group, and a lone retired `inlineEdit: true`. - A `describe` pins: field-group placement credits, by child name and by `object.field`; a group on the CHILD, or a group naming an FK with `relatedList: true`, does not credit; `inlineEdit: true` alone does not credit; `'grid'` and `'form'` with no placing group do not credit; a placed child credits under either form factor. ## Acceptance notes - **Serial: lands after objectstack-ai#36802** (merged at 22:27Z; `main` merged into this branch since). Its `corpus.ts` places the golden corpus control cards' children (`invoice_with_line_items`, `project_with_tasks`) with field groups; before it, those two `scenario-cards.test.ts` pins read red under the corrected tag. Measured green with objectstack-ai#36802's `corpus.ts` in place at head `2c1f1e68fa`: 137/137 across `scenario-cards.test.ts` and `scenario-tags.test.ts`. The CI run on the merged head is the verdict. ## Verification Two-minute check: `pnpm --filter @objectstack/scenarios exec vitest run --maxWorkers=2 test/score/` should pass, including the `master-detail inline edit` describe and both control cards. Files to read first: 1. `packages/qa/scenarios/src/score/scenario-tags.ts`, the tag's `run`. The risk is the master lookup: `rawObject(f, field.reference)` is matched by normalised name. 2. `packages/qa/scenarios/test/score/scenario-tags.test.ts`, the rich fixture edit in `richArtifact`. Every other tag scores this fixture. Readings: the dev reports on objectstack-ai#37127 (round 1 and fix round 7146536492). --- 🤖 Generated with [Claude Code](https://claude.com/claude-code) https://claude.ai/code/session_01QSeKYo86w1wqy2z2fMrryr --------- Co-authored-by: Claude <noreply@anthropic.com> Co-authored-by: objectstack-fleet[bot] <332303061+objectstack-fleet[bot]@users.noreply.github.com>
…elationship (objectstack-ai#37170) repo:objectstack#4 · os-justin · session_01QSeKYo86w1wqy2z2fMrryr Fixes objectstack-ai#37042 Clause-②: no Metadata-protocol: none ## 维护者速读 - 用户能看到什么变化:用户无感;读「数据建模」和「界面」技能的 AI 助手不再写已被拒收的 `inlineEdit: true`,主从明细的录入方式只写 `'grid'` / `'form'`,或者不写(按明细的字段自动选)。 - 为什么做:PR objectstack-ai#36802 已退役布尔写法(解析时拒收),技能文字还在教它;这张卡必须在带上 objectstack-ai#36802 的那次发版之前合并,否则发出去的技能会教 AI 写出被拒收的元数据。 - 出错会怎样:只改说明文字和一条测评,撤回这一个合并即可。 - 要你做什么:无。Tier S(低风险 skills 档,契约审核 7149350343 判 `Security-touching: no`),本区在 CI 全绿后落地。 ## What changes Opened by the seat on the maintainer's authorization in seat repo:objectstack#4's session (「objectstack-ai#37093:开 PR 放行。你应该使用 pm-dispatch 技能审核和落地pr,该放行的都放行」; 「objectstack-ai#37042:放行」); the developer's own `pr_create` in zone a4-A's session was refused by a permission check. Branch `claude/issue-37042-skills-inline-edit-boolean` @ `bc01139be8`, implemented by zone a4-A's dispatch. - `skills/objectstack-data/rules/relationships.md`, "Inline-edit form factor": the `inlineEdit: true // auto (default)` line is removed; the smart default is described as what an omitted key gets, noting that a boolean is refused. - `skills/objectstack-data/evals/objects-fields-relationships.json` case 25: the expected answer no longer offers `true`. - `skills/objectstack-ui/rules/list-views.md`, Master-Detail Forms: the pointer to that section no longer lists `true` beside `'grid'` and `'form'` (added in the fix round for contract-review finding M1). - One `@objectstack/skills` patch changeset naming both skills. Since PR objectstack-ai#36802 merged, the spec parse refuses `true` / `false` on a relationship field's `inlineEdit`; only `'grid'` and `'form'` are accepted, and an omitted key picks the form factor from the child's shape. Release-coupled: this lands before the release that ships objectstack-ai#36802. Token readings: `relationships.md` 4199 → 4192 (ceiling 4203); `list-views.md` 4444 → 4442 (ceiling 4448); no ceiling moved, the ratchet script is not in the diff. Merges cleanly with the open PR objectstack-ai#36158. A sweep of every `inlineEdit` under `skills/**` finds no other relationship-field boolean; `objectstack-ui/references/react-blocks.md` line 76 is the view-level key, untouched. ## Review history - Contract review 7149242271 at `1787e54e67`: FAIL on M1 (the `list-views.md` pointer still listed `true`). - Fix round at `bc01139be8`; delta review 7149350343: PASS, `M1: closed`, `Security-touching: no`. ## Tests No package source changes. The contract review and L1 read the gate check-runs on this head. --- 🤖 Generated with [Claude Code](https://claude.com/claude-code) https://claude.ai/code/session_01QSeKYo86w1wqy2z2fMrryr --------- Co-authored-by: Claude <noreply@anthropic.com>
repo:objectstack#7 · os-alice · session_011y7As5bdhV5T4N9vpjmZzH
Fixes #35926
Clause-②: no (narrowing)
Metadata-protocol: narrowed
Skills-docs: follow-up #37042
维护者速读
What changes
Per the maintainer's field-group ruling on #35889 (record 7046311205, 「一律只看分组」), a field group of the parent decides whether the parent's form inlines a child, so a relationship field's
inlineEditonly picks the form factor of a placed child. Measured onorigin/maine343ab7, every reader passes anything but'grid'/'form'as absent:ui/packages/app-shell/src/providers/MetadataProvider.tsx(attachInlineSubforms):d.inlineEdit === 'grid' || d.inlineEdit === 'form' ? d.inlineEdit : undefined;ui/packages/plugin-form/src/deriveMasterDetail.tsresolveInlineMode:true/false/undefinedall take the smart default;packages/lint/src/validate-field-consumers.tsformFactorOf:undefinedfor anything else;data-model-rules.ts) no longer read the value at all.So
falsereads exactly as absent too, and the whole boolean arm is retired, not onlytrue. One non-runtime reader treatstruedifferently, the scenario scorer; see Acceptance notes.@objectstack/spec:FieldSchema.inlineEditnarrows fromboolean | 'grid' | 'form'toz.enum(['grid', 'form']), and the enum's own error map answers a boolean with the prescription (INLINE_EDIT_BOOLEAN_RETIRED, house five-part shape andos migrate meta --from 17sentence).tscrefuses a boolean at every typed site. The route is a value narrowing likeindexes[].unique: true(the same refusal-by-error-map precedent):enumWithRetiredValuestakes string members only, so it cannot name a boolean arm.field-inline-edit-boolean-removed(lossless delete of a boolean onobjects[]/objectExtensions[]field maps,retiredFromLoadPath: true,retiredAfter: '18.6.0'), inMAJOR_18_CONVERSIONSat order 84; D3 semantic entryfield-inline-edit-boolean-retired; a step-18 rationale fragment; a JOIN row inretired-key-removal-version.pin.test.ts. NoRETIRED_KEYS_BY_MAJORrow: the key is not tombstoned.field.jsoninlineEditstayslivefor the two surviving values, now withverifiedAt, in-repo evidence and the narrowing in its note. State counts unchanged.inlineEditas a Grid / Form select onlookup/master_detail; the reconciliation ledger drops the row and the ruled class dropsfield.inlineEdit, as that test's own header prescribes for "a ruled key that a form offers later". i18n bundles regenerated (check-i18n-bundles.mjs --write), zh-CN / ja-JP / es-ES translated by hand; the echo-decisions count pin carries one more row label (824 after the second main merge: main's 823 plus this PR's one label).relatedListprose kept true: it no longer calls itself "the read-side mirror of inlineEdit" but "the record-page side; inlineEdit picks the form factor on the form side".fieldGroups[].relatedList) instead ofinlineEdit: true, since each prompt asks for lines entered with the parent; test fixtures in spec, cli and app-shell are respelled to'grid'or the key is dropped. Docs (field-types.mdx,fields.mdx,common-patterns.mdx,flows.mdx) teach'grid' | 'form'. Stale comments inproject.view.ts,deriveRelatedLists.ts,validate-field-consumers.ts,score.tsfixed..changeset/35926-field-inline-edit-boolean-retired.md(spec minor, cli patch, platform-objects patch, lint patch: the lint edit is comment text on unexported functions) with FROM → TO table and ADR-0087 disposition.File-surface notes: the claim listed
examples/app-showcase/src/ui/views/task.view.tsandpackages/lint/src/showcase-shape.fixtures.ts; both carry the VIEW-levelinlineEdit(a different, live key) and are untouched. Producer-side files outside the listed surface, each a direct consequence of the narrowing:field.form.ts,metadata-form-zod-reconciliation.test.ts, the platform-objects translation bundles and their count pin, cliscore.tscomment and four cli tests, the app-shell inspector test.Tests
packages/spec/src/data/field-inline-edit-boolean.pin.test.ts(14):true/falserefused atinlineEditwithinvalid_valueand the prescription;'grid','form', absent parse; an unknown string keeps zod's own message;@ts-expect-erroron a typed boolean; the conversion deletes a boolean on both collections and leaves'grid'/'form'; step-18 wiring.inlineEditis a live boolean key of the same name, so a text scan cannot tell the retired spelling from the live one. The sweep is the input type and the parse.Package runs on earlier head 5874e77 (after the first main merge at 57445a6; the second merge changed only the count pin and the changeset)
@objectstack/spectest: Test Files 890 passed (890), Tests 28186 passed, 1 todo; typecheck exit 0.@objectstack/linttest: Test Files 231 passed (231), Tests 9567 passed; typecheck exit 0.@objectstack/cliunit tier: Test Files 443 passed (443), Tests 6325 passed; typecheck exit 0. Integration tier declared to CI (no integration-tier file or spawn entry in the diff).@objectstack/platform-objectstest: Test Files 125 passed (125), Tests 2138 passed; typecheck exit 0.@object-ui/app-shellObjectFieldInspector.relatedList-27054.test.tsx(run from theui/root): 8 passed.@objectstack/example-showcasetypecheck exit 0.test:repo(vitestrepoproject) not run locally: the diff edits none of its tests and the derived list does not name it; CI'sTest Corecarries it.Acceptance notes
214ce2d72cis carried. This head was produced by a seat-owned resume on the default tier (opus), effort high: a fresh worktree,origin/mainmerged (a merge, not a rebase) throughscripts/pm/os-regen-merge.sh, the one deferred artifact (content/docs/references/data/object.mdx) regenerated from the merged tree, then every spec artifact gate re-run.packages/qa/scenarios/src/score/scenario-tags.ts(records-forms.master-detail-inline-edit) creditsinlineEdit === trueas "edited inline". Since 主从子表默认只是页签,不再自动放进概览和表单;只有字段分组指定时才放进去 #35889inlineEditalone inlines nothing, and since this PR a boolean is refused at parse, so that branch can only see an unparsed stack. Not changed here; carried by Scenario scorer:records-forms.master-detail-inline-editstill credits the retiredinlineEdit: true(follow-up of #35926) #37127.docs/adr/0035-config-driven-master-detail.mdstill showsinlineEdit: trueas history; governed surface, not edited.skills/objectstack-data/rules/relationships.mdstill teachesinlineEdit: trueas "auto"; skills are out of this PR's surface; carried by skills: stop teachinginlineEdit: trueon master-detail relationships (follow-up of #35926) #37042 (release-coupled: lands before the release that ships this narrowing).check:skill-examplesis green (the block is unmarked).check:i18n-coveragereports none new.pnpm check:platform-checklistreads red onorigin/mainitself (57445a6 and a73edb3):docs/qa/platform-checklist/areas/access-security.jsonanchorsanonymousFormExplicitWithdrawalsinpackages/metadata-core/src/anonymous-form-intake.ts, which no longer declares it. This diff touches neither file; the gate is outside per-PR CI and its nightly watchdog carries it.Verification
First read (by risk):
packages/spec/src/data/field.zod.ts— the narrowed enum andINLINE_EDIT_BOOLEAN_RETIRED.packages/spec/src/conversions/entries/18/field-inline-edit-boolean-removed.ts— the lossless delete and its fixture.packages/spec/src/data/field.form.ts+metadata-form-zod-reconciliation.test.ts— the new form row and the ledger change.Two-minute check:
pnpm --filter @objectstack/spec exec vitest run src/data/field-inline-edit-boolean.pin.test.ts— expect 14 passed, the refusal message starting with`field.inlineEdit: true` and `field.inlineEdit: false` were removed in @objectstack/spec 18.7.0.Readings on head ca353cc (second main merge at bfd1049, merge commit f671e98)
object-lifecycle-panel-echo-decisions.test.ts: 35 passed, pinned at 824. i18n bundles regenerated with zero byte change;check:generated: all 14 artifacts up to date.pnpm --dir ui exec vitest run scripts/: 172 files passed, 2 skipped. climigrate-meta-engine-guidance.test.ts: 3 passed. Full build (turbo run build --filter=!@objectstack/docs):VERDICT command-exit 0after the post-mergepnpm install --frozen-lockfile.dispatch-gates --commandsderived 128 families;--ran: 128 accounted for, 127 run, 1 NOT-MEASURED:check:type-check-debt(its closure build never got a turn on the shared verify lock; CI'sType Check · debt ledgeris success).pnpm --filter @objectstack/dogfood test, no shard, no path):DOGFOOD_EXIT=0, Test Files 487 passed, 3 skipped (490), Tests 4128 passed, 68 skipped (4196), 0 failed. Caveat: it ran in a locked batch whose last leg read an earlier failed build attempt (service-knowledge, outside the dogfood closure), so the lock line readsbatch-last-exit 1, not the battery's own verdict; the seat review 7144293247 accepted it as head-pinned evidence.Gates (local, earlier head 5874e77)
check:generated(aftergen:schema && gen:docsover the merge, spec rebuilt from the merged tree): all 14 generated artifacts up to date.dispatch-gates --commandsderived 128 families; all 128 run with exit codes recorded;--ranreconciliation: 128 derived, 128 run, 0 NOT-MEASURED, 0 UNRUN (a derived zero). Exit 0 for 127, includingcheck:dual-build-cjs-loadsandpnpm --dir ui exec vitest run scripts/(172 files passed, 2 skipped), both NOT MEASURED on the previous head. Exit 1:check:platform-checklist, the main-side anchor named in Acceptance notes.check:type-check-debtunder the lock: OK, 129/132 type-checked, 0 above ledger.check:dev-prereqs0,check:skill-frame-freshness0.pnpm --filter @objectstack/dogfood testunder the lock, no shard, no path, every package built from the merged tree):VERDICT command-exit 0, Test Files 487 passed, 3 skipped (490), Tests 4127 passed, 68 skipped (4195), no failure.Generated by Claude Code