Skip to content

docs(skills): object colour by business family; the data skill teaches showOnCreate and drops the subforms pointer - #36696

Merged
os-zhuang merged 1 commit into
mainfrom
claude/project-thread-eza203
Nov 23, 2026
Merged

os-zhuang merged 1 commit into
mainfrom
claude/project-thread-eza203

Conversation

@os-warren

@os-warren os-warren commented Nov 23, 2026 •

Copy link
Copy Markdown
Collaborator

Requested by Warren · project thread
Fixes #36628
Fixes #36611

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

维护者速读

  • 用户能看到什么变化:照技能包搭应用的 AI,给对象挑图标底色时,会照平台自己的做法按业务分组上色(人员一色、审批与工作一色……),红色只留给真正的告警,没人打开的内部对象不上色;不再被要求「同一应用里颜色不能重复」。另外 AI 会知道「新建时不问某个字段」的写法,分步表单会被指到「由动作打开的具名分步表单」。
  • 为什么做:平台自己的对象已按业务家族上色(你 11-23 定稿的配色表),技能还在教相反的规则;子表单那段是「内部新建/编辑表单退役」的第二阶段收尾,第一阶段已合并。
  • 出错会怎样:只改技能文字,不碰数据、接口和运行时;撤回这一个合并就恢复原样。
  • 要你做什么:技能包属受管文件,需要 os-zhuang 在 GitHub 上批准;另有一张大的技能改版草稿(docs(skills): objectstack-data and objectstack-automation SKILL.md become routers #36158)改同几份文件,两者会有文字冲突,后合的一方要合一下。

What changes

One PR for two cards in the same files, by the seat's dispatch.

#36628, object colour (skills/objectstack-data).

  • SKILL.md, the color row of the object property table. Before: "Give every object one; avoid repeats in one app". With nine palette names any app past nine objects must repeat one, and the platform's own objects are coloured by business family (PR feat(objects): built-in and example objects carry a palette colour by business family #36605). After: group the app's objects into a few business families, one palette name each, as the platform's own objects do (people blue, security purple, approvals and work orange, messaging pink, integrations teal, reference data and finance green, audit and settings amber); red only for an object that is an alert; an object nobody opens gets none (it draws the default gray). No card ids in the text.
  • references/examples-objects.md, Quick-Start Template: the support_case object declares color: 'orange' (work) beside its icon.
  • Evals: no case in skills/objectstack-data/evals/ mentions color; the object-authoring cases (ids 1 and the Chinese-labels case) ask for icon and say nothing about colour, so they agree with the new guidance and are unchanged.

#36611, stage 2 (stage 1 was PR #36625, merged).

  1. skills/objectstack-data/rules/relationships.md: the pointer "The rendering side, subforms overrides included: objectstack-ui → Master-Detail Forms" drops the subforms clause. objectstack-ui's Form Views now says a container's subforms steer nothing.
  2. skills/objectstack-data/SKILL.md, Conditional Field Rules: a bullet teaching showOnCreate: false (off every create surface; edit, the record page and lists keep it; refused beside required: true). The section's opening list of where field rules apply now reads "New and Edit, named and public forms, inline master-detail grids, API writes" instead of naming "default forms, Studio-authored forms".
  3. skills/objectstack-automation/SKILL.md, after the Flow Types table: a stepped form over one object that never branches is "an objectstack-ui named form view (type: 'wizard') a type: 'form' action opens", matching skills/README.md since 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.
  • Evals: skills/objectstack-automation/evals/flows-triggers-approvals.json case 4 (a branching onboarding wizard is a screen flow, must_not_contain: "type: 'wizard'") and the trigger case still hold; no data eval teaches subforms or showOnCreate. Unchanged.

  • .changeset/36628-36611-skills-object-colour-create-forms.md: @objectstack/skills patch.

Paid for in the same files (no ceiling changes)

File Tokens before → after Ceiling
skills/objectstack-data/SKILL.md 6710 → 6706 6710
skills/objectstack-automation/SKILL.md 7043 → 7045 7045
skills/objectstack-data/references/examples-objects.md 1719 → 1724 1728
skills/objectstack-data/rules/relationships.md 4188 → 4180 4203

Cuts that pay for the new text, each a restatement or a detail kept elsewhere:

  • data SKILL.md: namespace, titleFormat, displayNameField and enable rows shortened (the titleFormat row keeps its refusal and lint id and points to nameField, whose row carries the composite-title rule; enable points to the next section, which lists the flags); the user clause of Field Type Selection (the bullet below it says the same; "Three to get right" becomes "Two"); the multiple: true note's "≠ junction object … array of ids" (the table rows above say both); "composite indexes" in the indexing pointer (the example above shows one); the lifecycle class list in the Quick Reference line (in rules/lifecycle.md); "conditionalRequired … REMOVED in protocol 17" shortened to "the removed alias is a parse error".
  • automation SKILL.md: "Interactive —" and "automatically" in two Flow Types rows.

Why

#36628: the skill taught the opposite of the platform's approved family table, and gave no reason to pick one hue over another. #36611: the data and automation skills still pointed agents at retired create/edit form overrides and routed single-object step forms to a wizard with no door named.

Verification

Each taught sentence against main (115d38788):

Local gates: see the Tests section below.

Tests

No package source changed, so no package suite is owed. Prose only, no ablation.

Local gates at b6b84c501 (tree identical to a2598f51), against base 115d38788: the 51 commands dispatch-gates.mjs --commands derives, each run with its exit code captured before any pipe. 46 exit 0, among them check-skills-token-ratchet (and --self-test), check:skill-links, check:skill-docs, check:skill-refs, check:skill-served-sections, check:skill-identifier-liveness, check:skill-compatibility, check:corpus-claim-drift, check:nul-bytes. 5 NOT MEASURED (exit 3, PREREQUISITE NOT MET: each reads built dist/ of packages this diff does not touch, and no workspace build was run for a prose diff; CI decides): check:doc-formula-expressions (@objectstack/lint), check:dts-closure, check:dual-build-cjs-loads, check:lean-entry-closure, check:sourcemap-no-sources-content. One os:check block changed (the Quick-Start Template gains color: 'orange', a member of OBJECT_COLORS); check:skill-examples is not among the derived commands and needs client builds, so it is NOT MEASURED locally; CI decides.

Acceptance notes

Human Minimum

  • 1. Schemas start as Zod; packages/spec holds no runtime logic. (not touched)
  • 2. Every name I added uses the casing for its kind.
  • 3. No formatter ran; pnpm lint passes.
  • 4. One issue, one branch off an up-to-date main, one pull request. (two cards in the same files, by the seat's dispatch)
  • 5. A change that publishes carries a changeset, and both declaration lines are filled in here and in the changeset.
  • 6. packages/spec touched: n/a.
  • 7. No hand edits to content/docs/references/, packages/*/CHANGELOG.md or content/docs/releases/.
  • 8. Title, body and comments are in English. (the 维护者速读 block is the maintainer's brief, as on other fleet PRs)
  • The Before Submitting list in CONTRIBUTING.md is done.

https://claude.ai/code/session_01JQwxba91GQhJ1mvAZFftiw


Generated by Claude Code

…ily and teaches showOnCreate; automation routes a stepped single-object form to a named wizard form

Co-Authored-By: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01JQwxba91GQhJ1mvAZFftiw
@objectstack-fleet

Copy link
Copy Markdown
Contributor

repo:objectstack#1 · os-warren · session_01JQwxbZeHNsF3RWcWpj7rGj

Contract review

Served-tier: CONTRACT_REVIEW_TIER
Head-sha: b6b84c5013ed298b4e656246d894c4e2ff3059ff
Local-runs: none
Scope: the full diff against merge-base 115d38788e2d5094ff0cb14b6f8be8f5ef3f1eba (.changeset/36628-36611-skills-object-colour-create-forms.md, skills/objectstack-automation/SKILL.md, skills/objectstack-data/SKILL.md, skills/objectstack-data/references/examples-objects.md, skills/objectstack-data/rules/relationships.md), cards #36628 and #36611, the PR body, PR #36605's body, PR #36158's head b2226e0ef3 + packages/spec/src/data/object-icon.ts, packages/spec/src/data/field.zod.ts, packages/spec/src/ui/view.zod.ts, packages/spec/src/ui/action.zod.ts, packages/lint/src/validate-internal-form-views.ts, every sys-*.object.ts under packages/**, the *.object.ts files of examples/app-crm, examples/app-showcase and examples/app-todo, skills/objectstack-ui/rules/list-views.md, skills/README.md, scripts/check-skills-token-ratchet.mjs, skills/objectstack-data/evals/objects-fields-relationships.json, skills/objectstack-automation/evals/flows-triggers-approvals.json, skills/objectstack-automation/evals/triggers.json
Security-touching: no
Rule-change-verified: none

① Derived judgments

Every changed sentence was read against the code at the head. No must-fix and no should-fix is open.

  • Palette names and the gray default: true. packages/spec/src/data/object-icon.ts:31 lists the nine names; :45 says an omitted color draws gray; :24-25 say the icon is a white glyph on the colour.
  • Colour by business family: true. People blue (packages/platform-objects/src/identity/sys-user.object.ts:104), security purple (sys-api-key.object.ts:21, packages/plugins/plugin-sharing/src/objects/sys-sharing-rule.object.ts:33), approvals and work orange (packages/plugins/plugin-approvals/src/sys-approval-request.object.ts:45, packages/plugins/plugin-sharing/src/objects/sys-queue.object.ts:30), messaging pink (packages/platform-objects/src/audit/sys-notification.object.ts:33), integrations teal (packages/plugins/plugin-webhooks/src/sys-webhook.object.ts:48), reference data green (packages/platform-objects/src/system/sys-unit.object.ts:115), audit amber (packages/plugins/plugin-audit/src/objects/sys-audit-log.object.ts:84).
  • red unused: true. No object under packages/** or examples/** declares color: 'red'.
  • "One nobody opens gets none": true. 73 internal sys_* objects declare no color, for example packages/platform-objects/src/system/sys-setting.object.ts and packages/platform-objects/src/audit/sys-job.object.ts.
  • showOnCreate: false: true. packages/spec/src/data/field.zod.ts:2934 gives the meaning (off every create surface; edit, the record page and lists keep it). :3263 refuses it beside required: true.
  • Removed subforms pointer: true. skills/objectstack-ui/rules/list-views.md:359-361 says a container's form, formViews.default and formViews.create steer nothing, subforms included; the lint id lives at packages/lint/src/validate-internal-form-views.ts:36.
  • Stepped single-object form: true. packages/spec/src/ui/view.zod.ts:5341 keeps 'wizard' as a form layout. packages/spec/src/ui/action.zod.ts:693 and :719 make type: 'form' an action type whose target names the form view to open. The new sentence matches skills/README.md:124-126.
  • The cuts lose nothing. The enable flags are in the next section. The user picker is the bullet under Field Type Selection. The array-of-ids and junction facts are the two Many-to-Many table rows. The composite index is in the example above the pointer.

Stale teaching elsewhere (grep over skills/ and content/docs/, generated references and releases excluded): none found for "avoid repeats", the subforms pointer, "Studio-authored forms", or a bare wizard route. The remaining subforms hits are the UI skill's own "steers nothing" line, the generated react-blocks.md prop table, and ObjectUI component docs.

Token ceilings, read as ceil((bytes - stamp line) / 4) from the blobs. The ratchet file is unchanged by this PR.

File Base Head Ceiling
skills/objectstack-data/SKILL.md 6710 6706 6710
skills/objectstack-automation/SKILL.md 7043 7045 7045
skills/objectstack-data/references/examples-objects.md 1719 1724 1728
skills/objectstack-data/rules/relationships.md 4188 4180 4203

No file is past its ceiling. CI's lint jobs on this head are green.

Evals: they hold. flows-triggers-approvals.json:64-76 (a branching wizard is a screen flow, must not contain type: 'wizard') agrees with the new sentence, which covers only a form that never branches. No data eval mentions color, showOnCreate or subforms; the object-authoring cases (objects-fields-relationships.json:7 and :245) ask for icon and are silent on colour.

Notes (none blocks):

  • N1. The colour row says "as the platform's own objects do" and then lists "finance green" and "settings amber". Those two words come from the example apps (examples/app-showcase/src/data/objects/invoice.object.ts:23, preference.object.ts:19), not from built-in objects. The one built-in preferences object is green (packages/platform-objects/src/identity/sys-user-preference.object.ts:24), and sys_setting has no colour. The list is card skills(objectstack-data): object colour guidance says 'avoid repeats in one app'; the platform now colours by business family #36628's wording, word for word, so the PR does what the card asked. "The platform's own and example objects" would be exact and fits the 4 tokens of headroom. The seat decides.
  • N2. The PR body's table says the data SKILL.md lands at 6707. The blob reads 6706. Either is under 6710.
  • N3. The data skill no longer names the protocol major that removed conditionalRequired. content/docs/data-modeling/fields.mdx:671 and the upgrade skill still carry it.

② Semver level

Patch on @objectstack/skills, as the changeset declares. Prose and one example line only. No schema, no runtime, no metadata shape. Clause-②: no and Metadata-protocol: none are right.

③ Boundary flags

④ Design judgment

The change is the smallest one that makes the skills agree with the shipped platform. The colour rule now gives an author a reason to pick a hue, which the old "avoid repeats" could not once an app passed nine objects. showOnCreate is taught once, in the section an author already reads for field rules, in the same words as the UI skill. The wizard sentence now names the door that opens the form. New text is paid for by cuts that restate nothing lost. Sound.

Implemented-by: claude/project-thread-eza203
Reviewed-by: session_01JQwxbZeHNsF3RWcWpj7rGj

VERDICT: PASS

@objectstack-fleet

Copy link
Copy Markdown
Contributor

repo:objectstack#1 · os-warren · session_01JQwxbZeHNsF3RWcWpj7rGj

维护者速读

给 AI 用的建模说明(skills)里,有两处教错或没教:对象颜色该怎么选,以及「新建时不显示、编辑时才显示」的字段怎么写。这次把说明改对了,和平台代码的真实行为逐条核对过。只改文档,不改代码。
合同级复核通过,CI 全绿。按规则 skills 目录的改动要 os-zhuang 在 GitHub 上点 Approve 才能合并。
要你做的:无(等 os-zhuang 批准)。

席位核对 — ACCEPT (L1) · repo:objectstack#1 · head b6b84c50 · 2026-11-23T12:52Z

@objectstack-fleet

Copy link
Copy Markdown
Contributor

repo:objectstack#1 · os-warren · session_01JQwxbZeHNsF3RWcWpj7rGj

Tier H hand-off · 2026-11-23T12:53Z: this pull changes skills/** only (text, no code). The seat ACCEPT and a same-head CONTRACT_REVIEW_TIER PASS (7101528076) are on this thread at head b6b84c50, and CI is green. It needs os-zhuang's GitHub Approve to merge.

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

Labels

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

Projects

None yet

3 participants