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
Validation rules: an authored rule message cannot name record values, so a refusal cannot say "total 8,000 is below received 10,000" #37909
Filing gate ③ (maintainer-directed) · Source: maintainer — Irene chose 「先合并,提示写字段名」 on the hotcrm project thread's decision card (2026-11-27T10:33Z), whose option filed this platform card. Measured while building hotcrm#2827 (PR hotcrm#2836). · Type: Feature · Grade: left to objectstack triage.
Today
A validations[] rule's message is returned as written (or its translation) with no parameters. On objectstack main f7f9345, packages/objectql/src/validation/rule-validator.tsauthoredRuleMessage(rule, messages) (~L4106) returns rule.message or the catalog translation verbatim; nothing interpolates values from the record being judged. 18.6.0 behaves the same (checkPredicate → authoredRuleMessage).
So a business rule can refuse a write but cannot tell the person by how much. HotCRM#2827 refuses re-confirming a sales order whose Total Price is below what was already received or invoiced. The approved card asked for "Order SO-0012's total 8,000.00 is below what was received (10,000.00)". The shipped message can only name the fields: "This order's Total Price is below what was already received (Received)…". HotCRM's contract_same_account rule on the order records the same limit.
Ask
Let an authored rule message reference values of the judged record, for example {total_price} / {received_amount} placeholders (or a messageParams map of field → expression), resolved against the same merged record the rule judged and rendered with the field's display format (currency, number, lookup name), in the translated message too. A missing or masked field (no read permission) renders empty, never its raw value.
Who benefits: every app with money or quantity rules (credit limits, quotas, stock, refunds). The person sees the figure to fix without opening another tab.
Dedupe: searched validation message interpolation record values, validation rule message params placeholders (open and closed), 0 hits on this mechanism. Related but different, closed: #28052 (state_machine message cannot name the refused move), #14253 (custom validation messages had no bundle key).
Consumer: hotcrm#2827 adds the amounts to its two messages (reconfirm_total_below_received, reconfirm_total_below_invoiced in src/o2c/extensions/sales-order.extension.ts) once a pinned release carries this.
Triage: lands in area:data · domain:server · Feature · p2 · pm:queue · size M; rationale: maintainer-directed (filed on the HotCRM thread's decision card). A validation rule's message cannot name record values, so a refusal cannot tell the user which numbers clash. area:business is not a North Star area, so it becomes area:data, the home of validation rules. p2 as a maintainer-directed feature with a named consumer (HotCRM). Recorded 2026-11-27T11:16Z.
Ruled · 2026-11-28T13:08Z · the contract shape of value holes in an authored validation-rule message. Analysed independently at the fable tier before it was put to the maintainer.
Holes name record.<field> (the merged record the rule judged) and previous.<field> on update. One segment deep, own fields only.
message stays a string on the wire.
objectstack validate, compile and the publish gate judge each rule message and each translation with closedScopeTemplateRefusal; findings are errors. Stored rules keep loading until their next save.
A single brace is refused at the doors by the same judge. That is the breaking arm: Clause-②: yes (narrowing), Metadata-protocol: narrowed, ADR-0087 disposition. The showcase support_config_shape message and its two bundle entries are reworded in the same PR.
Formatting uses explicit formatters from the existing whitelist. The tenant default currency is threaded so | currency works. There is no implicit formatting by field type.
Field security (human floor): a hole over a field the caller cannot read renders empty. A partially masked field renders empty too and must be excluded separately. If a security service is registered but answers nothing or throws, every hole renders empty. The rule's verdict never depends on rendering, and no record value enters the error envelope's machine fields.
Translation: the translated template is picked first and then filled. If it does not render, the authored text is filled and a warning names the translation.
Fork rule: if a template that passes the doors cannot render at run time, or the readable-field answer cannot tell masked fields apart, the dev reports a fork. ⛔ It never falls back to raw values or to P2.
Serial · 2026-11-28T13:25Z · PR 1 of this card (spec + lint) waits on two in-flight claims whose File surface: meets it: #35143 (seat 6, packages/lint/**) and #33806 (seat 2, packages/spec). Blocked-by: lines added to the body; Notify: serial rung in both seats' mailboxes (#37458, #37498). Dispatched by this seat when they land.
Activity
objectstack-fleet commentedon Nov 27, 2026
triage#1 · hotlong · session_01Q4EjjMnyLqJdzuktEmRPXH
Triage: lands in area:data · domain:server · Feature · p2 · pm:queue · size M; rationale: maintainer-directed (filed on the HotCRM thread's decision card). A validation rule's message cannot name record values, so a refusal cannot tell the user which numbers clash.
area:businessis not a North Star area, so it becomes area:data, the home of validation rules. p2 as a maintainer-directed feature with a named consumer (HotCRM). Recorded 2026-11-27T11:16Z.objectstack-fleet commentedon Nov 28, 2026
repo:objectstack#8 · sunhaolin · session_017xRBcSAaBEfQpU2yJexSJ8
Ruled · 2026-11-28T13:08Z · the contract shape of value holes in an authored validation-rule
message. Analysed independently at the fable tier before it was put to the maintainer.repo:objectstack#8's session: 「两个产品决策 同意」 (agreeing to the seat's recommendation P3).messageand its_validations.<rule>.messagetranslations become a{{ }}template slot over the judged record. They are judged and rendered by the machinery the other person-facing slots already use: ADR-0032 Decision 3 (one delimiter,{{ }}), and rulings 6285948976 ([Decision] A bulk action'sconfirmText: refuse{{…}}holes by name (A), or declare{{count}}and the action's param holes and fill them (B)? HotCRM authors them in 12 strings (from objectui#13154) #24798) and 6879477573 (hooks: the refusal catalogue (refusals) cannot translate a handler-authored hook's refusals, and holds one sentence per code — a TS hook has no way to refuse in the user's language #33214). No new key is added.record.<field>(the merged record the rule judged) andprevious.<field>on update. One segment deep, own fields only.messagestays a string on the wire.objectstack validate,compileand the publish gate judge each rule message and each translation withclosedScopeTemplateRefusal; findings are errors. Stored rules keep loading until their next save.Clause-②: yes (narrowing),Metadata-protocol: narrowed, ADR-0087 disposition. The showcasesupport_config_shapemessage and its two bundle entries are reworded in the same PR.| currencyworks. There is no implicit formatting by field type.domain:spec+ lint: describe, doors, translation judge, showcase rewording) → PR 2 (domain:server: render inauthoredRuleMessage, currency and readable-field handover, the empty-on-unreadable pins) → PR 3 (skills and docs). HotCRM's docs+build(releases): whole-platform 12.0→14.x history + a maintenance model that includes the frontend #2827 messages follow on the first pinned release.packages/lint/src/validate-expressions.ts(spec: an object declares when a whole record is read-only by hand (object-level uiReadonlyWhen), fields override it, and duplicating a record takes the locked fields' defaults #37402, PR feat(spec,ui): an object declares when a whole record is read-only by hand (object-level uiReadonlyWhen) #38169 in the merge queue; lint: a second batch of publish-time checks for metadata that saves and does not work — the ones only the hosted build check makes today #35143, seat 6,packages/lint/**) and onpackages/spec(Contract: merge the in-app pending-action queue into the AI-door confirmation seam (#33689 Q1, option C deferred) #33806, seat 2). It is dispatched when those clear.objectstack-fleet commentedon Nov 28, 2026
repo:objectstack#8 · sunhaolin · session_017xRBcSAaBEfQpU2yJexSJ8
Serial · 2026-11-28T13:25Z · PR 1 of this card (spec + lint) waits on two in-flight claims whose
File surface:meets it: #35143 (seat 6,packages/lint/**) and #33806 (seat 2,packages/spec).Blocked-by:lines added to the body;Notify: serialrung in both seats' mailboxes (#37458, #37498). Dispatched by this seat when they land.