Skip to content

chore: version packages - #35129

Open
github-actions[bot] wants to merge 1 commit into
mainfrom
changeset-release/main
Open

github-actions[bot] wants to merge 1 commit into
mainfrom
changeset-release/main

Conversation

@github-actions

@github-actions github-actions Bot commented Nov 18, 2026 •

Copy link
Copy Markdown
Contributor

This PR was opened by the Changesets release GitHub action. When you're ready to do a release, you can merge this and publish to npm yourself or setup this action to publish automatically. If you're not ready to do a release yet, that's fine, whenever you add more changesets to main, this PR will be updated.

Releases

The changelog information of each package has been omitted from this message, as the content exceeds the size limit.

@objectstack/cli@18.7.0

@objectstack/client@18.7.0

@objectstack/cloud-connection@18.7.0

@objectstack/core@18.7.0

create-objectstack@18.7.0

@objectstack/driver-sql@18.7.0

@objectstack/formula@18.7.0

@objectstack/lint@18.7.0

@objectstack/mcp@18.7.0

@objectstack/metadata@18.7.0

@objectstack/metadata-core@18.7.0

@objectstack/metadata-protocol@18.7.0

@objectstack/objectql@18.7.0

@objectstack/platform-objects@18.7.0

@objectstack/plugin-approvals@18.7.0

@objectstack/plugin-audit@18.7.0

@objectstack/plugin-security@18.7.0

@objectstack/scenarios@18.7.0

@objectstack/rest@18.7.0

@objectstack/runtime@18.7.0

@objectstack/service-automation@18.7.0

@objectstack/service-messaging@18.7.0

@objectstack/service-record-context@18.7.0

@objectstack/spec@18.7.0

@object-ui/console@18.7.0

@object-ui/components@18.7.0

@object-ui/core@18.7.0

@object-ui/data-objectstack@18.7.0

@object-ui/fields@18.7.0

@object-ui/i18n@18.7.0

@object-ui/layout@18.7.0

@object-ui/plugin-detail@18.7.0

@object-ui/plugin-form@18.7.0

@object-ui/plugin-grid@18.7.0

@object-ui/plugin-kanban@18.7.0

@object-ui/plugin-list@18.7.0

@object-ui/plugin-report@18.7.0

@object-ui/plugin-view@18.7.0

@object-ui/types@18.7.0

@objectstack/hono@18.7.0

@objectstack/account@18.7.0

@objectstack/setup@18.7.0

@objectstack/studio@18.7.0

@objectstack/client-react@18.7.0

@objectstack/connector-mcp@18.7.0

@objectstack/connector-openapi@18.7.0

@objectstack/connector-rest@18.7.0

@objectstack/connector-slack@18.7.0

@objectstack/console@18.7.0

@objectstack/driver-memory@18.7.0

@objectstack/driver-mongodb@18.7.0

@objectstack/driver-odata@18.7.0

@objectstack/driver-sqlite-wasm@18.7.0

@objectstack/driver-turso@18.7.0

@objectstack/metadata-fs@18.7.0

@objectstack/observability@18.7.0

@objectstack/embedder-openai@18.7.0

@objectstack/knowledge-memory@18.7.0

@objectstack/knowledge-ragflow@18.7.0

@objectstack/organizations@18.7.0

@objectstack/plugin-auth@18.7.0

@objectstack/plugin-dev@18.7.0

@objectstack/plugin-email@18.7.0

@objectstack/plugin-hono-server@18.7.0

@objectstack/plugin-pinyin-search@18.7.0

@objectstack/plugin-sharing@18.7.0

@objectstack/plugin-webhooks@18.7.0

@objectstack/service-analytics@18.7.0

@objectstack/service-cache@18.7.0

@objectstack/service-cluster@18.7.0

@objectstack/service-cluster-redis@18.7.0

@objectstack/service-datasource@18.7.0

@objectstack/service-i18n@18.7.0

@objectstack/service-job@18.7.0

@objectstack/service-knowledge@18.7.0

@objectstack/service-mailbox@18.7.0

@objectstack/service-package@18.7.0

@objectstack/service-print@18.7.0

@objectstack/service-push@18.7.0

@objectstack/service-queue@18.7.0

@objectstack/service-realtime@18.7.0

@objectstack/service-settings@18.7.0

@objectstack/service-sms@18.7.0

@objectstack/service-storage@18.7.0

@objectstack/skills@18.7.0

@objectstack/trigger-api@18.7.0

@objectstack/trigger-record-change@18.7.0

@objectstack/trigger-schedule@18.7.0

@objectstack/types@18.7.0

@objectstack/verify@18.7.0

@object-ui/auth@18.7.0

@object-ui/cli@18.7.0

@object-ui/collaboration@18.7.0

@object-ui/mobile@18.7.0

@object-ui/permissions@18.7.0

@object-ui/plugin-calendar@18.7.0

@object-ui/plugin-charts@18.7.0

@object-ui/plugin-chatbot@18.7.0

@object-ui/plugin-dashboard@18.7.0

@object-ui/plugin-designer@18.7.0

@object-ui/plugin-editor@18.7.0

@object-ui/plugin-gantt@18.7.0

@object-ui/plugin-map@18.7.0

@object-ui/plugin-markdown@18.7.0

@object-ui/plugin-timeline@18.7.0

@object-ui/plugin-timesheet@18.7.0

@object-ui/plugin-tree@18.7.0

@object-ui/react@18.7.0

@objectstack/connector-imap@18.7.0

@objectstack/sdui-parser@18.7.0

@object-ui/create-plugin@18.7.0

@object-ui/react-runtime@18.7.0

@object-ui/app-shell@18.6.0

@objectstack/example-crm@4.0.107

@objectstack/example-multi-package@0.0.14

@objectstack/example-showcase@0.3.29

@objectstack/example-todo@4.0.107

@objectstack/example-embed-objectql@0.0.47

@objectstack/connector-app-docusign@0.1.5

@objectstack/connector-app-github@0.1.5

@objectstack/connector-app-stripe@0.1.5

@objectstack/dogfood@0.0.55

@objectstack/downstream-contract@0.0.53

@objectstack/http-conformance@0.1.15

@github-actions
github-actions Bot force-pushed the changeset-release/main branch from 248c27e to 6287708 Compare November 18, 2026 12:09
@github-actions
github-actions Bot force-pushed the changeset-release/main branch 2 times, most recently from 4c945f2 to da8f073 Compare November 19, 2026 00:16
@github-actions
github-actions Bot force-pushed the changeset-release/main branch from da8f073 to 8a99c4b Compare November 19, 2026 06:11
@github-actions
github-actions Bot force-pushed the changeset-release/main branch from 8a99c4b to c1b2e5b Compare November 19, 2026 12:10
@github-actions
github-actions Bot force-pushed the changeset-release/main branch from c1b2e5b to 31fd9c9 Compare November 19, 2026 18:10
@github-actions
github-actions Bot force-pushed the changeset-release/main branch from 31fd9c9 to 98835e3 Compare November 20, 2026 00:17
247257110 pushed a commit to 247257110/objectstack that referenced this pull request Nov 23, 2026
…hole arrangement (fieldGroups, relatedLists) (objectstack-ai#36568)

<!-- claude-projects-attribution: {"github_login":"os-steve"} -->
_Requested by **Steve** · [project
thread](https://claude.ai/code/project/chan_01FdL1XeUyvVNxLreh3F4Qi9?thread=cmsg_01FdL1XeUyvVNxLreh3F4Qi91tYCagMT6JaQ6YA5YqnWwi)_

Fixes objectstack-ai#36541

Clause-②: no
Metadata-protocol: none

## 维护者速读

- 用 AI 写配置的客户,想给已安装软件包里的对象重排记录页(换字段分组、调页签顺序、隐藏页签)时,AI
现在知道这份排布要写在该软件包配套的环境定制包里;以前技能没讲这件事,AI 要么不会用,要么写进别的扩展包后被拒收。
- 属于「记录页标签与分组」专题:环境管理员整页排布的能力上一步已经上线,这一步把它教给 AI 作者,并补一道考题。
- 如果教错,AI 会把排布写到会被拒收的位置,保存或校验时当场报错并给出改法,数据不受影响;撤回这次改动,技能文字就回到原样。
- 审批这次对外技能文字的改动(技能包属于受管范围,需要你来合入)。

## Fix round 1

Head `90a673de67`, one commit on top of `0db54351e8`, answering the
contract review of that head (record 7087999230).

- **S1, the refused writer is named by what the judge tests.** The
paragraph's last sentence read "In any other package both keys are
refused at those doors". That is false for a `.custom` package that is
not the object's pair: `judgeExtensionArrangement` returns no refusal
when `isCustomizationPackage(packageId)` holds
(`packages/metadata-protocol/src/protocol-extension-arrangement.ts:94`;
the predicate is the id's `.custom` suffix over a valid base,
`packages/spec/src/kernel/customization-package.ts:119`), and the key
descriptions say such a package "is not refused at those doors: the
registry merge does not apply what it writes here ... and the boot log
names it" (`CUSTOM_ARRANGEMENT_WRITER`,
`packages/spec/src/data/object.zod.ts:6832`). Both files read again on
`main` at `abe95a950d`: unchanged since `d463c46f`. The sentence now
reads "Outside a `.custom` package both keys are refused at those doors:
use `place`." The changeset's first bullet carries the same words.
- **Bytes.** The new wording is 7 bytes longer and the file had exactly
7 priced bytes of headroom, so nothing more is cut: 26,853 to 26,860
bytes, 6,709 to 6,710 tokens, ceiling 6,710 unchanged.
- **N1, case 27 asserts `place:`.** The token `place` also matched the
word "replaces", so an answer that never said what the add-on package
writes could pass. It is `place:` now, the token case 26 uses; the
reference answer already contains `place: [`. Regraded below.
- **N2 is left as it is.** No byte remains after S1, and the review ties
the clause to bytes being left.

## What changes

**One paragraph in `skills/objectstack-data/SKILL.md`, § Object
Extension Model** (lines 386 to 390 at head `90a673de67`), inside the
paragraph about an object an installed package ships, right after the
sentence that lists the doors of the `__c` rule:

> Only the pair's extension may also write `fieldGroups` and
`relatedLists`, shaped as on an object. A written key replaces that
arrangement whole (the owner's and every `place`): an unlisted field
shows after the last group, an unnamed tab still shows after the listed
ones, and `{ list: 'crm_note', hidden: true }` hides a tab. Outside a
`.custom` package both keys are refused at those doors: use `place`.

"Those doors" are the ones the sentence before it names: save, publish
and install, `os validate` and `os build`.

**What it teaches is what is on `main`** (PR objectstack-ai#36517, merge commit
`45ef94ef`; ADR-0146 D2, D3 and D10), read at `d463c46f`:

| Sentence | Where it is on `main` |
|:---|:---|
| The two keys, in an object's shapes |
`packages/spec/src/data/object.zod.ts:7070` (`fieldGroups`, an array of
the object's group schema) and `:7082` (`relatedLists`); the key list is
`CUSTOM_ARRANGEMENT_KEYS`,
`packages/spec/src/data/field-customization.ts:124` |
| `{ list, hidden: true }` |
`packages/spec/src/data/object.zod.ts:6703`: `hidden` is a boolean on
the extension's entry only; an object's own entry refuses it by name
(`:1347`) |
| A written key replaces whole; an unlisted field after the last group;
an unnamed tab still shows after the listed ones | the two key
descriptions, `packages/spec/src/data/object.zod.ts:6837` and `:6863`;
the fold is `applyCustomArrangement`,
`packages/objectql/src/registry-custom-arrangement.ts:144` |
| Only the pair writes them; outside a `.custom` package they are
refused and the writer is told to use `place` | one judge,
`judgeExtensionArrangement`,
`packages/metadata-protocol/src/protocol-extension-arrangement.ts:91`.
Its answer is `VALIDATION_ERROR` / 400 (`:116`); the message, measured
on this PR's eval shape: "`relatedLists` in the extension of object
'crm_account' in package 'acme_contracts': only the object extension of
a base's paired `.custom` package declares an object's whole arrangement
(ADR-0146 D10). Remove the key and place what this package brings with
`place`, e.g. `place: [{ list: 'contract', after: 'opportunity' }]`." |
| The doors | save
`packages/metadata-protocol/src/protocol-save.ts:1390`; publish
`protocol-history-and-publish.ts:1062`; restore
`protocol-authoring-gate.ts:129` (all three through
`objectExtensionItemRefusal`, `protocol-object-extension-item.ts:257`);
`os validate` `packages/cli/src/commands/validate.ts:895`; `os build`
`packages/cli/src/commands/compile.ts:948`; install
`packages/cloud-connection/src/marketplace-install-local-plugin.ts:3192`
(`VALIDATION_ERROR` / 422, one row per key in `details.refusals`) |

**Paid for in the same file; the token ceiling is not raised.** The file
had 0 tokens of headroom (6,710 of 6,710). The paragraph is 407 bytes
(400 before fix round 1); five restatements are cut, 405 bytes, and the
content of each stays in the bundle. The remaining 2 bytes come out of
the 2 priced bytes the file had under its ceiling:

| Cut from `SKILL.md` | Bytes | Where the content stays |
|:---|---:|:---|
| § Validation Patterns, the note that on insert an omitted optional
field reads as `null` in a predicate | 240 | `rules/validation.md` lines
80 to 83 (the same note) and line 17 (a `script` rule judges the merged
record: prior row plus this write) |
| § Index Patterns, "`unique` defaults to `false`; omit it when that is
what you mean." | 66 | `rules/indexing.md` line 11 |
| Quick Reference, the lifecycle row's "append-only objects must declare
one" | 42 | the `lifecycle` row of the optional-properties table in the
same file ("Required for append-only, high-write-rate objects") and
`rules/lifecycle.md` line 14 |
| The `sharingModel` heading's "(ADR-0090 D4; legacy aliases removed)" |
38 | `references/lint-rules.md` line 23 (`security-owd-alias`: a legacy
spelling is an error, ADR-0090 D4) |
| The `pluralLabel` row's `(e.g., "Accounts")` | 19 | the object JSON
example in the same file (`"pluralLabel": "Accounts"`) |

**The two readings** (tokens in the ratchet's convention, `ceil(utf8
bytes / 4)`, the release-stamp line not priced):

| | Before (`d463c46f`) | After (`90a673de67`) |
|:---|:---|:---|
| `skills/objectstack-data/SKILL.md` | 473 lines · 26,858 bytes · 6,710
tokens (ceiling 6,710) | 472 lines · 26,860 bytes · 6,710 tokens
(ceiling 6,710, unchanged) |
| All 14 `skills/*/SKILL.md` | 4,951 lines · 261,175 bytes | 4,950 lines
· 261,177 bytes |
| Ratcheted (authored) tokens, whole bundle | 197,573 | 197,573 |
| Eval fixtures (measured, not ratcheted) | 81,141 | 81,720 |
| Bundle total | 293,321 | 293,900 |

**One eval case**,
`skills/objectstack-data/evals/objects-fields-relationships.json` case
27: an add-on package put the tab arrangement (two tabs swapped, one
hidden) on its own extension of an installed object and `os validate`
refused it. The answer moves the arrangement to the object extension of
the base's paired `.custom` package and names `place` as what the add-on
package writes. `must_contain`: `hotcrm.custom`,
`defineObjectExtension`, `extend: 'crm_account'`, `relatedLists`,
`hidden: true`, `place:`.

Two riders in the eval directory:

- Case 26 (the `place` case) said in its reference answer that "an
extension has neither key". That stopped being true when the two keys
shipped, and the new paragraph says the opposite, so the parenthesis now
reads: only the object extension of HotCRM's paired `hotcrm.custom`
package writes those keys; here they are refused. Its prompt and
assertions are unchanged, so its case hash is unchanged.
- `evals/README.md` lists what the file covers and gains the new case's
topic.

**Changeset**: `.changeset/36541-skills-custom-arrangement.md`,
`@objectstack/skills` patch.

## Tests

The grader and gate readings are at head `90a673de67`, tree clean. The
door suites were run at `0db54351e8`; fix round 1 touches no file they
read.

<details>
<summary>The eval file's reference answers under its own
grader</summary>

`gradeAnswer` (`packages/qa/scenarios/src/skill-evals/grade.ts`) over
each case's `expected_output`, cases parsed by the runner's own
`parseEvalFile`. No model round was run.

| Tree | Reading |
|:---|:---|
| `d463c46f` (control) | 26 cases parsed, 0 refusals; reference answers
PASS 26/26 |
| `0db54351e8` (the head reviewed before) | 27 cases parsed, 0 refusals;
reference answers PASS 27/27; case 26 PASS; case 27 PASS |
| `90a673de67` | 27 cases parsed, 0 refusals; reference answers PASS
27/27; case 26 PASS; case 27 PASS |

Named answers for case 27, each graded under the assertions of both
heads and each as expected:

| Answer | At `0db54351e8` (`place`) | At `90a673de67` (`place:`) |
|:---|:---|:---|
| the reference answer | PASS | PASS |
| a short answer: the pair, the arrangement, `place: [...]` for the
add-on package | PASS | PASS |
| the pair and the arrangement, "the key replaces the tab list whole",
nothing about what the add-on package writes (the N1 control) | PASS |
FAIL, `missing=["place:"]` |
| the arrangement kept on the add-on package, the pair never named |
FAIL, `missing=["hotcrm.custom"]` | FAIL, `missing=["hotcrm.custom"]` |
| the pair named, the tab hidden by leaving it out (an object's own
rule) | FAIL, `missing=["hidden: true"]` | FAIL, `missing=["hidden:
true"]` |

At `0db54351e8` two more named answers were graded as expected: the
object redeclared with an `overrides` declaration (FAIL,
`forbidden=["name: 'crm_account'","overrides:"]`), and the pair named
with nothing said about the add-on package (FAIL, `missing=["place"]`).

The reference answer's extension, `{ extend: 'crm_account',
relatedLists: ['crm_opportunity', 'crm_contact', { list: 'crm_lead',
hidden: true }] }`, parses under `ObjectExtensionSchema`;
`judgeExtensionArrangement` answers 1 refusal for package
`acme_contracts` (path `objectExtensions[0].relatedLists`) and 0 for
`hotcrm.custom`.

`node ui/scripts/check-skill-eval-tokens.mjs`: exit 0, "Every
must_contain token is taught by its own skill bundle."

</details>

<details>
<summary>Which doors refuse: the suites of the merged protocol, run on
this head</summary>

The dispatch asked which doors actually refuse a writer that is not a
`.custom` package. Each door's suite was run, at `0db54351e8`, after
building its dependency closure (`turbo run build
--filter='@objectstack/cli^...'`, 64 tasks, exit 0), each run under the
shared verification lock:

| Door | Suite | Reading |
|:---|:---|:---|
| The judge, and the gate the save, publish and restore doors ask |
`packages/metadata-protocol/src/protocol-extension-arrangement.test.ts`
| exit 0, `Tests 13 passed (13)` |
| Save, through the real protocol and engine |
`packages/objectql/src/protocol-custom-arrangement.test.ts` | exit 0,
`Tests 6 passed (6)` |
| `os validate` and `os build`, both commands in process |
`packages/cli/test/validate-build-extension-arrangement.test.ts`,
`packages/cli/src/utils/extension-arrangement.test.ts` | exit 0, `Test
Files 2 passed (2)`, `Tests 10 passed (10)` |
| Install |
`packages/cloud-connection/src/marketplace-install-local-extension-arrangement.test.ts`
| exit 0, `Tests 5 passed (5)` |
| What a written key does (replaces whole, the unlisted field, the
unnamed tab, the hidden tab) |
`packages/objectql/src/registry-custom-arrangement.test.ts`,
`packages/spec/src/data/object-extension-arrangement.test.ts` | exit 0,
`Tests 33 passed (33)` and `Tests 53 passed (53)` |

The publish and restore doors are measured at the gate they call
(`objectExtensionItemRefusal`); that each of them calls it is read from
the call sites cited above, not from a run through the door.

</details>

<details>
<summary>Gates</summary>

`node scripts/pm/dispatch-gates.mjs --commands` at `90a673de67` derives
the same 50 commands as at `0db54351e8`. All 50 were run again on this
head, each exit code recorded before any pipe; `--ran` answers: "50
derived famil(ies) accounted for — 49 run, 1 NOT-MEASURED (1 DERIVED
from a recorded exit 3)", exit 0.

- 49 exit 0. Among them: `node scripts/check-skills-token-ratchet.mjs`
("60 authored bundle file(s) within their ceilings"; the data row reads
`6710 / 6710 (+0)`), `check:skill-docs`, `check:skill-served-sections`,
`check:skill-links`, `check:skill-identifier-liveness`,
`check:skill-compatibility`, `check:skill-frame-sync`,
`check:doc-authoring`, `check:doc-formula-expressions`,
`check:role-word`, `check:nul-bytes`, `check-empty-changeset`,
`check-changeset-no-major`, `check-adr-0087-registration`.
- NOT MEASURED: `pnpm check:dual-build-cjs-loads`, exit 3. It reads the
built output of every package and asks for a whole-workspace build; this
change touches no package source, and the full build was not made for
it. CI reads it.
- Outside the derived list, also run on this head: `check:skill-refs`
exit 0 ("10 generated files in sync"), `check:skill-examples` exit 0
("349 prose examples type-check across 3 surface(s)"), `node
ui/scripts/check-skill-eval-tokens.mjs` exit 0.
- The gates that read built output (`check:dts-closure`,
`check:published-files`, `check:sourcemap-no-sources-content`,
`check:driver-memory-census`, `check:lean-entry-closure`) answered exit
0 on a tree where the spec, lint, objectql, metadata-protocol and
client-react closures were built, not the whole workspace; their full
reading is CI's.

</details>

## Acceptance notes

1. **Overlap.** `node scripts/pm/overlap-check.mjs` at `90a673de67`:
`origin/main` (`abe95a950d`) merges cleanly; objectstack-ai#35129 and objectstack-ai#36559 merge
cleanly (objectstack-ai#36559 edits case 3 of the same eval file); draft objectstack-ai#36158
conflicts in `skills/objectstack-data/SKILL.md`. That one is known to
the seat and ruled: this card does not wait, and whichever of the two
lands second replays its text.
2. **`main` moved after the branch was cut**, `d463c46f` to
`abe95a950d`. It merges cleanly and the branch was not merged again.
3. **Both mechanism assumptions of the dispatch hold.** The refusal
fires at save, publish and install and at `os validate` / `os build`,
the doors the `__c` sentence already lists, so the paragraph says "at
those doors". `{ list, hidden: true }` is the schema's spelling.
4. **What the paragraph leaves to the refusal texts and the docs page**
(`content/docs/data-modeling/object-extensions.mdx`, "Arranging the
whole record page"), to stay inside the ratchet: a `place` entry beside
the key that replaces it is refused at parse with its own prescription;
a built-in tab is written as its bare name and cannot be hidden; a
`.custom` package that is not the object's pair is not refused, it is
skipped and named in the boot log (since fix round 1 the paragraph no
longer says the opposite; it still does not teach the skip); a list the
owner hid by leaving it out stays hidden until the arrangement names it;
a field is kept off the page by a group whose `visibleWhen` is false.
5. **Case 27's prompt carries two of its own `must_contain` tokens**
(`relatedLists`, `hidden: true`), because the colleague's refused
extension is quoted in it. The tokens the prompt does not hand over are
`hotcrm.custom`, `defineObjectExtension`, `extend: 'crm_account'` and
`place:`. With `place:` an answer that names `place` only in prose,
without an entry, does not pass; case 26 has the same property.
6. **`evals/README.md` is outside the file surface the claim lists.** It
is the index of the eval file and the same-file PR before this one
updated it with its case, so it is updated here too.
7. **The ceiling row is untouched at 6,710** and the file sits exactly
on it, with 0 tokens of headroom, as it did on `main`.

## Verification

**Read first:**

1. `skills/objectstack-data/SKILL.md` lines 386 to 390, the last
sentence first (fix round 1), beside `CUSTOM_ARRANGEMENT_WRITER` and the
two key descriptions in `packages/spec/src/data/object.zod.ts` (lines
6828 to 6888). The risk is a sentence that says more than the runtime
does.
2. The five deletions in the same diff, each against the home named in
the table above. The riskiest is the insert-null note: it leaves the
always-loaded file and stays in `rules/validation.md`.
3. Case 27, and the one changed parenthesis of case 26, in
`skills/objectstack-data/evals/objects-fields-relationships.json`.

**Two-minute check:** `node scripts/check-skills-token-ratchet.mjs`.
Expected: the data row reads `6710 / 6710 (+0)` and the last line reads
"60 authored bundle file(s) within their ceilings".

🤖 Generated with [Claude Code](https://claude.com/claude-code)

https://claude.ai/code/session_01ADHkmPTDM2MxHR8cvoMVUX

<!-- signed: repo:objectstack#2 · os-steve ·
session_01ADHkmPTDM2MxHR8cvoMVUX -->

---------

Co-authored-by: Claude <noreply@anthropic.com>
247257110 pushed a commit to 247257110/objectstack that referenced this pull request Nov 23, 2026
…bject's fields and field groups, and showOnCreate (objectstack-ai#36609)

<!-- claude-projects-attribution: {"github_login":"os-steve"} -->
_Requested by **Steve** · [project
thread](https://claude.ai/code/project/chan_01FdL1XeUyvVNxLreh3F4Qi9?thread=cmsg_01FdL1XeUyvVNxLreh3F4Qi91tYCagMT6JaQ6YA5YqnWwi)_
Fixes objectstack-ai#36455

Clause-②: no
Metadata-protocol: none
Skills-docs: updated here

## 维护者速读

- 用户能看到什么变化:照着界面技能写应用的 AI,今后把「新建 /
编辑」表单的分区、折叠和「新建时不问这个字段」写在对象的字段和字段分组上,不再去写一张已经没人加载的内部表单。
- 为什么做:这是「内部新建和编辑表单退役」那件事的收尾。平台已经改了,技能包还在教旧写法。
- 出错会怎样:AI 照旧文字写出的表单布局不生效,也不知道有「新建时显示」这个开关。本次只改技能文字和它的评测题,撤回这一个合并就恢复原样。
- 要你做什么:技能包属于受管文件,需要你审阅并合并;本单保持草稿。

## What changes

`skills/objectstack-ui` taught the object's internal create and edit
form views (`form`, `formViews.create`, `modalSize`, the form-view
`subforms` override). After objectstack-ai#36425 (PR objectstack-ai#36449, then PR objectstack-ai#36543) the
Console's create and edit surfaces load none of them. The skill now
teaches what `main` does.

- **`SKILL.md`**, Traps 1: New and Edit are the object's fields and
`fieldGroups`, never a form view; `showOnCreate: false` keeps a field
off every create surface and is refused beside `required: true`. The
"Where to go" row for forms names the object as the place the New / Edit
form is authored, and keeps the named and public forms under
`src/views/*.view.ts`.
- **`rules/list-views.md`**, "Form Views": rewritten. New and Edit are
built from the object (fields, sectioned by `fieldGroups` in array
order, following the fields' own rules); `collapse: 'collapsed'` on a
group folds a rarely filled section; `showOnCreate: false` and its
refusal; dialog size and column count are derived. A container's `form`,
`formViews.default` and `formViews.create` still parse and steer
nothing, and `os validate` warns `form-view-internal-not-loaded`. Kept,
as the two kinds of form view that load: a named `formViews` entry
(`OBJECT.key`) that an action of type `form` opens at `/forms/:name`,
and a public form, whose paragraph is unchanged.
- **`rules/list-views.md`**, the `defineView` container example: the
default `form` is replaced by a named `formViews` entry (still an
`os:check` block).
- **`rules/list-views.md`**, "Master-Detail Forms": option 2 (form-view
`subforms`) is removed, because no create or edit surface reads it any
more. The parent field group naming the child (option 1) and the page
block stay. `taxRateField` is attributed to the page block, the only
schema that declares it.
- **`evals/views-apps-actions-pages.json`**: evals 1, 6, 13 and 19
taught or assumed an internal form view. Each now expects the object's
field groups and `showOnCreate`. `evals/README.md` names the new
coverage.
- **`.changeset/36455-ui-skill-create-surfaces.md`**:
`@objectstack/skills` patch. The changeset check requires it: a
`skills/**` change releases that package and never takes the skip label.

### Token and line readings (the skills ratchet; no ceiling is changed)

| File | Lines before → after | Tokens before → after | Ceiling |
|:--|:--|:--|:--|
| `skills/objectstack-ui/SKILL.md` | 164 → 164 | 2230 → 2230 | 2272
(unchanged) |
| `skills/objectstack-ui/rules/list-views.md` | 413 → 409 | 4447 → 4447
| 4448 (unchanged) |
| `skills/objectstack-ui/evals/views-apps-actions-pages.json` | 235 →
235 | 6113 → 6235 | none (eval fixture, measured, not ratcheted) |
| `skills/objectstack-ui/evals/README.md` | 54 → 55 | 636 → 655 | none
(eval fixture) |
| All `SKILL.md` files under `skills/`, summed | 4948 → 4948 | | |
| Bundle total (whole shipped tree) | | 293946 → 294087 | |

Both ratcheted files end at the token count they started at: the new
text is paid for by cuts in the same file. The bundle total rises by 141
tokens, all of it in the two eval files, which the ratchet measures and
does not price (`skills/README.md` says `evals/` is inert in a consumer
install). Readings taken at `f7c9b8465b` against base `f4c2d0b1b9`.

### Where each sentence comes from

Every behavioural claim in the new text, with the code on `main`
(`f4c2d0b1b9`) that makes it true.

| Claim | Source |
|:--|:--|
| `showOnCreate` is an optional boolean on a field; absent or `true`
means asked for on create | `packages/spec/src/data/field.zod.ts:2931` |
| `showOnCreate: false` beside `required: true` is refused, with or
without a `defaultValue`; `requiredWhen` is the way out |
`packages/spec/src/data/field.zod.ts:3253-3271` |
| Every create surface leaves such a field out; edit keeps it |
`ui/packages/app-shell/src/utils/recordFormNavigation.ts:206-211`
(`isFieldAskedOnFlow`),
`ui/packages/app-shell/src/utils/recordFormFields.ts:29-40` |
| The three hosts use that one list: the dialog, the full-page form, an
action-opened form |
`ui/packages/app-shell/src/console/AppContent.tsx:1791`,
`ui/packages/app-shell/src/views/RecordFormPage.tsx:296`,
`ui/packages/app-shell/src/hooks/useActionModal.tsx:289` |
| No internal form view is read: sections, tabs, subforms, `modalSize`,
buttons, layout, `defaults` |
`ui/packages/app-shell/src/console/AppContent.tsx:1752-1757`,
`ui/packages/app-shell/src/utils/recordFormNavigation.ts:213-240` |
| Sections come from `fieldGroups` in declared order |
`packages/spec/src/data/field-group-layout.ts:16-17` |
| `collapse: 'collapsed'` on a group folds its section in the form |
`packages/spec/src/data/object.zod.ts:1602-1603`,
`ui/packages/plugin-form/src/fieldGroups.ts:121-122` |
| The dialog sizes itself when no size is passed, and the hosts pass
none (only the phone posture's `full`) |
`ui/packages/plugin-form/src/ModalForm.tsx:565-590`,
`ui/packages/app-shell/src/utils/recordFormNavigation.ts:213-240` |
| `form`, `formViews.default`, `formViews.create` are reported as
`form-view-internal-not-loaded`, a warning, by the check tools; a public
form and a form under any other name are not |
`packages/lint/src/validate-internal-form-views.ts:16-31` and `:76-128`,
`packages/lint/src/authoring-rules.ts:1832-1844` |
| A `formViews` entry is registered as `OBJECT.key` |
`packages/spec/src/ui/view.zod.ts:8092-8101` |
| An action of type `form` opens `/forms/:name` with `target` as the
name | `ui/packages/core/src/actions/ActionRunner.ts:2931-2950`,
`ui/apps/console/src/App.tsx:456` |
| A named form's `type` is `simple`, `tabbed` or `wizard`, and the page
draws each | `packages/spec/src/ui/view.zod.ts:5341-5343`,
`ui/apps/console/src/components/FormPage.tsx:290` and `:2834-2847` |
| A wizard step lists `fields`; `group` on one is refused |
`packages/spec/src/ui/view.zod.ts:5710-5731` |
| A named form draws no child line items |
`ui/apps/console/src/components/FormPage.tsx`: zero matches for
`subforms`, `relatedList` and `MasterDetail`; control: the same file
matches `wizard` 33 times |
| Child line items on create and edit come only from
`fieldGroups[].relatedList` |
`ui/packages/app-shell/src/utils/recordFormNavigation.ts:185-198` |
| `taxRateField` is a key of the master-detail page block |
`packages/spec/src/ui/component.zod.ts:7552` (no other declaration under
`packages/spec/src`) |

## Tests

No package source changes, so no package test suite is owed. What was
run:

- `check:skill-examples` (not in the derived list; run because an
`os:check` block changed), after building the
`@objectstack/client-react` dependency closure under the verify lock
(`VERDICT command-exit 0`, 43 of 43 tasks): `349 prose examples
type-check across 3 surface(s)`.
- The edited eval file through the repo's own loader (`parseEvalFile`,
`packages/qa/scenarios/src/skill-evals/cases.ts`): 23 cases, 0 refusals.
- No ablation: the diff changes documentation and eval fixtures, and no
behaviour a test pins.

## Acceptance notes

- **The three dispatch assumptions.** (1) Confirmed: Traps 1 and "Form
Views" were the stale passages, and the container example's `form` was
dead for create and edit. Also stale, and corrected: Master-Detail
option 2, the "Where to go" row, and four eval cases. (2) Partly
falsified: of `columns`, `collapse` and `modalSize`, only `collapse` on
a field group is still honoured on create and edit. A field group has no
`columns` key, and the hosts pass no `modalSize`. (3) Confirmed: the
parent field group naming the child is live and is kept.
- **A stepped create form with line items** (eval 6) can no longer be
authored as one form view: New and Edit load no wizard, and a named form
draws no child lines. The eval now expects the field-group order and
says so.
- **Not changed, on purpose.** `rules/navigation.md` "Record
Presentation" already says width and columns are derived; its `sections`
ladder still applies to named forms and page blocks. The `form` row of
the Action Types table still holds. `references/react-blocks.md` is
generated; its `modalSize` sentence follows the spec `describe` text,
which objectstack-ai#36544 carries.
- **Noted, not changed here (outside this card's files).**
`skills/objectstack-data/rules/relationships.md:278` still points at
"`subforms` overrides" in this skill's Master-Detail section, which no
longer has one. No file under `skills/objectstack-data` teaches
`showOnCreate`, though the key is a field key.
`skills/objectstack-automation/SKILL.md:44` and `skills/README.md:125`
send a stepped form to a wizard form view without saying it must be a
named form an action opens.
- **Noted, not filed.** A named or public form carries a section's
`collapsed` through (`FormPage.tsx:933-934`) and no render code in that
file reads it. Read from source only; not reproduced in a browser. The
new text does not teach `collapsed` on a form-view section.

## Verification

Head `f7c9b8465b`.

**Read first** (by risk): 1.
`skills/objectstack-ui/rules/list-views.md`, the "Form Views" hunk:
every sentence is new teaching. 2.
`skills/objectstack-ui/evals/views-apps-actions-pages.json`, eval 6: the
expected answer changed from a wizard to field-group order. 3.
`skills/objectstack-ui/SKILL.md`, Traps 1.

**Two-minute check:** `node scripts/check-skills-token-ratchet.mjs`
prints `skills/objectstack-ui/SKILL.md is 2230 tokens (ceiling 2272` and
`skills/objectstack-ui/rules/list-views.md is 4447 tokens (ceiling
4448`, and exits 0.

<details>
<summary>Local gates at f7c9b84: 50 derived, 49 run with exit 0, 1
NOT MEASURED</summary>

`node scripts/pm/dispatch-gates.mjs --commands` derived 50 commands.
Each was run with its exit code captured before any pipe, and the record
was reconciled:

```
Run reconciliation — 50 derived, 49 run, 1 NOT-MEASURED, 0 UNRUN.
✓ dispatch-gates --ran: 50 derived famil(ies) accounted for — 49 run, 1 NOT-MEASURED (1 DERIVED from a recorded exit 3).
```

NOT MEASURED: `pnpm check:dual-build-cjs-loads`, exit 3 (it needs every
package's `dist`; left to CI).

Verdict lines:

```
✓ check-skills-token-ratchet: 60 authored bundle file(s) within their ceilings; 11 generator-owned file(s) and 42 eval fixture(s) measured, not ratcheted.
✅ Skill docs in sync
✓ check-skill-links: 270 relative link(s) in 75 published skill file(s) resolve; 139 fragment(s) name a real heading under GitHub's slug rule.
✓ check-adr-0087-registration: this PR adds no declared-breaking changeset (1 non-breaking changeset(s) seen).
check-nul-bytes: OK (scanned 27162 text file(s) -- 27162 tracked, 0 untracked-not-ignored; skipped 101 binary; no raw ASCII control bytes).
```

Outside the derived list, also exit 0: `check:skill-examples`,
`check:skill-refs`. `node scripts/pm/overlap-check.mjs` before each
push: `VERDICT clean exit 0` (one open PR, objectstack-ai#35129, shares `SKILL.md` and
merges cleanly).

</details>

CI check-runs: not read at the time this body was written.

🤖 Generated with [Claude Code](https://claude.com/claude-code)

https://claude.ai/code/session_01ADHkmPTDM2MxHR8cvoMVUX
<!-- signed: repo:objectstack#2 · os-steve ·
session_01ADHkmPTDM2MxHR8cvoMVUX -->

---------

Co-authored-by: Claude <noreply@anthropic.com>
@github-actions
github-actions Bot force-pushed the changeset-release/main branch from 76c252f to b0d194f Compare November 23, 2026 12:13
@github-actions
github-actions Bot force-pushed the changeset-release/main branch from b0d194f to d3eefa6 Compare November 23, 2026 18:11
@github-actions
github-actions Bot force-pushed the changeset-release/main branch from d3eefa6 to 8b38ace Compare November 24, 2026 00:18
@github-actions
github-actions Bot force-pushed the changeset-release/main branch from 8b38ace to 9d82531 Compare November 24, 2026 06:14
@github-actions
github-actions Bot force-pushed the changeset-release/main branch from 9d82531 to 92df81b Compare November 24, 2026 12:13
@github-actions
github-actions Bot force-pushed the changeset-release/main branch from 92df81b to f48db4d Compare November 24, 2026 18:11
@github-actions
github-actions Bot force-pushed the changeset-release/main branch from f48db4d to a0610e0 Compare November 25, 2026 00:20

This branch has not been deployed

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

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants