Skip to content

Commit 9e2a4ac

Browse files
docs(skills): the skills index routes a stepped single-object form to a named wizard form, and the sections ladder says New and Edit never read sections (#36625)
<!-- claude-projects-attribution: {"github_login":"os-steve"} --> _Requested by **Steve** · [project thread](https://claude.ai/code/project/chan_01FdL1XeUyvVNxLreh3F4Qi9?thread=cmsg_01FdL1XeUyvVNxLreh3F4Qi91tYCagMT6JaQ6YA5YqnWwi)_ Part of #36611 Clause-②: no Metadata-protocol: none Skills-docs: updated here ## 维护者速读 - 用户能看到什么变化:照着技能包写应用的 AI,想要「一个对象上的分步表单」时,会被指到「由动作打开的具名分步表单」;也不会再以为「新建 / 编辑」弹窗能靠表单分区来重新排版。 - 为什么做:这是「内部新建和编辑表单退役」的收尾。平台已经改了,技能总目录和界面技能里还各留着一段旧说法。 - 出错会怎样:AI 照旧文字写出的分步表单或分区不会生效。本次只改两段技能文字,撤回这一个合并就恢复原样。 - 要你做什么:技能包属于受管文件,本单保持草稿,等席位的契约审核记录后落地;数据技能和自动化技能里的同类旧说法留给第二阶段(等另一张在途的数据技能改动先合并)。 ## What changes Stage 1 of the card: the two passages that do not intersect PR #36158. - **`skills/README.md`**, "Cross-skill routing", the "Screen flows vs. views" bullet. Before: a stepped form over one object that never branches is "a form view, `type: 'wizard'`", with no door named. On `main` the only form views that load are a named one an action of `type: 'form'` opens and a public one; an object's New and Edit load none. After: the bullet names the named wizard form and the action that opens it, and says an object's own New and Edit never step because they are built from its fields and `fieldGroups`. The screen-flow half (branches, or several objects, is automation) is unchanged. - **`skills/objectstack-ui/rules/navigation.md`**, "Record Presentation", the `sections` bullet. Before: step 2 of the ladder read "when one surface needs a local arrangement, a section may name a declared group", in a section about a record's create / edit / detail. After: the bullet opens by saying New and Edit never read `sections` (linking "Form Views" in `rules/list-views.md`), and names what does: a named or public form, and a page's `record:details` or form block. The three steps of the ladder are kept. The enumerate step's example "a wizard/pane structure" becomes "a wizard's steps": `pane` left the section shape in spec 18.3.0, and a wizard step is the case that must enumerate `fields`, because `group` is refused there. - **`.changeset/36611-skills-wizard-routing-sections.md`**: `@objectstack/skills` patch. No eval case teaches either passage (`git grep -n -i "wizard\|sections" skills/objectstack-ui/evals` at this head: one trigger prompt, one `must_not_contain` token, and prose about field groups), so no eval file changes. **Left for stage 2** (a second PR on this card, Blocked-by #36158, which edits all three files): `skills/objectstack-data/rules/relationships.md` (the pointer to the removed subforms override), `showOnCreate` in objectstack-data, and the same routing sentence in `skills/objectstack-automation/SKILL.md` line 44. Until stage 2 lands, that automation line still reads "an objectstack-ui form view, `type: 'wizard'`", shorter than the README now is. ### Token and line readings (no ceiling is changed) | File | Lines before → after | Bytes before → after | Tokens before → after | Ceiling | |:--|:--|:--|:--|:--| | `skills/objectstack-ui/rules/navigation.md` | 191 → 191 | 10216 → 10216 | 2554 → 2554 | 2564 (unchanged, headroom 10 as before) | | `skills/README.md` | 146 → 148 | 10753 → 10893 | 2689 → 2724 by the same convention | none: outside the ratchet's population ("population 3" in the checker's header), not inside any published skill directory | | All `SKILL.md` files under `skills/`, summed | 4948 → 4948 | | | | | Ratcheted (authored) total | | | 197572 → 197572 | 202541 | | Bundle total (whole shipped tree) | | | 294087 → 294087 | | The new sentence in `navigation.md` is paid in full by cuts inside the same bullet ("in order", "when one surface needs a local arrangement", "at all", "genuinely", "at parse", "beside it", and shorter wording of the last sentence). Readings at `affa89e7a9` against base `ed0edb1b50`. ## Tests No package source changed, so no package suite is owed. No ablation: prose only. Local gates at `affa89e7a9`: the 49 commands `dispatch-gates.mjs --commands` derives, each run with its exit code recorded; `--ran` answers "49 derived famil(ies) accounted for — 47 run, 2 NOT-MEASURED". The two are `check:dual-build-cjs-loads` and `check:lean-entry-closure` (exit 3, PREREQUISITE NOT MET: they read built `dist/` of packages this diff does not touch; CI decides). Among the 47: `check-skills-token-ratchet` exit 0, `check:skill-links` exit 0, `check:skill-docs` exit 0, `check:doc-formula-expressions` exit 0, `check:nul-bytes` exit 0. ## Acceptance notes Each taught sentence against `main` (`ed0edb1b50`): - New and Edit are built from the object's fields and field groups, and read no form view: `ui/packages/app-shell/src/utils/recordFormFields.ts:29` (`recordFormFieldNames`), called by the dialog (`ui/packages/app-shell/src/console/AppContent.tsx:1791`), the full page (`ui/packages/app-shell/src/views/RecordFormPage.tsx:296`) and an action-opened create or edit (`ui/packages/app-shell/src/hooks/useActionModal.tsx:289`). - An internal form parses and steers nothing, with a warning: `packages/lint/src/validate-internal-form-views.ts:36` and `:91-112`. - An action of `type: 'form'` opens a named form at its own page: `ui/packages/core/src/actions/ActionRunner.ts:2931-2939` (`executeForm`), route `ui/apps/console/src/App.tsx:456`; `packages/spec/src/ui/action.zod.ts:693` and `:719`. - That page honours `wizard` (a step per section) and `tabbed`: `ui/apps/console/src/components/FormPage.tsx:2841` and `:2848`; type enum `packages/spec/src/ui/view.zod.ts:5341-5343`. - A named form resolves a `group` section: `ui/apps/console/src/components/FormPage.tsx:845-857`. `group` on a wizard step is refused: `packages/spec/src/ui/view.zod.ts:5727-5737`. - A page's `record:details` block takes `sections` with a `group` reference: `packages/spec/src/ui/component.zod.ts:1327`, `:1379`, `:1549`. The `object-form` and `object-master-detail-form` blocks take them too: `:7259`, `:7540`; resolved in `ui/packages/plugin-form/src/ObjectForm.tsx:336`. - `pane` is gone from both section shapes: `packages/spec/src/ui/view.zod.ts:4106-4115`, `packages/spec/src/ui/component.zod.ts:6556-6559`. Noted, not filed: an `object-form` page block also accepts `formType: 'wizard'` (`packages/spec/src/ui/component.zod.ts:7220`), a second ui home for a stepped single-object form. The README bullet names only the named form, the home "Form Views" teaches; whether the routing should name the page block as well is the reviewer's call. ## Verification Read first, by risk: (1) the `sections` bullet in `skills/objectstack-ui/rules/navigation.md`, the one hunk in a ratcheted file; (2) the routing bullet in `skills/README.md`. Two-minute check: `node scripts/check-skills-token-ratchet.mjs`, expected line "skills/objectstack-ui/rules/navigation.md is 2554 tokens (ceiling 2564; headroom 10)" and exit 0. 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>
1 parent 2924732 commit 9e2a4ac

3 files changed

Lines changed: 24 additions & 12 deletions

File tree

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
---
2+
'@objectstack/skills': patch
3+
---
4+
5+
docs(skills): the skills index routes a stepped single-object form to a named wizard form an action opens, and the UI skill's `sections` ladder says New and Edit never read sections
6+
7+
Clause-②: no
8+
Metadata-protocol: none
9+
10+
Two passages still taught what the Console's create and edit surfaces stopped doing. `skills/README.md`, "Cross-skill routing": a stepped form over one object that never branches is a named form view (`type: 'wizard'`) that an action of `type: 'form'` opens; an object's own New and Edit never step, because they are built from its fields and `fieldGroups`. `skills/objectstack-ui/rules/navigation.md`, "Record Presentation": the `sections` ladder now says where sections are read (a named or public form, and a page's `record:details` or form block) and that New and Edit never read them, with a link to "Form Views". The ladder's retired `pane` example is gone; a wizard's steps are the example of sections that must enumerate fields. No metadata shape changes.

‎skills/README.md‎

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -122,8 +122,10 @@ A few common decision points where the right skill isn't obvious:
122122
(`beforeInsert`, etc.) live in **objectstack-data**; cross-record orchestration,
123123
approvals, and scheduled work live in **objectstack-automation**.
124124
- **Screen flows vs. views** — a stepped form over one object that never branches
125-
is **ui** (a form view, `type: 'wizard'`); a screen flow that branches, or steps
126-
across several objects, is **automation**. Static record / list / dashboard surfaces are **ui**.
125+
is **ui**: a named form view (`type: 'wizard'`) that an action of `type: 'form'`
126+
opens. An object's own New and Edit never step: they are built from its fields
127+
and `fieldGroups`. A screen flow that branches, or steps across several
128+
objects, is **automation**. Static record / list / dashboard surfaces are **ui**.
127129
- **Any CEL expression** — load **objectstack-formula** alongside the host
128130
skill (data validations, automation guards, UI visibility).
129131
- **Kernel / plugin events vs. data lifecycle** — `PluginContext` lifecycle and

‎skills/objectstack-ui/rules/navigation.md‎

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -179,13 +179,13 @@ at runtime from the client viewport, because an author
179179
- **Column count.** Not authored. The form grid follows its **real rendered width**
180180
via container queries — the same form is 1 column in a narrow drawer and up to 4
181181
on a wide page. Author *grouping* with `fieldGroups`.
182-
- **`sections` are the escape hatch — reach for them last.** The ladder, in
183-
order: (1) **derive** — declare `fieldGroups` and author no
184-
`sections` at all; (2) **reference** — when one surface needs a local
185-
arrangement, a section may name a declared group, `{ group: 'contact_info' }`,
186-
and inherits its members, label and presentation (restating a key the group
187-
declares is refused at parse); (3) **enumerate** — `{ label, fields: [...] }`
188-
only for a named-customer requirement a group reference genuinely cannot
189-
express (a cross-group entry combination, a wizard/pane structure), with that
190-
reason in a comment beside it. A hand-enumerated section re-copies membership
191-
the object already owns and goes stale on the next field added.
182+
- **`sections` are the escape hatch — reach for them last.** New and Edit
183+
never read them ([Form Views](./list-views.md#form-views)); a named or
184+
public form and a page's `record:details` or form block do. The ladder:
185+
(1) **derive** — declare `fieldGroups`, author no `sections`;
186+
(2) **reference** — a section names a declared group, `{ group: 'contact_info' }`,
187+
inheriting its members, label and presentation (restating a group's key is
188+
refused); (3) **enumerate** — `{ label, fields: [...] }` only for a
189+
named-customer requirement a group reference cannot express (a cross-group
190+
combination, a wizard's steps), with the reason in a comment. An enumerated
191+
section copies membership the object owns and goes stale on the next field.

0 commit comments

Comments
 (0)