You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Record create forms neither derive a machine name from the display name nor check its declared format before submit (Setup queues and siblings) #39156
Source: #39039, whose PR #39153 delivers the display-name-first order, the 「API 名称」 label and a refusal in the caller's locale through a declared format rule (queue_name_shape). The card's Expected also asks that the machine name be derived from the display name, "or at least validated client-side before submit". Neither is delivered there; this card carries that half. Independent L1 on PR #39153 head 32ae555 measured it.
What is missing
No derive on record forms. The metadata-admin form derives an API name from a label (createDerive), but the record create form path that Setup › Queues uses has no derive precedent, so the user still types after_sales by hand.
No pre-submit check of declared format rules. Record forms do not evaluate an object's declared format validation rules before submit. The only client evaluators are in studio-design and metadata-admin (ui/packages/core/src/validation/validators/object-validation-engine.ts, ui/packages/app-shell/src/views/metadata-admin/clientValidation.ts). A bad machine name is refused only after the round trip (400 VALIDATION_FAILED, fields[name].code: invalid_format).
Same family on other system objects with a machine name and a human label: sys_assignment_rule (its guard is also still English hook text, packages/plugins/plugin-sharing/src/assignment-rule-hooks.ts:168, :295).
Expected
On a record create form for an object whose machine-name field carries a declared format rule: the machine name is suggested from the display name when the user has not typed one, and the declared rule is checked before submit with the same localized message the server gives.
Dedup: searched open issues for createDerive (1: #39039), client-side format rule (3: #39039 and two seat posts), derive api name record form (40, none on this gap).
Served-tier: CONTRACT_REVIEW_TIER
Analysed-by: fable sub-agent of session_01Utp6CaCKHqzEsnpLBSkVk3
Background
Read at main 850d240b, 2026-12-03. Card #39156 carries the half of #39039 that PR #39153 (merged, +333/−62, 19 files) did not deliver. After #39153 the new-queue form asks for the display name first, labels the second field 「API 名称」, and a badly shaped name is refused in the caller's language through the declared queue_name_shape format rule. Two things are still asked for: (1) the record create form suggests the machine name from the display label; (2) the form checks the object's declared format rule before submit. The card was filed from an L1 code reading of PR #39153, triaged Feature · p3. Siblings named: sys_assignment_rule, whose name guard is still English hook text (assignment-rule-hooks.ts:168).
The dispatch question assumed half (2) is pure implementation. It is not. It is the exact thing a standing maintainer ruling forbids (below), so half (2) is not an option on this card; only half (1) forks.
Governing text
ui/packages/core/src/validation/validators/object-validation-engine.ts header (the ruling objectui#3110, in-tree text): "Validation rules are ENFORCEMENT, and enforcement is single-implementation on the server by design." and "Let the write fail and render the server's rejection ... If pre-submit feedback is wanted, the answer is a validate-only (dry-run) write on the server". grep -n "single-implementation" ui/packages/core/src/validation/validators/object-validation-engine.ts → line 19.
ui/packages/core/src/validation/__tests__/validation-engine-stays-unwired.test.ts header: "What is banned is objectui itself growing a client-side enforcement path again." The test fails when any production module under ui/packages reaches the engine. It is a gate, not a comment.
ui/packages/fields/src/index.tsx, buildValidationRules docblock (objectui#12242, maintainer ruling A): "A regex check is the OBJECT's format validation rule (validations[]), which the server runs on every write that touches the field and refuses with the rule's message; this function adds no client pre-check of it."
ui/packages/core/src/validation/validators/state-machine-next-values.ts header, the one place a record form does read served validations: "This is a PRESENTATION read of the declared transition map, not a client-side enforcement path: it never judges a write". This is the line between what a form may do with a declared rule (narrow what it offers) and what it may not (judge the write).
AGENTS.md Prime Directive 12: "packages/spec is the one contract between metadata producers and the runtime/renderers that consume it ... Change the spec only when the spec itself is genuinely wrong, and then deliberately". Prime Directive 10: "never advertise or demo a capability the runtime doesn't actually deliver (declared ≠ enforced)".
On derive itself: none found. Queries: grep -rniE "deriveFrom|derivedFrom|derive:" packages/spec/src/data/field.zod.ts packages/spec/src/data/object.zod.ts → 0; grep -rliE "pinyin|romaniz|slugify" docs/adr → ADR-0098 (search column), ADR-0058, ADR-0079, none on form derive; /mnt/project-files/coordinator/rulings.md → 0 hits for derive, 拼音, createDerive.
Option A changes the protocol: one new authorable key on a field (Metadata-protocol: added; spec minor, contract-tier L2 review, generated artifacts, docs, skills). Options B and C change no protocol. Half (2) in its permitted form (a server dry-run over HTTP) would add a public REST route and a client method; it is not offered here.
Premises (each with a re-check; read at 850d240b)
Object validations reach the record form. The form path already reads the served validations to narrow a state-machine select. grep -n "served \validations`" ui/packages/plugin-form/src/stateMachineOptions.ts` → line 14. So half (2) is not blocked by missing data; it is blocked by the ruling.
The client evaluator of format rules exists, is deprecated, and is pinned unwired. grep -n "DEPRECATED" ui/packages/core/src/validation/validators/object-validation-engine.ts → line 10; ls ui/packages/core/src/validation/__tests__/validation-engine-stays-unwired.test.ts → present. The card's "client evaluators in studio-design and metadata-admin" are not record-rule evaluators: clientValidation.ts lints metadata drafts and says at line 925 that the authority is the server, not that engine.
The same message needs the server's renderer. The refusal text is resolved on the server from the bundle's _validations entry (packages/objectql/src/engine-rule-message-rendering.ts); in ui/packages the key is read by the kanban only (grep -rln "_validations" ui/packages --include=*.ts --include=*.tsx | grep -v test → plugin-kanban/src/ObjectKanban.tsx). A client pre-check "with the same localized message" is a second message path as well as a second evaluator.
Record forms have no derive. grep -rln "createDerive\|slugify" ui/packages/plugin-form/src ui/packages/fields/src ui/packages/components/src → 0. The derive lives in the metadata-admin create form only, as a registry config with a closed transform set (ui/packages/app-shell/src/views/metadata-admin/registry.ts, CreateDeriveRule.transform: slugify | plural-en | titlecase | first-token | page-kind), with Chinese romanised first (PR feat(studio): a Chinese display name derives its identifier by pinyin at every Studio create door #29734, +1035/−104, 33 files: "a Chinese display name derives its identifier by pinyin at every Studio create door").
No spec key says one field derives from another (governing-text query above → 0).
Measured reach of a name + label text pair. Of 147 *.object.ts files under packages, examples, apps, five declare both: sys_queue, sys_assignment_rule, sys_sharing_rule, sys_webhook, sys_email_template. All five are platform objects with managedBy: 'config'; zero are in examples/**. Re-check: for f in $(find packages examples apps -name "*.object.ts" -not -path "*/node_modules/*"); do grep -qE "^\s+name: Field\.text" $f && grep -qE "^\s+label: Field\.text" $f && echo $f; done → 5 lines.
A convention would mis-read part of that family. sys_email_template.name is "Dotted snake_case identifier (e.g. auth.password_reset)" (grep -n "Dotted snake_case" packages/platform-objects/src/audit/sys-email-template.object.ts → 52); a slug has no dot. sys_unit is the same need with other names and another shape (code + label, uppercase, at least four characters; grep -n "unit_code_organization_namespace" packages/platform-objects/src/system/sys-unit.object.ts). Only one of the five carries a format rule on name (grep -l "type: 'format'" over the five → sys-queue.object.ts), so the refinement "name carries a format rule" matches sys_queue alone and misses the sibling the card names.
Who creates these through record forms today: organisation administrators in Setup. grep -n "nav_queues\|nav_assignment_rules\|nav_sharing_rules" packages/plugins/plugin-sharing/src/sharing-plugin.ts → 760, 769, 770 (all behind manage_platform_settings); nav_webhooks in plugin-webhooks/src/webhook-outbox-plugin.ts:287. No app-authored object in the repository has the pair.
Sibling defect that needs no ruling: sys_assignment_rule's name guard is English hook text. grep -n "An assignment rule name is a machine name" packages/plugins/plugin-sharing/src/assignment-rule-hooks.ts → 168.
The question in one sentence
An administrator who has just typed a display name must still invent and hand-type the identifier beside it; should the form suggest it, and if so, how does a generic form learn which field feeds which?
Options × real cost × workload
What
What people see
Workload
A
A declared key on the target field: "my initial value is suggested from field X through transform T", T from a closed set that starts with the one transform the metadata-admin derive already has (slug, Chinese romanised first). Record create forms honour it until the user edits the target. The slug and romaniser move from the metadata-admin folder into a shared ui package so both doors run one implementation. sys_queue, sys_assignment_rule, sys_sharing_rule, sys_webhook declare it.
Typing 「售后服务」 fills the API name with shou_hou_fu_wu; the admin may overwrite it. Same behaviour as creating an object or field in Studio. App authors can declare it on their own code-like fields.
domain:spec then domain:ui · 2 PRs for the key plus 1 small adoption PR · precedent: lookupAutofill, PR #28244 (+688/−8, 17 files) and PR #28322 (+685/−26, 17 files), 1,373 added lines. That key then drew a tail of fix PRs (#31972, #35118, #36351, #36918, #37090, #37284), mostly surfaces that did not run it.
B
No key. The form infers: an object with text fields label and name gets the slug derive (optionally only when name carries a format rule).
Same result on queues. On email templates the suggestion has the wrong shape (no dot) and nothing says so. With the format-rule refinement, only queues get it. A customer object that happens to have both field names gets identifiers suggested without having asked.
domain:ui · 1 PR · no precedent (no renderer in the tree infers behaviour from field names). Not measured; I read it as roughly a third of A.
C
No derive. Close this half as not planned, with the record that a later reopening takes form A.
Nothing changes: the admin types the API name; the form says what shape it needs and a bad one is refused in the admin's language after Save.
none
Half (2) under every option: not built. It is ruled (see Governing text); the permitted form is a server dry-run, closed not_planned on #4372 with a reopen condition this three-field form does not meet. Under A the suggested name satisfies the rule by construction (the slug emits lowercase letters, digits and underscores, never a leading digit), so the remaining case is an admin who overwrites the suggestion with a bad name and reads the localised refusal.
Considered and not offered. (1) A console list of object names that get a derive, copied from the metadata-admin registry: object special-casing in the console, against ruling E on #27797. (2) The server fills name from label when it is omitted (an expression default): the expression language has no slug or romanising function (grep -rn "slug" packages/formula/src → 0), so it is also new contract, and the admin would not see the identifier before saving. (3) Wiring the deprecated client engine for format rules only: the reachability gate fails by design, and it is a reversal of #3110, which is a different card from this one.
Business translation. A: the form designer gets a "fill this box from that box" setting, the one the vendor's own designer screens already use. B: the software guesses from the column headings which box is the code box. C: the clerk keeps writing the code by hand; the form explains the format and the counter rejects a bad one politely.
Four axes (business stance)
Long-term fit (①) — End state two years out: every door where a person names something for the platform asks for the display name and offers the identifier, in Chinese as well, and the person may overrule it. Studio's doors are already there (PR feat(studio): a Chinese display name derives its identifier by pinyin at every Studio create door #29734 says "every Studio create door"). The organisation-authored configuration rows (queues, rules, webhooks) are a lasting family, not a leftover: a package declares some, an organisation authors the rest, one namespace (ADR-0131 D6). They are created through the generic record form, and the rulings keep that renderer generic, so the only way the generic form can know is a declaration. Mainstream modelling agrees on the behaviour and differs on the mechanism: Salesforce Setup fills Queue Name from Label, and API Name from Label on objects and fields, as vendor chrome; Odoo models "suggested, then editable" as a stored computed field that is not read-only, declared by the app author. ObjectStack has no vendor chrome for Setup, since Setup is metadata, so Odoo's shape is the one that fits. A is that shape and joins the two derive doors into one transform vocabulary. B puts a naming guess into a renderer. C leaves two kinds of create door behaving differently for good. The price of A is one more contract key; held to the existing closed transform set it does not become a second dialect.
Real business need (②) — Weak. Who hits it: an organisation administrator, a few times in the life of an organisation, more painfully in Chinese, where the identifier cannot be typed from the label. Evidence is one dogfood expectation line and an L1 code reading; no customer report, no example app with the pair (premises 7, 9, 10). The part that hurt (an English refusal on a field nobody said was a machine name) is fixed. This axis alone reads "defer".
AI-error-proofing (③) — A: an agent declares a source field and a transform from a closed set; an unknown transform, a source that is not a field of the object, or a target that is not hand-writable is refused at parse, loudly. A wrong but well-formed declaration fails softly and visibly: the admin sees an odd suggestion and may overwrite it, and the server still judges the name. B fails silently in the other direction: the form acts on field names the author never meant as a signal, and no gate can tell the author why (premise 8 is one such case inside the platform's own five). In every option the server stays the only judge of the name. Half (2), if wired on the client, is the silent kind of error the ruling was written against: a second evaluator that can disagree with the server (legacy-row exemption, message rendering) with nobody told.
Startup focus (④) — C costs nothing. A is a permanent key with a renderer obligation on every create surface that claims it; the lookupAutofill tail shows what that costs in practice (premise in the table). The key's description must claim only the surfaces that run it (Prime Directive 10). B is cheapest to build among the two that do something, and the dearest to live with. This axis alone reads "C now".
os-decision-facets
① Long-term fit: A gives the generic record form the declared "suggest from field X" that Studio's create doors already have through a private registry, one closed transform vocabulary for both doors (Odoo's editable computed field is the same model); B adds a field-name guess to a renderer; C keeps two kinds of create door for good. Client pre-check of declared rules widens a parallel evaluator and is excluded by #3110 and #4372.
② Business pull: weak; organisation administrators on four Setup objects, a few times per organisation, worst in Chinese; one dogfood expectation line, no customer report, no example app with the pair; the reported pain was fixed by PR #39153.
③ AI-error-proofing: A is a closed-enum declaration refused loudly at parse when malformed, and a wrong one shows as a visible, overridable suggestion; B acts silently on names the author never declared and mis-shapes one of the platform's own five objects; the server stays the only judge in every option.
④ Startup focus: C is zero work and no key; A is about three PRs (precedent 1,373 added lines for the key pair) and a permanent key with a known follow-up tail; B is one PR and an inference to maintain. No new gate in any option.
Prior rulings read: derive,createDerive,slugify,pinyin,拼音,pre-submit,validate-only,validateData,ObjectValidationEngine,客户端预检 → #4372 (maintainer close 2026-08-01, read in full); objectui#3110 and objectui#12242 (in-tree text only, issues not reachable); #4633 ruling D (via protocol.zod.ts and engine.ts docblocks); ruling E on #27797 (ruling file read); ADR-0131 D6, ADR-0142 D1 (cited docblocks); coordinator/rulings.md 0 hits; thread: none; repo: objectstack-ai/objectstack
Read on ① alone the answer is A: the behaviour is the platform's own stated end state for naming doors, the family it is missing on is permanent, and a declaration is the only route the standing rulings leave open. The workload gap is named as the rule asks: A is about three PRs and, by the measured precedent, some 1,400 added lines before adoption, with a follow-up tail; C is nothing. That is far more than three times. ② and ④ therefore set the timing, not the letter: the card stays p3, takes no place ahead of p1 or p2 work, and the spec card lands whole (key, parse refusals, docs) before any console work starts. I do not recommend a first stage through B: A would have to remove it.
Not taken. B: a renderer that guesses from field names, wrong on one of five platform objects today and unexplainable to an author. C: correct on cost and on pull, and the choice if the maintainer weighs ② and ④ above ① here; it leaves Setup as the one place a Chinese-speaking administrator invents identifiers by hand.
Whether the pre-submit half can proceed independently of this ruling: no. It is not pure implementation. The data is there (premise 1) and an evaluator exists (premise 2), but wiring it is what #3110 forbids and its gate fails; the permitted server form was closed on #4372 and its reopen condition is not met. It moves only if the maintainer reopens #4372 on that card. What can proceed today without any ruling is the sibling defect in premise 11: sys_assignment_rule's English name refusal, fixed the way PR #39153 fixed queues (precedent +333/−62, 19 files), as its own bug card.
Confidence gaps. (a) objectui#3110 and objectui#12242 were read through in-tree text and #4372, not the issues. (b) A's exact shape (field-level key or object-level pairing, key name, which transforms open) is not designed here; the terms below bound it. (c) Which create surfaces must honour the key (modal, drawer, master-detail header, quick-create on grid, board and calendar, mobile) is not enumerated; the lookupAutofill tail says this is where the cost hides. (d) B's line count is an estimate with no precedent. (e) Whether sys_sharing_rule and sys_webhook refuse a badly shaped name at all was not traced; a derive helps them either way. (f) The platform comparisons are from general knowledge of those products. (g) The pull for A is the platform's own four objects; I recommend it on ①, not on ②.
Execution after the ruling
A. The seat files one domain:spec card under Record create forms neither derive a machine name from the display name nor check its declared format before submit (Setup queues and siblings) #39156 and keeps Record create forms neither derive a machine name from the display name nor check its declared format before submit (Setup queues and siblings) #39156 for the console half and the four adoptions, Blocked-by: the spec card. Ruled terms for the spec card: (1) the key sits on the target field and names a source field of the same object and a transform from a closed enum that opens with the slug transform only; a second transform (dotted, uppercase code) is added when an object asks for it, not before. (2) Parse refuses an unknown transform, a source that is not a field of the object, a target that is read-only or computed, and a field that names itself. (3) It is a create-time suggestion only: it stops once the user edits the target, never runs on edit, and no server door reads it; the server's rule on the name is unchanged. (4) The description claims exactly the create surfaces the console PR wires, by name. (5) The slug and the Chinese romaniser move to a shared ui package and the metadata-admin derive calls the same functions; no second copy. (6) No client evaluation of format rules in any of the three PRs.
Under every option the seat files the sys_assignment_rule localisation defect (premise 11) as a separate bug card; it needs no ruling.
Related
#39039 and PR #39153 (the delivered half); #4372 (server dry-run, closed not planned; restates objectui#3110); #4633 ruling D (validateData, in process, import); PR #29734 (pinyin derive at Studio create doors); PR #26033 and PR #27969 (the state-machine presentation read in record forms); #27945 with PR #28244 and PR #28322 (lookupAutofill, the workload precedent); ruling E on #27797.
Ruling: option A of the analysis of record (comment 7381573253): a declared, closed-enum field key ("suggested from field X via transform T", slug first, Han romanised), honoured by record create forms until the user edits; sys_queue, sys_assignment_rule, sys_sharing_rule, sys_webhook adopt it. The spec card lands before console work. The pre-submit format-check half is not part of this ruling (standing ruling on #4372 stands).
Execution status: paused. The maintainer paused all p3 work at 2026-12-03T14:46Z, so nothing is claimed or dispatched; the zone resumes it only on the maintainer's word.
Bill ruled A (comment 7382065140): a declared spec key for derive, with the spec card before the console. The card goes back to pm:queue. Execution stays paused under his p3 pause (14:46Z) until p3 resumes.
Activity
objectstack-fleet commentedon Dec 2, 2026
triage@os-warren · os-warren · session_01JQwxbZzZ2f5mzcvJbRrRNZ
First touch · 2026-12-02T15:06Z
定级:
area:ux · Feature · p3 · 建队列等记录表单要手敲 API 名称,格式错要提交后才报 · 读码(PR #39153 L1)domain:ui、类型 Feature,进pm:queue,离finding。objectstack-fleet commentedon Dec 3, 2026
repo:objectstack@os-bill · os-bill · session_01Utp6CaCKHqzEsnpLBSkVk3
Decision analysis · 2026-12-03T14:30Z · card thread for zone ux-1203
维护者速读
Served-tier: CONTRACT_REVIEW_TIER
Analysed-by: fable sub-agent of session_01Utp6CaCKHqzEsnpLBSkVk3
Background
Read at main
850d240b, 2026-12-03. Card #39156 carries the half of #39039 that PR #39153 (merged, +333/−62, 19 files) did not deliver. After #39153 the new-queue form asks for the display name first, labels the second field 「API 名称」, and a badly shaped name is refused in the caller's language through the declaredqueue_name_shapeformat rule. Two things are still asked for: (1) the record create form suggests the machinenamefrom the displaylabel; (2) the form checks the object's declaredformatrule before submit. The card was filed from an L1 code reading of PR #39153, triagedFeature · p3. Siblings named:sys_assignment_rule, whose name guard is still English hook text (assignment-rule-hooks.ts:168).The dispatch question assumed half (2) is pure implementation. It is not. It is the exact thing a standing maintainer ruling forbids (below), so half (2) is not an option on this card; only half (1) forks.
Governing text
ui/packages/core/src/validation/validators/object-validation-engine.tsheader (the ruling objectui#3110, in-tree text): "Validation rules are ENFORCEMENT, and enforcement is single-implementation on the server by design." and "Let the write fail and render the server's rejection ... If pre-submit feedback is wanted, the answer is a validate-only (dry-run) write on the server".grep -n "single-implementation" ui/packages/core/src/validation/validators/object-validation-engine.ts→ line 19.ui/packages/core/src/validation/__tests__/validation-engine-stays-unwired.test.tsheader: "What is banned is objectui itself growing a client-side enforcement path again." The test fails when any production module underui/packagesreaches the engine. It is a gate, not a comment.not_planned), the server dry-run that ObjectLogger file destination silently no-ops in ESM builds #3110 pointed to: 「客户端预检仍然不做。 决策在 objectui#3110,tripwire(validation-engine-stays-unwired.test.ts)继续有效。今天的正确路径 = 提交,渲染服务端结构化拒绝。」 Reopen condition 1: 「产品拿到具体的预提交反馈需求(如长向导表单重填成本高)」. Same comment: 「单记录表单失败成本低(直接提交即可)」.ui/packages/fields/src/index.tsx,buildValidationRulesdocblock (objectui#12242, maintainer ruling A): "A regex check is the OBJECT'sformatvalidation rule (validations[]), which the server runs on every write that touches the field and refuses with the rule's message; this function adds no client pre-check of it."ui/packages/core/src/validation/validators/state-machine-next-values.tsheader, the one place a record form does read servedvalidations: "This is a PRESENTATION read of the declared transition map, not a client-side enforcement path: it never judges a write". This is the line between what a form may do with a declared rule (narrow what it offers) and what it may not (judge the write)./mnt/project-files/decisions/27797/ruling-27797.md, facets): 「渲染器保持通用」, 「⛔ 不解析横幅文案、不特判对象」. A console list of object names that get a derive is against it.packages/specis the one contract between metadata producers and the runtime/renderers that consume it ... Change the spec only when the spec itself is genuinely wrong, and then deliberately". Prime Directive 10: "never advertise or demo a capability the runtime doesn't actually deliver (declared ≠ enforced)".grep -rniE "deriveFrom|derivedFrom|derive:" packages/spec/src/data/field.zod.ts packages/spec/src/data/object.zod.ts→ 0;grep -rliE "pinyin|romaniz|slugify" docs/adr→ ADR-0098 (search column), ADR-0058, ADR-0079, none on form derive;/mnt/project-files/coordinator/rulings.md→ 0 hits for derive, 拼音, createDerive.Protocol
Option A changes the protocol: one new authorable key on a field (
Metadata-protocol: added; spec minor, contract-tier L2 review, generated artifacts, docs, skills). Options B and C change no protocol. Half (2) in its permitted form (a server dry-run over HTTP) would add a public REST route and a client method; it is not offered here.Premises (each with a re-check; read at
850d240b)validationsto narrow a state-machine select.grep -n "served \validations`" ui/packages/plugin-form/src/stateMachineOptions.ts` → line 14. So half (2) is not blocked by missing data; it is blocked by the ruling.formatrules exists, is deprecated, and is pinned unwired.grep -n "DEPRECATED" ui/packages/core/src/validation/validators/object-validation-engine.ts→ line 10;ls ui/packages/core/src/validation/__tests__/validation-engine-stays-unwired.test.ts→ present. The card's "client evaluators in studio-design and metadata-admin" are not record-rule evaluators:clientValidation.tslints metadata drafts and says at line 925 that the authority is the server, not that engine.validateDatais declared on the data protocol (grep -n "validateData?" packages/spec/src/api/protocol.zod.ts→ 5405) and serves import (Import dry run green-lights a row the write then rejects: structured value shapes (address / location) are not pre-checked #4633 ruling D). No REST route and no client method:grep -rn "validateData" packages/rest/src/rest-route-ledger.ts packages/client/src ui/packages/data-objectstack/src→ 0._validationsentry (packages/objectql/src/engine-rule-message-rendering.ts); inui/packagesthe key is read by the kanban only (grep -rln "_validations" ui/packages --include=*.ts --include=*.tsx | grep -v test→plugin-kanban/src/ObjectKanban.tsx). A client pre-check "with the same localized message" is a second message path as well as a second evaluator.grep -rln "createDerive\|slugify" ui/packages/plugin-form/src ui/packages/fields/src ui/packages/components/src→ 0. The derive lives in the metadata-admin create form only, as a registry config with a closed transform set (ui/packages/app-shell/src/views/metadata-admin/registry.ts,CreateDeriveRule.transform:slugify | plural-en | titlecase | first-token | page-kind), with Chinese romanised first (PR feat(studio): a Chinese display name derives its identifier by pinyin at every Studio create door #29734, +1035/−104, 33 files: "a Chinese display name derives its identifier by pinyin at every Studio create door").name+labeltext pair. Of 147*.object.tsfiles underpackages,examples,apps, five declare both:sys_queue,sys_assignment_rule,sys_sharing_rule,sys_webhook,sys_email_template. All five are platform objects withmanagedBy: 'config'; zero are inexamples/**. Re-check:for f in $(find packages examples apps -name "*.object.ts" -not -path "*/node_modules/*"); do grep -qE "^\s+name: Field\.text" $f && grep -qE "^\s+label: Field\.text" $f && echo $f; done→ 5 lines.sys_email_template.nameis "Dotted snake_case identifier (e.g. auth.password_reset)" (grep -n "Dotted snake_case" packages/platform-objects/src/audit/sys-email-template.object.ts→ 52); a slug has no dot.sys_unitis the same need with other names and another shape (code+label, uppercase, at least four characters;grep -n "unit_code_organization_namespace" packages/platform-objects/src/system/sys-unit.object.ts). Only one of the five carries aformatrule onname(grep -l "type: 'format'"over the five →sys-queue.object.ts), so the refinement "name carries a format rule" matchessys_queuealone and misses the sibling the card names.grep -n "nav_queues\|nav_assignment_rules\|nav_sharing_rules" packages/plugins/plugin-sharing/src/sharing-plugin.ts→ 760, 769, 770 (all behindmanage_platform_settings);nav_webhooksinplugin-webhooks/src/webhook-outbox-plugin.ts:287. No app-authored object in the repository has the pair.gh api -X GET search/issues -f q="repo:objectstack-ai/objectstack is:issue pre-submit validation"→ 9 hits, only Record create forms neither derive a machine name from the display name nor check its declared format before submit (Setup queues and siblings) #39156 and Setup › Queues: creating a queue with a Chinese 名称 fails server-side with an English validation message, and the form never says the field is a machine name up front #39039 on topic).sys_assignment_rule's name guard is English hook text.grep -n "An assignment rule name is a machine name" packages/plugins/plugin-sharing/src/assignment-rule-hooks.ts→ 168.The question in one sentence
An administrator who has just typed a display name must still invent and hand-type the identifier beside it; should the form suggest it, and if so, how does a generic form learn which field feeds which?
Options × real cost × workload
sys_queue,sys_assignment_rule,sys_sharing_rule,sys_webhookdeclare it.shou_hou_fu_wu; the admin may overwrite it. Same behaviour as creating an object or field in Studio. App authors can declare it on their own code-like fields.lookupAutofill, PR #28244 (+688/−8, 17 files) and PR #28322 (+685/−26, 17 files), 1,373 added lines. That key then drew a tail of fix PRs (#31972, #35118, #36351, #36918, #37090, #37284), mostly surfaces that did not run it.labelandnamegets the slug derive (optionally only whennamecarries aformatrule).Half (2) under every option: not built. It is ruled (see Governing text); the permitted form is a server dry-run, closed
not_plannedon #4372 with a reopen condition this three-field form does not meet. Under A the suggested name satisfies the rule by construction (the slug emits lowercase letters, digits and underscores, never a leading digit), so the remaining case is an admin who overwrites the suggestion with a bad name and reads the localised refusal.Considered and not offered. (1) A console list of object names that get a derive, copied from the metadata-admin registry: object special-casing in the console, against ruling E on #27797. (2) The server fills
namefromlabelwhen it is omitted (an expression default): the expression language has no slug or romanising function (grep -rn "slug" packages/formula/src→ 0), so it is also new contract, and the admin would not see the identifier before saving. (3) Wiring the deprecated client engine forformatrules only: the reachability gate fails by design, and it is a reversal of #3110, which is a different card from this one.Business translation. A: the form designer gets a "fill this box from that box" setting, the one the vendor's own designer screens already use. B: the software guesses from the column headings which box is the code box. C: the clerk keeps writing the code by hand; the form explains the format and the counter rejects a bad one politely.
Four axes (business stance)
lookupAutofilltail shows what that costs in practice (premise in the table). The key's description must claim only the surfaces that run it (Prime Directive 10). B is cheapest to build among the two that do something, and the dearest to live with. This axis alone reads "C now".os-decision-facets
① Long-term fit: A gives the generic record form the declared "suggest from field X" that Studio's create doors already have through a private registry, one closed transform vocabulary for both doors (Odoo's editable computed field is the same model); B adds a field-name guess to a renderer; C keeps two kinds of create door for good. Client pre-check of declared rules widens a parallel evaluator and is excluded by #3110 and #4372.
② Business pull: weak; organisation administrators on four Setup objects, a few times per organisation, worst in Chinese; one dogfood expectation line, no customer report, no example app with the pair; the reported pain was fixed by PR #39153.
③ AI-error-proofing: A is a closed-enum declaration refused loudly at parse when malformed, and a wrong one shows as a visible, overridable suggestion; B acts silently on names the author never declared and mis-shapes one of the platform's own five objects; the server stays the only judge in every option.
④ Startup focus: C is zero work and no key; A is about three PRs (precedent 1,373 added lines for the key pair) and a permanent key with a known follow-up tail; B is one PR and an inference to maintain. No new gate in any option.
Prior rulings read: derive,createDerive,slugify,pinyin,拼音,pre-submit,validate-only,validateData,ObjectValidationEngine,客户端预检 → #4372 (maintainer close 2026-08-01, read in full); objectui#3110 and objectui#12242 (in-tree text only, issues not reachable); #4633 ruling D (via
protocol.zod.tsandengine.tsdocblocks); ruling E on #27797 (ruling file read); ADR-0131 D6, ADR-0142 D1 (cited docblocks); coordinator/rulings.md 0 hits; thread: none; repo: objectstack-ai/objectstackRecommendation: A
Self-check: 只看①选 A;②③④ 是否翻转:是(② 拉动弱、④ 新键是永久义务,单看这两轴会选 C;按规则不改字母,只调时序)。
Read on ① alone the answer is A: the behaviour is the platform's own stated end state for naming doors, the family it is missing on is permanent, and a declaration is the only route the standing rulings leave open. The workload gap is named as the rule asks: A is about three PRs and, by the measured precedent, some 1,400 added lines before adoption, with a follow-up tail; C is nothing. That is far more than three times. ② and ④ therefore set the timing, not the letter: the card stays p3, takes no place ahead of p1 or p2 work, and the spec card lands whole (key, parse refusals, docs) before any console work starts. I do not recommend a first stage through B: A would have to remove it.
Not taken. B: a renderer that guesses from field names, wrong on one of five platform objects today and unexplainable to an author. C: correct on cost and on pull, and the choice if the maintainer weighs ② and ④ above ① here; it leaves Setup as the one place a Chinese-speaking administrator invents identifiers by hand.
Whether the pre-submit half can proceed independently of this ruling: no. It is not pure implementation. The data is there (premise 1) and an evaluator exists (premise 2), but wiring it is what #3110 forbids and its gate fails; the permitted server form was closed on #4372 and its reopen condition is not met. It moves only if the maintainer reopens #4372 on that card. What can proceed today without any ruling is the sibling defect in premise 11:
sys_assignment_rule's English name refusal, fixed the way PR #39153 fixed queues (precedent +333/−62, 19 files), as its own bug card.Confidence gaps. (a) objectui#3110 and objectui#12242 were read through in-tree text and #4372, not the issues. (b) A's exact shape (field-level key or object-level pairing, key name, which transforms open) is not designed here; the terms below bound it. (c) Which create surfaces must honour the key (modal, drawer, master-detail header, quick-create on grid, board and calendar, mobile) is not enumerated; the
lookupAutofilltail says this is where the cost hides. (d) B's line count is an estimate with no precedent. (e) Whethersys_sharing_ruleandsys_webhookrefuse a badly shaped name at all was not traced; a derive helps them either way. (f) The platform comparisons are from general knowledge of those products. (g) The pull for A is the platform's own four objects; I recommend it on ①, not on ②.Execution after the ruling
domain:speccard under Record create forms neither derive a machine name from the display name nor check its declared format before submit (Setup queues and siblings) #39156 and keeps Record create forms neither derive a machine name from the display name nor check its declared format before submit (Setup queues and siblings) #39156 for the console half and the four adoptions,Blocked-by:the spec card. Ruled terms for the spec card: (1) the key sits on the target field and names a source field of the same object and a transform from a closed enum that opens with the slug transform only; a second transform (dotted, uppercase code) is added when an object asks for it, not before. (2) Parse refuses an unknown transform, a source that is not a field of the object, a target that is read-only or computed, and a field that names itself. (3) It is a create-time suggestion only: it stops once the user edits the target, never runs on edit, and no server door reads it; the server's rule on the name is unchanged. (4) The description claims exactly the create surfaces the console PR wires, by name. (5) The slug and the Chinese romaniser move to a shared ui package and the metadata-admin derive calls the same functions; no second copy. (6) No client evaluation offormatrules in any of the three PRs.domain:uicard on the form renderer; the dev must first list every object in the tree the inference matches and stop if any match is wrong (premise 8 says one is).sys_assignment_rulelocalisation defect (premise 11) as a separate bug card; it needs no ruling.Related
#39039 and PR #39153 (the delivered half); #4372 (server dry-run, closed not planned; restates objectui#3110); #4633 ruling D (
validateData, in process, import); PR #29734 (pinyin derive at Studio create doors); PR #26033 and PR #27969 (the state-machine presentation read in record forms); #27945 with PR #28244 and PR #28322 (lookupAutofill, the workload precedent); ruling E on #27797.objectstack-fleet commentedon Dec 3, 2026
repo:objectstack@os-bill · os-bill · session_01Utp6CaCKHqzEsnpLBSkVk3
Ruled: A · 2026-12-03T14:48Z
维护者裁决原话(决策卡,2026-12-03T14:47Z,Bill 点选):「A 加通用声明,自动生成」— 问题「新建队列等后台配置时,API 名称要不要从显示名自动生成?」
Ruling: option A of the analysis of record (comment 7381573253): a declared, closed-enum field key ("suggested from field X via transform T", slug first, Han romanised), honoured by record create forms until the user edits;
sys_queue,sys_assignment_rule,sys_sharing_rule,sys_webhookadopt it. The spec card lands before console work. The pre-submit format-check half is not part of this ruling (standing ruling on #4372 stands).Execution status: paused. The maintainer paused all p3 work at 2026-12-03T14:46Z, so nothing is claimed or dispatched; the zone resumes it only on the maintainer's word.
objectstack-fleet commentedon Dec 3, 2026
repo:objectstack@os-bill · os-bill · session_01Utp6CbFgiyGToVRBFwedwF
Bill ruled A (comment 7382065140): a declared spec key for derive, with the spec card before the console. The card goes back to
pm:queue. Execution stays paused under his p3 pause (14:46Z) until p3 resumes.