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
Field rules: a field that is required AND hidden by its visibleWhen is still enforced as required on save — one admin config locks every record that fails the condition #34905
What (18.5.0, console + Studio, measured in a browser)
A platform administrator adds a field to crm_account in Studio: Data → 客户 → 表单 → 添加字段 → Publish. The field is required and also has a visibleWhen so that it shows only for one customer tier.
After publishing, saving any customer that does not meet the condition is refused, even an edit of an unrelated field such as the owner:
验证用-备注字段是必填项,不能清空
The field is hidden on that record, so the user cannot see it, cannot fill it in, and cannot save anything. A single admin configuration therefore locks every record outside the condition, organization-wide. Deleting the field and republishing restores saving.
Expected
A field hidden by its visibleWhen is not required at that moment. Required should be judged together with visibility, on the server as well as in the form, so that the rule reads as "required when visible". Failing that, Studio should refuse to publish required together with visibleWhen, and explain why.
Severity
High. It needs no code: an administrator doing ordinary self-service configuration can stop the whole sales team from saving customers.
First touch (R1198, 16:0xZ): p1 · domain:server → pm:queue.
Themes: zh-CN customers / HotCRM usable, with a named effect. One ordinary self-service setting in Studio, a field that is both required and hidden by visibleWhen, stops every user from saving any record that fails the condition. Required has to be judged together with visibility, on the server as well as in the form. So p1.
Ruling: route A — "required when shown", with the transition gate. The maintainer chose it on the decision card at 2026-11-17 18:10Z (option 「A 显示时必填+切换校验」: 隐藏时免必填,显示了却没填的写入被拒;改 ADR-0113,走 Tier H). The seat's fable review that the card was built on is summarised below; the card thread builds from it.
What A means, as the build must state it:
Widening. On insert and update, when the object field's own visibleWhen evaluates cleanly false on the merged record, required is not enforced for that write. Plain required with no visibleWhen keeps today's no-prior-read path.
Narrowing (ships now). A write that flips the predicate true while the field is empty is refused (the requiredWhen non-regression pair: verdict on the merged record, compliance check against the prior record). This is breaking for flows, bulk updates, imports and API PATCHes that move existing rows into the condition: say so in the changeset and in the ADR amendment.
Faults count as shown. Do NOT reuse the requiredWhen fault arm (ADR-0137 D2 refuses the write). A faulting or unevaluable visibleWhen falls back to today's always-required behaviour, logged per ADR-0137 D4. Bind current_user for this evaluation the way the option gate does, so a role-gated field is judged per writer; a system write with no acting user takes the counts-as-shown arm.
Author-time fence. Extend Studio's GATED_SECTION_ROOTS fence and objectstack validate to required + field visibleWhen reading roots the server cannot bind (features, app, page) or reading through a reference, at warning level. required + visibleWhen + storage.notNull gets a warning-level lint, not a parse refusal (protocol-17 conversions stamped notNull on old required fields).
Records to amend in the same PR: ADR-0113 D1 and D5 (Tier H, os-zhuang), ADR-0137's field-rule fault table, ui/docs/adr/0036 ("not a server concept"), the field.zod.tsrequired describes, content/docs/deployment/validating-metadata.mdx (~line 960). The amendment names which of the three server answers is canonical (flow screens treat unevaluable as not required; the public form route skips required whenever visibleWhen exists).
Declarations: Clause-②: yes (narrowing + widening of the required write contract), Metadata-protocol: semantic. The PR is Tier H; seat L2 at CONTRACT_REVIEW_TIER after L1-d, then a seat record and os-zhuang.
repo:objectstack#3 · os-support-ai · session_01WGufzfrHprnpf55xZtXBbx
Claim: seat 3 card thread · 2026-11-17T18:26Z
Session: session_01WGufzgh1zkZzDXL36ckWAG
Thread session: session_01WGufzfrHprnpf55xZtXBbx
Account: os-support-ai
Branch: claude/project-thread-9ubqgj
Worktree: objectstack-issue-34905
Domain: domain:server
Seat: repo:objectstack#3
Lease: lease:o3-G
File surface: packages/objectql/src/validation/{record-validator,rule-validator}.ts, packages/objectql/src/engine-{insert,update,validate}.ts, new objectql tests beside them; packages/lint/src/validate-expressions.ts (+ a warning rule and its tests, rule-explanations.ts, index.ts if a rule id is added); ui/packages/app-shell/src/views/metadata-admin/inspectors/ (ObjectFieldInspector advisory, a helper and its test), ui/packages/i18n/src/namespaces/studio/*; packages/spec/src/data/field.zod.ts describes and the regenerated spec artifacts; docs/adr/0113-*, docs/adr/0137-*, ui/docs/adr/0036-*, content/docs/deployment/validating-metadata.mdx; scripts/adr-anchors/ (one anchor file); .changeset/ (stop on breach; explained in the report)
Container & model: L, mode:thread, model: TIER_DEFAULT (orders/34905.md), effort: high
Clause-②: yes (narrowing + widening of the required write contract)
Metadata-protocol: semantic
Responsibility: objectstack: @objectstack/objectql judges required without the field's own visibleWhen (record-validator.ts insert walk and update clear) | no platform path covers it today: the requiredWhen arm in rule-validator.ts is the reusable shape | any admin who saves required + visibleWhen in Studio reaches it; measured on 18.5.0 in the card
Thread-read: 6956761249
Premise: holds
Serial constraints cleared: none
{
"issue": 34905,
"status": "done",
"branch": "claude/project-thread-9ubqgj",
"pr": "https://github.com/objectstack-ai/objectstack/pull/34978",
"head": "81b671f31154b4c4c03f4cc19d7f2524cca7e4a4",
"session": "session_01WGufzfrHprnpf55xZtXBbx",
"premise_still_valid": true,
"summary": "Route A (ruling 6956761249). A field with required: true and its own visibleWhen is judged by a new pass, evaluateRequiredWhenShown (rule-validator.ts): cleanly false on the merged record waives the requirement for that write; true applies the ADR-0113 D1 non-regression rule against the prior record (a reveal without filling is refused, a row already shown and empty rests); a fault counts as shown, keeps the old unconditional rule and logs a warn (reason predicate-fault or no-acting-user). current_user is bound like the option gate; a system write with no acting user takes the counts-as-shown arm. record-validator's insert walk and update clear defer such a field ('deferred' from engine-insert, engine-update, engine-validate); fieldsNeedPrior counts only fields with both keys. Lint adds two warnings (a read through a reference; storage.notNull beside the pair); Studio's field inspector shows the reference-read warning. ADR-0113 amended (D1/D5 notes plus an amendment section naming this rule canonical for the record write contract), ADR-0137 fault-table row, ui ADR-0036, validating-metadata.mdx, field.zod describes and regenerated references.",
"tests": "New engine-required-when-shown.test.ts 19/19 (insert/update false, true empty, true filled, reveal without filling, fault, role-gated per writer, system write, bulk with one failing row, dry run, controls). objectql full suite 609 files / 13,687 passed. lint full suite 217 files / 9,191 passed (4 new tests; the declared-keys meta-test tables required, visibleWhen, storage.notNull). ui inspectors dir 234 files / 3,095 passed, 1 skipped; new requiredVisibleWhenReference.test.ts 5/5; app-shell tsc exit 0; eslint 0 errors on changed files; ui check:i18n-keys/drift/dead-keys/designer-field-key-parity exit 0. spec check:test-typecheck exit 0 (6 GB heap).",
"gates": "dispatch-gates --commands derived 129 on 55509ef5; 127 exit 0 first run; check:adr-symbol-anchors exit 1 (ADR-0020 anchored engine-update.ts#validateRecord, replaced here) fixed in 81b671f3, re-run exit 0; check-plugin-teardown-shape --self-test exit 3 (fixture commit not in the shallow clone), fetched, re-run exit 0; 26 ADR/docs gates re-run on 81b671f3 exit 0; derived set unchanged; dispatch-gates --ran: 129 run, 0 NOT-MEASURED. Full build 119/119. Changed lines 1100, under 3000. check-governed-merges: GOVERNED, Tier H (ADR paths).",
"dogfood_battery": "pnpm --filter @objectstack/dogfood test on 81b671f3 under the verify lock: 482 files (479 passed, 3 skipped), 4,140 tests (4,072 passed, 68 skipped), exit 0.",
"live": "zh-CN console over examples/app-crm, field 验证用-备注字段 required with visibleWhen record.tier == 'vip'. Before (origin/main c81f498b): VIP to 普通 save refused 验证用-备注字段是必填项,不能清空; creating a 普通 record refused 验证用-备注字段不能为空. After: both saved (200/201); moving a 普通 record to VIP without the field is stopped by the form, and the API PATCH is refused with required. On current main the unrelated-field edit already passes (the form sends only changed fields); the card measured it on 18.5.0. Screenshots and script in the seat's project files (34905-live).",
"deviations": [
"Ruling item 4 narrowed with the seat's agreement (18:27Z): FIELD_RULE_BOUND_ROOTS already refuses features/app/page roots in any field visibleWhen at error level, so no weaker warning was added; only the reference-read and storage.notNull warnings. Recorded in the ADR-0113 amendment and the PR body.",
"ADR-0020 edited (outside the claimed file surface): its symbol anchor on engine-update.ts#validateRecord no longer resolved after engine-update moved to validateRecordInScope; the anchor now names the file and the sentence is in the past tense.",
"The lint meta-test gained a storage read surface (receiver storage, key notNull) for the warning text.",
"No new rule id: the warnings ride the existing validate-expressions traversal and field passes, so rule-explanations.ts and index.ts are untouched.",
"Other readers left unchanged and listed in the amendment: import template, action parameter schema, MCP field descriptions (ADR-0124 D4)."
],
"files_changed": [
".changeset/34905-required-when-shown.md",
"content/docs/deployment/validating-metadata.mdx",
"content/docs/references/data/field.mdx",
"content/docs/references/data/object.mdx",
"content/docs/references/system/migration.mdx",
"docs/adr/0020-state-machine-converge-and-enforce.md",
"docs/adr/0113-required-write-contract-vs-column-constraint.md",
"docs/adr/0137-predicate-fault-semantics-are-contract.md",
"packages/lint/src/validate-expressions.test.ts",
"packages/lint/src/validate-expressions.ts",
"packages/objectql/src/engine-insert.ts",
"packages/objectql/src/engine-required-when-shown.test.ts",
"packages/objectql/src/engine-update.ts",
"packages/objectql/src/engine-validate.ts",
"packages/objectql/src/validation/record-validator.ts",
"packages/objectql/src/validation/rule-validator.ts",
"packages/spec/src/data/field.zod.ts",
"scripts/adr-anchors/packages__objectql__src__validation__rule-validator.ts.json",
"ui/docs/adr/0036-field-conditional-rules.md",
"ui/packages/app-shell/src/views/metadata-admin/inspectors/ObjectFieldInspector.tsx",
"ui/packages/app-shell/src/views/metadata-admin/inspectors/requiredVisibleWhenReference.test.ts",
"ui/packages/app-shell/src/views/metadata-admin/inspectors/requiredVisibleWhenReference.ts",
"ui/packages/i18n/src/namespaces/studio/en.ts",
"ui/packages/i18n/src/namespaces/studio/zh.ts"
],
"api_writes": "git pushes to claude/project-thread-9ubqgj; relay pr_create run 44173245242 (13298 bytes identical, assignee os-support-ai); claim comment 6957098185 with labels; this comment"
}
File surface amended · 2026-11-17T20:55Z (claim 6957098185, PR #34978 head 81b671f31), on L1-d M2 (6960730530):
Added docs/adr/0020-state-machine-converge-and-enforce.md, one sentence in "The prior-state plumbing gap". Its symbol anchor named engine-update.ts#validateRecord, which this PR removes, and check:adr-symbol-anchors went red on it. The sentence now links the file and says the call was made "when this record was written". That keeps the ADR's historical reasoning, and the anchor gate passes. No decision text changes.
The rest of the claim is unchanged: Tier H, Clause-②: yes, Metadata-protocol: semantic, lease o3-G.
This stamps on the card the seat's agreement, given to the card thread at 2026-11-17 18:27Z, which until now was only in that thread:
The existing error-level root fence covers ruling item 4's root half, so don't add a weaker warning beside it. Keep the current_user binding for stored legacy metadata, and add warnings only for the reference read and the notNull triple. Name this narrowing of item 4 in the PR body and in the ADR-0113 amendment, citing FIELD_RULE_BOUND_ROOTS.
Reason: FIELD_RULE_BOUND_ROOTS already refuses features, app and page roots at error level in any field visibleWhen, so a warning for them would only repeat a stronger refusal. Item 4 of the ruling record 6956761249 therefore reads as narrowed in this way, and PR #34978 implements it as narrowed. The user's choice of route A is unchanged.
File surface amended · 2026-11-18T01:20Z (claim 6957098185, PR #34978 head 2b709e12), on L1-d M1 (6966050977):
Added packages/objectql/src/engine-top-level.ts. It holds formulaValuesFor (added at d5310535 for the L2 M1 fix) and unservableReason (added at 2b709e12 for the delta L2 M2 fix): the formula values the rule pass reads for a required field's visibleWhen, built from the read path's own planFormulaProjection and applyFormulaPlan, which live in this file. It is exported to engine-insert.ts, engine-update.ts and engine-validate.ts, which are already in the surface. No other symbol in the file changes; two imports are added (planCallsOptionLabel, readsPermissionPredicate).
Added ui/packages/core/src/evaluator/__tests__/fieldRules.test.ts, one new describe (added at d5310535 for the L2 S1 ruling). It pins the form side of "only a clean TRUE shows the field": evalFieldPredicate answers false for null and for a clean non-boolean value, and true for TRUE. Test only; @object-ui/core source is unchanged.
The rest of the claim is unchanged: Tier H, Clause-②: yes, Metadata-protocol: semantic, lease o3-G.
Seat rulings (recorded) on the PR #34978 delta review 6963978999 · 2026-11-18T01:20Z
Ruled 2026-11-17 ~23:30Z in the card thread; recorded here because the PR body cites them.
M2: run the disproof test first. If it confirms the defect, count faults over the read closure (the reads the rule's verdict depends on), not an any-faulted shortcut.
S2 pair: (a) a fault shared by a read is judged on that read's null, the way the form shows it. (b) A fault that only a write path sees (hop, label(), can-without-map) keeps counted-as-shown, and gets a lint warning plus a Studio advisory so the author sees it.
{
"issue": 34905,
"status": "done",
"branch": "claude/project-thread-9ubqgj",
"pr": "https://github.com/objectstack-ai/objectstack/pull/34978",
"head": "8248f9ff5450a9de2fdced6792997cc93f94b639",
"session": "session_01JQwxbXGvw43spR79ztEvWt",
"premise_still_valid": true,
"summary": "Fix round for the seat delta contract review 6968679220 (PASS at 84d2f737). S4 measured first and held: the disproof test (formula is_admin reading current_user.positions, admin_note required with visibleWhen record.is_admin, insert with no acting user and without admin_note) was accepted silently at 7f14821c. Fixed with the hop/label()/can mechanism: formulaValuesFor marks a formula reading the acting user (readsUserRoot: current_user, user, ctx, os) unservable when the write has no acting user, through the read closure at any depth, and returns noActingUser so evaluateRequiredWhenShown logs reason no-acting-user naming the chain. Prose brought into agreement (ADR-0113 amendment, ADR-0137 note, visibleWhen describe and regenerated references, formulaValues and evaluateRequiredWhenShown jsdoc, changeset, lint message and doc, Studio helper doc and en/zh strings), N8 folded in prose; N9/N10 open. Same 27 paths; PR body updated.",
"tests": "Disproof at 7f14821c (before the fix): engine-required-when-shown.test.ts 1 failed / 33 passed of 34, the system-write insert accepted (AssertionError: expected false to be true). On 8248f9ff: that file 35/35; objectql typecheck + full suite 612 files, 13,764 passed; lint typecheck + full suite 218 files, 9,246 passed; ui requiredVisibleWhenReference.test.ts 9/9; ui check:i18n-keys, check:i18n-drift, check:i18n-dead-keys, check:designer-field-key-parity exit 0; spec build + check:generated: check:docs stale, gen:docs, re-run all 14 up to date. Ablations via scripts/ablation-replace.mjs (subject imported from src, no build between): new mark disabled, anchor 1 to 0, 2 of 35 red (both system-write pins), restore blob == HEAD 65304455, git diff HEAD empty; log flag forced off, anchor 1 to 0, 2 of 35 red (reason assertions), restore blob == HEAD 6dd81f48, git diff HEAD empty.",
"gates": "dispatch-gates --commands on 8248f9ff derived 130 (stderr warned the tree is 19 commits behind origin/main, 1 derive-from file changed; main not merged per the order: overlap-check says origin/main merges cleanly). 127 exit 0 first pass; check:skill-examples, check:dual-build-cjs-loads exit 3 (prerequisite: no dist) and check:type-check-debt exit 3 (lock queue-timeout behind the dogfood battery); after pnpm build 120/120 all three re-run exit 0. --ran with exit codes: 130 run, 0 NOT-MEASURED (a derived zero). CI on 8248f9ff: 70 check runs, 61 success, 9 skipped, 0 failed.",
"dogfood_battery": "8248f9ff · os-verify-lock VERDICT command-exit 0 · Test Files 479 passed, 3 skipped (482) · Tests 4,072 passed, 68 skipped (4,140) · no failures",
"mcp_calls": "0",
"api_writes": "2 relay writes: issue_patch on #34978 (PR body, read back identical, 28,277 bytes) and this comment on #34905. git push x2 not counted.",
"open_questions": [],
"security_findings": "none",
"out_of_scope_findings": []
}
Regraded p1 → p2: p1 is now kept for queue jumps. The maintainer, in triage's session: 「以后我都会要求专门作有一个专题…p1 是不是应该留给真的需要插队的」. He then confirmed triage's review of every open p1 (「确认」). Development is dispatched by epic, and an epic orders its own work. p1 is kept for cards that must jump ahead of it: a regression users meet in a released version, a broken hosted first impression or core flow, data loss or a breach in normal use, or a release or customer blocker.
Why this card: one admin configuration (required and hidden on the same field); a detail, not a queue jump. Any claim on the card is unchanged.
{
"issue": 34905,
"status": "done",
"branch": "claude/project-thread-9ubqgj",
"pr": "https://github.com/objectstack-ai/objectstack/pull/34978",
"session": "session_01JQwxbXGvw43spR79ztEvWt",
"premise_still_valid": true,
"summary": "Fix round on 8248f9ff. Merged origin/main twice (c8d5313d at main 961f4741, one conflict in packages/objectql/src/engine-update.ts resolved as a union; 6c9ded43 at main 55020c33, which contains #35116, clean), regenerated the merge-deferred object.mdx (6c0fd9ee). S5 and N11 closed in prose (aefc8aa2): ADR-0137 note and ADR-0113 parenthesis name the bare user-scope root reach of the no-acting-user mark, the server log reason says 'reads the acting user or a bare ctx/os root, and this write has no acting user (a system write)', the USER_SCOPE_ROOTS docblock keeps 'exact' for option visibility and calls the formula plan's reading conservative. The S3 known-limit prose is corrected for the form-side recompute (e6f0dcb4) in the ADR-0113 amendment, the visibleWhen TSDoc and describe (3 references regenerated), the formulaValues and evaluateRequiredWhenShown jsdoc, the changeset and the PR body. No logic change; file list unchanged at 27 paths.",
"tests": "On e6f0dcb4: @objectstack/objectql typecheck + test: Test Files 612 passed (612), Tests 13835 passed (13835). @objectstack/spec typecheck; test: Test Files 853 passed (853), Tests 27335 passed | 1 todo. spec build + gen:schema + gen:docs + check:generated: all 14 generated artifacts up to date. No tested behaviour changed (prose and one unpinned log string), so no ablation.",
"gates": "dispatch-gates --commands on e6f0dcb4: 131 families (same set as aefc8aa2); all 131 exit 0, captured before any pipe (check:skill-examples and check:dual-build-cjs-loads first exit 3 for missing dist, re-run after full pnpm build 120/120 tasks: exit 0). --ran: 131 run, 0 NOT-MEASURED, 0 UNRUN. CI on e6f0dcb4 (check-runs): 70 runs, 61 success, 9 skipped, 0 failed; Lint & Repo Gates, TypeScript Type Check, Test Core, Build Core, Governed Surface Queue Guard, Lint UI, Type Check UI, Test UI, Build & E2E UI, Live E2E UI, Dogfood Regression Gate all success; Check Changeset success.",
"dogfood_battery": "e6f0dcb4 · os-verify-lock: VERDICT command-exit 0 · Test Files 480 passed | 3 skipped (483) · Tests 4075 passed | 68 skipped (4143) · no failures",
"mcp_calls": "0",
"api_writes": "2 — fleet-write relay issue_patch on #34978 (PR body, read-back identical 33439 bytes); post-stamped comment on #34905 (this report). Plus 3 git pushes.",
"open_questions": [
{
"question": "With the form recomputing formulas (#35116), the lint warning on every required field whose visibleWhen reads a formula, and the Studio formula advisory (en, zh), still give 'the form does not recompute it' as their reason; the lint test pins 'does not recompute it'. Change what fires?",
"options": [
"A: narrow the lint warning and the Studio advisory to the unservable arm (hop, label(), can), dropping the plain formula-read warning; behaviour change, one more round",
"B: keep both firing and reword only (the plain warning then has no divergence to name)",
"C: leave as is and track on a follow-up card"
],
"recommendation": "A, because the plain warning's only reason is now false on main, and the unservable arm is the one place form and server still differ."
}
],
"security_findings": "none",
"out_of_scope_findings": [
"carrier: open question above (lint/Studio formula-read warning text vs the form recompute) · noted, not filed"
]
}
{
"issue": 34905,
"status": "done",
"branch": "claude/project-thread-9ubqgj",
"pr": "https://github.com/objectstack-ai/objectstack/pull/34978",
"head": "1ca9b694b5",
"session": "session_01JQwxbXGvw43spR79ztEvWt",
"premise_still_valid": true,
"summary": "Fix round on e6f0dcb4 for delta contract review 6977080790: one commit, 1ca9b694, text only, the same 27 paths, no merge of origin/main (overlap-check: merges cleanly). S6 (option B): the lint warning, its module doc, the validate-expressions.ts push-site comment, the Studio advisory (both keys, en and zh), the requiredVisibleWhenReference.ts module doc and jsdoc, and the ObjectFieldInspector.tsx comment no longer say the form does not recompute. What fires is unchanged. The plain formula read keeps one true reason that fits in a sentence: the server's computed value decides, and two checks still compute nothing (the wizard's final-submit check, and a form whose data source serves no object schema). The unservable arm now says the form shows the field and keeps it required. S7: ADR-0113 names both residual judges, verified at this head (gateFinalSubmit(mergedData) calls resolveFieldRuleState with no plan; useObjectFormulaPlan returns undefined when getObjectSchema is missing or its read rejects). WizardForm.tsx and objectFormulas.ts are untouched. N13: the stricter-form sentence names the expression-masked case (formulaRecord.ts marks 'has no expression served to this reader'). The commit uses the AGENTS.md model-free trailer pair, not the harness's model-named Co-Authored-By.",
"changed_sentences": [
"lint message, plain arm. OLD: 'The server judges that requirement on the formula computed over the record being written (ADR-0113 D1); the form judges it on the formula value it last read, does not recompute it while the user edits, and has none on a create. So a create, or an edit that moves the formula into the condition, can be refused naming a field the form keeps hidden. Read the formula's own inputs in the predicate if the form should follow the edit.' NEW: 'A reminder: the server judges that requirement on the formula value it computes over the record being written (ADR-0113 D1). The form computes the same formula over the record being edited; a check that does not (a wizard's final-submit check, or a form whose data source serves no object schema) judges the value last read, none on a create, and can disagree with the server.'",
"lint message, unservable arm. OLD: '... the server counts the field as SHOWN on every write, so it stays required on every record, the ones the form hides it on included.' NEW: '... the server counts the field as SHOWN on every write, so it stays required on every record. The form cannot compute it either: it shows the field and keeps it required.'",
"lint module doc, first bullet. OLD: 'The form does not recompute a formula. It judges the predicate on the formula value it last read, while the user edits, and a create form has none. A create, or an edit that moves the formula into the condition, is judged by the server on a value the form never showed, and can be refused naming a field the form keeps hidden.' NEW: 'The server's computed value decides. The form computes the object's formulas over the record being edited before it judges the predicate (ADR-0113, as amended), so for a formula it can compute it judges what the server judges. A check that computes none, a wizard's final-submit check or a form whose data source serves no object schema, judges the formula value last read, none on a create, and can disagree with the server; the warning is the reminder that the server's value decides.' Second bullet. OLD tail: 'the field stays required on every write, the records the form hides it on included.' NEW: 'the field stays required on every write. The form cannot compute such a formula either: it shows the field and keeps it required.' Lead-in. OLD: 'Two gaps the author can see at build time:' NEW: 'Two things the author can see at build time:'",
"validate-expressions.ts comment. OLD: 'A `formula` the predicate reads: the form does not recompute it, and one the write path cannot compute keeps the field required on every write' NEW: 'A `formula` the predicate reads: a reminder that the server judges it on the formula value it computes at write time, and one the write path cannot compute keeps the field required on every write, shown by the form'",
"lint test. Title OLD: 'warns when the predicate reads a formula field: the form does not recompute it' NEW: 'warns when the predicate reads a formula field: the server judges it on the formula it computes'. Pin OLD: toContain('does not recompute it') NEW: toContain('the formula value it computes over the record being written'). The comment above it is reworded the same way.",
"Studio en requiredVisibleWhenFormula. OLD: 'The form shows the value it last read and does not recompute it while you edit (a new record has none), so a save can be refused naming this field while the form keeps it hidden. Read the formula's own inputs instead if the form should follow the edit.' NEW: 'The form computes the same formula as you edit; a wizard's final-submit check, or a form whose data source serves no object schema, judges the value it last read instead (a new record has none) and can disagree with the server.' The first sentence is unchanged.",
"Studio zh requiredVisibleWhenFormula. OLD: '表单显示的是上次读取的公式值,编辑时不会重新计算(新建记录时没有值),因此保存可能因该字段被拒绝,而表单仍隐藏它。如需表单随编辑变化,请改为直接读取公式本身的输入字段。' NEW: '表单在你编辑时也会同样计算该公式;但向导最后提交时的检查,以及数据源不提供对象定义的表单,用的是上次读取的公式值(新建记录时没有值),可能与服务器的判断不一致。'",
"Studio en requiredVisibleWhenFormulaUnservable. OLD tail: 'so it stays required on every record, including the ones this condition hides it on.' NEW: 'so it stays required on every record. The form cannot compute it either: it shows this field and keeps it required.'",
"Studio zh requiredVisibleWhenFormulaUnservable. OLD tail: '因此按「显示」处理:所有记录(包括此条件隐藏该字段的记录)都仍要求填写。' NEW: '因此按「显示」处理:所有记录都仍要求填写。表单同样无法计算它:会显示该字段并保持必填。'",
"requiredVisibleWhenReference.ts module doc. OLD: 'the form judges the formula value it last read, does not recompute it while the user edits, and has none on a create. So a save can be refused naming a field the form keeps hidden, and the advisory says so for any formula read.' NEW: 'and that value decides. The form computes the same formulas over the record being edited; a check that computes none (a wizard's final-submit check, or a form whose data source serves no object schema) judges the formula value last read, none on a create, and can disagree with the server. The advisory is that reminder, for any formula read.' The unservable clause adds 'and the form, which cannot compute it either, shows the field and keeps it required'. Function jsdoc OLD: 'the form judges the predicate on the formula value it last read and does not recompute it, while the server judges the record being saved.' NEW: 'a reminder that the server judges the predicate on the formula value it computes over the record being saved ... and the form shows it.'",
"ObjectFieldInspector.tsx comment. OLD: 'a formula it reads is computed over the saved record there, while the form judges the value it last read; one the server cannot compute keeps it required on every save.' NEW: 'a formula it reads is computed over the saved record there, and that value decides; one the server cannot compute keeps it required on every save, and the form shows it.'",
"ADR-0113, S7 (added): 'What is left: a wizard's final-submit gate (`gateFinalSubmit`, `WizardForm.tsx`) still judges `resolveFieldRuleState` over its merged form values with no formula plan, and a form whose data source has no `getObjectSchema`, or whose schema read fails, gets no plan (`objectFormulas.ts`) and computes nothing, so both judge the formula value last read, none on a create.'",
"ADR-0113, N13. OLD: 'For a formula that reads `os` or calls `can()` the form can be stricter than the server, which may compute it and hide the field.' NEW: 'For a formula that reads `os`, calls `can()` or is served without its expression (a field-level-security mask) the form can be stricter than the server, which may compute it and hide the field.'"
],
"tests": "On 1ca9b694. @objectstack/lint: typecheck plus check:test-typecheck OK; full suite Test Files 217 passed (217), Tests 9248 passed | 5 skipped (9253), VERDICT command-exit 0. The renamed pin by title: Tests 1 passed | 508 skipped. @object-ui/i18n: type-check exit 0 (after building its dependency closure); test Test Files 103 passed (103), Tests 1947 passed | 13 skipped. ui requiredVisibleWhenReference.test.ts: 9 passed (9). No ui test pins the advisory text. No ablation: prose and message strings only, and no tested behaviour moves.",
"gates": "overlap-check vs origin/main 910306b632: VERDICT clean exit 0. dispatch-gates --commands on 1ca9b694: 131 families (the same set as e6f0dcb4). Each exit was captured before any pipe. The first runner pass read its list through a relative path, ran nothing, and was caught by an empty results file before it was re-run. Second pass: 124 exit 0 and 7 failed. Six exited 3, missing dist: lint check:doc-formula-expressions, lint check:doc-security-posture, spec check:skill-examples, check:docs-transcript-drift, check:dual-build-cjs-loads, check:lean-entry-closure. One exited 1, 'pnpm --dir ui exec vitest run scripts/': @objectstack/client had no build, so 1 test failed to import. After a full pnpm build (120 of 120 tasks, VERDICT command-exit 0), all 7 exit 0. pnpm check:i18n: exit 0, 'OK (10 package(s) — all bundles in sync'. ui check:i18n-drift: exit 0. dispatch-gates --ran with exit codes: 131 derived, 131 run, 0 NOT-MEASURED, 0 UNRUN (a derived zero). CI on 1ca9b694 from check-runs at report time: 74 runs, 61 success, 11 skipped, 2 in_progress. The 2 in progress are re-runs from the PR-body edit, Check Changeset among them; another Check Changeset run on the head is already success. All eleven required contexts are success: Lint & Repo Gates, TypeScript Type Check, Test Core, Build Core, Governed Surface Queue Guard, Lint UI, Type Check UI, Test UI, Build & E2E UI, Live E2E UI, Dogfood Regression Gate.",
"dogfood_battery": "1ca9b694 · os-verify-lock: VERDICT command-exit 0 · Test Files 480 passed | 3 skipped (483) · Tests 4075 passed | 68 skipped (4143) · no failures",
"mcp_calls": "0",
"api_writes": "2 — fleet-write relay issue_patch on #34978. That is the PR body: the Verification section gains the S6/S7/N13 round, and three What-changes sentences that described the old lint reason are corrected. Read-back: 38482 bytes sent, 38482 stored, identical. The other write is a post-stamped comment on #34905 (this report). Also 1 git push.",
"open_questions": [],
"security_findings": "none",
"out_of_scope_findings": [
"carrier: repo:objectstack#1 seat — the WizardForm gateFinalSubmit residual and the no-getObjectSchema / failed-schema-read residual (objectFormulas.ts). Both are main's code, named in ADR-0113 here and not changed. Review 6977080790 section ③ routes them to their own card. Noted, not filed.",
"carrier: repo:objectstack#1 seat — option A (narrow the lint and Studio warning set to the unservable arm), escalated in review 6977080790 section ③. Not done here, per the dispatch. Noted, not filed."
]
}
Activity
objectstack-fleet commentedon Nov 17, 2026
triage#1 · hotlong · session_01Q4EjjMnyLqJdzuktEmRPXH
First touch (R1198, 16:0xZ): p1 · domain:server →
pm:queue.Themes: zh-CN customers / HotCRM usable, with a named effect. One ordinary self-service setting in Studio, a field that is both required and hidden by visibleWhen, stops every user from saving any record that fails the condition. Required has to be judged together with visibility, on the server as well as in the form. So p1.
objectstack-fleet commentedon Nov 17, 2026
repo:objectstack#3 · os-support-ai · session_01WGufzgh1zkZzDXL36ckWAG
Ruling record · 2026-11-17T18:11Z
Ruling: route A — "required when shown", with the transition gate. The maintainer chose it on the decision card at 2026-11-17 18:10Z (option 「A 显示时必填+切换校验」: 隐藏时免必填,显示了却没填的写入被拒;改 ADR-0113,走 Tier H). The seat's fable review that the card was built on is summarised below; the card thread builds from it.
What A means, as the build must state it:
visibleWhenevaluates cleanly false on the merged record,requiredis not enforced for that write. Plainrequiredwith novisibleWhenkeeps today's no-prior-read path.requiredWhennon-regression pair: verdict on the merged record, compliance check against the prior record). This is breaking for flows, bulk updates, imports and API PATCHes that move existing rows into the condition: say so in the changeset and in the ADR amendment.requiredWhenfault arm (ADR-0137 D2 refuses the write). A faulting or unevaluablevisibleWhenfalls back to today's always-required behaviour, logged per ADR-0137 D4. Bindcurrent_userfor this evaluation the way the option gate does, so a role-gated field is judged per writer; a system write with no acting user takes the counts-as-shown arm.GATED_SECTION_ROOTSfence andobjectstack validatetorequired+ fieldvisibleWhenreading roots the server cannot bind (features,app,page) or reading through a reference, at warning level.required+visibleWhen+storage.notNullgets a warning-level lint, not a parse refusal (protocol-17 conversions stampednotNullon oldrequiredfields).visibleWhenonly. Field-groupvisibleWhen, form-view and section predicates stay out (ruled out of the validator on [Decision] Should the server-side required check read a form section visibleWhen predicate? (objectui#6237 semantic 1, cross-repo half) #13252); say so in the amendment. Confirm first that Studio stored the card's predicate on the object field, not the form view.Records to amend in the same PR: ADR-0113 D1 and D5 (Tier H, os-zhuang), ADR-0137's field-rule fault table,
ui/docs/adr/0036("not a server concept"), thefield.zod.tsrequireddescribes,content/docs/deployment/validating-metadata.mdx(~line 960). The amendment names which of the three server answers is canonical (flow screens treat unevaluable as not required; the public form route skipsrequiredwhenevervisibleWhenexists).Declarations:
Clause-②: yes (narrowing + widening of the required write contract),Metadata-protocol: semantic. The PR is Tier H; seat L2 at CONTRACT_REVIEW_TIER after L1-d, then a seat record and os-zhuang.objectstack-fleet commentedon Nov 17, 2026
repo:objectstack#3 · os-support-ai · session_01WGufzfrHprnpf55xZtXBbx
Claim: seat 3 card thread · 2026-11-17T18:26Z
Session:
session_01WGufzgh1zkZzDXL36ckWAGThread session:
session_01WGufzfrHprnpf55xZtXBbxAccount:
os-support-aiBranch:
claude/project-thread-9ubqgjWorktree:
objectstack-issue-34905Domain:
domain:serverSeat:
repo:objectstack#3Lease:
lease:o3-GFile surface:
packages/objectql/src/validation/{record-validator,rule-validator}.ts,packages/objectql/src/engine-{insert,update,validate}.ts, new objectql tests beside them;packages/lint/src/validate-expressions.ts(+ a warning rule and its tests,rule-explanations.ts,index.tsif a rule id is added);ui/packages/app-shell/src/views/metadata-admin/inspectors/(ObjectFieldInspector advisory, a helper and its test),ui/packages/i18n/src/namespaces/studio/*;packages/spec/src/data/field.zod.tsdescribes and the regenerated spec artifacts;docs/adr/0113-*,docs/adr/0137-*,ui/docs/adr/0036-*,content/docs/deployment/validating-metadata.mdx;scripts/adr-anchors/(one anchor file);.changeset/(stop on breach; explained in the report)Container & model:
L,mode:thread,model: TIER_DEFAULT (orders/34905.md),effort: highClause-②: yes (narrowing + widening of the required write contract)
Metadata-protocol: semantic
Responsibility:
objectstack: @objectstack/objectql judges required without the field's own visibleWhen (record-validator.ts insert walk and update clear) | no platform path covers it today: the requiredWhen arm in rule-validator.ts is the reusable shape | any admin who saves required + visibleWhen in Studio reaches it; measured on 18.5.0 in the cardThread-read: 6956761249
Premise: holds
Serial constraints cleared:
noneobjectstack-fleet commentedon Nov 17, 2026
repo:objectstack#3 · os-support-ai · session_01WGufzfrHprnpf55xZtXBbx
os-dev-report
Stamp: 2026-11-17T20:50Z
{ "issue": 34905, "status": "done", "branch": "claude/project-thread-9ubqgj", "pr": "https://github.com/objectstack-ai/objectstack/pull/34978", "head": "81b671f31154b4c4c03f4cc19d7f2524cca7e4a4", "session": "session_01WGufzfrHprnpf55xZtXBbx", "premise_still_valid": true, "summary": "Route A (ruling 6956761249). A field with required: true and its own visibleWhen is judged by a new pass, evaluateRequiredWhenShown (rule-validator.ts): cleanly false on the merged record waives the requirement for that write; true applies the ADR-0113 D1 non-regression rule against the prior record (a reveal without filling is refused, a row already shown and empty rests); a fault counts as shown, keeps the old unconditional rule and logs a warn (reason predicate-fault or no-acting-user). current_user is bound like the option gate; a system write with no acting user takes the counts-as-shown arm. record-validator's insert walk and update clear defer such a field ('deferred' from engine-insert, engine-update, engine-validate); fieldsNeedPrior counts only fields with both keys. Lint adds two warnings (a read through a reference; storage.notNull beside the pair); Studio's field inspector shows the reference-read warning. ADR-0113 amended (D1/D5 notes plus an amendment section naming this rule canonical for the record write contract), ADR-0137 fault-table row, ui ADR-0036, validating-metadata.mdx, field.zod describes and regenerated references.", "tests": "New engine-required-when-shown.test.ts 19/19 (insert/update false, true empty, true filled, reveal without filling, fault, role-gated per writer, system write, bulk with one failing row, dry run, controls). objectql full suite 609 files / 13,687 passed. lint full suite 217 files / 9,191 passed (4 new tests; the declared-keys meta-test tables required, visibleWhen, storage.notNull). ui inspectors dir 234 files / 3,095 passed, 1 skipped; new requiredVisibleWhenReference.test.ts 5/5; app-shell tsc exit 0; eslint 0 errors on changed files; ui check:i18n-keys/drift/dead-keys/designer-field-key-parity exit 0. spec check:test-typecheck exit 0 (6 GB heap).", "gates": "dispatch-gates --commands derived 129 on 55509ef5; 127 exit 0 first run; check:adr-symbol-anchors exit 1 (ADR-0020 anchored engine-update.ts#validateRecord, replaced here) fixed in 81b671f3, re-run exit 0; check-plugin-teardown-shape --self-test exit 3 (fixture commit not in the shallow clone), fetched, re-run exit 0; 26 ADR/docs gates re-run on 81b671f3 exit 0; derived set unchanged; dispatch-gates --ran: 129 run, 0 NOT-MEASURED. Full build 119/119. Changed lines 1100, under 3000. check-governed-merges: GOVERNED, Tier H (ADR paths).", "dogfood_battery": "pnpm --filter @objectstack/dogfood test on 81b671f3 under the verify lock: 482 files (479 passed, 3 skipped), 4,140 tests (4,072 passed, 68 skipped), exit 0.", "live": "zh-CN console over examples/app-crm, field 验证用-备注字段 required with visibleWhen record.tier == 'vip'. Before (origin/main c81f498b): VIP to 普通 save refused 验证用-备注字段是必填项,不能清空; creating a 普通 record refused 验证用-备注字段不能为空. After: both saved (200/201); moving a 普通 record to VIP without the field is stopped by the form, and the API PATCH is refused with required. On current main the unrelated-field edit already passes (the form sends only changed fields); the card measured it on 18.5.0. Screenshots and script in the seat's project files (34905-live).", "deviations": [ "Ruling item 4 narrowed with the seat's agreement (18:27Z): FIELD_RULE_BOUND_ROOTS already refuses features/app/page roots in any field visibleWhen at error level, so no weaker warning was added; only the reference-read and storage.notNull warnings. Recorded in the ADR-0113 amendment and the PR body.", "ADR-0020 edited (outside the claimed file surface): its symbol anchor on engine-update.ts#validateRecord no longer resolved after engine-update moved to validateRecordInScope; the anchor now names the file and the sentence is in the past tense.", "The lint meta-test gained a storage read surface (receiver storage, key notNull) for the warning text.", "No new rule id: the warnings ride the existing validate-expressions traversal and field passes, so rule-explanations.ts and index.ts are untouched.", "Other readers left unchanged and listed in the amendment: import template, action parameter schema, MCP field descriptions (ADR-0124 D4)." ], "files_changed": [ ".changeset/34905-required-when-shown.md", "content/docs/deployment/validating-metadata.mdx", "content/docs/references/data/field.mdx", "content/docs/references/data/object.mdx", "content/docs/references/system/migration.mdx", "docs/adr/0020-state-machine-converge-and-enforce.md", "docs/adr/0113-required-write-contract-vs-column-constraint.md", "docs/adr/0137-predicate-fault-semantics-are-contract.md", "packages/lint/src/validate-expressions.test.ts", "packages/lint/src/validate-expressions.ts", "packages/objectql/src/engine-insert.ts", "packages/objectql/src/engine-required-when-shown.test.ts", "packages/objectql/src/engine-update.ts", "packages/objectql/src/engine-validate.ts", "packages/objectql/src/validation/record-validator.ts", "packages/objectql/src/validation/rule-validator.ts", "packages/spec/src/data/field.zod.ts", "scripts/adr-anchors/packages__objectql__src__validation__rule-validator.ts.json", "ui/docs/adr/0036-field-conditional-rules.md", "ui/packages/app-shell/src/views/metadata-admin/inspectors/ObjectFieldInspector.tsx", "ui/packages/app-shell/src/views/metadata-admin/inspectors/requiredVisibleWhenReference.test.ts", "ui/packages/app-shell/src/views/metadata-admin/inspectors/requiredVisibleWhenReference.ts", "ui/packages/i18n/src/namespaces/studio/en.ts", "ui/packages/i18n/src/namespaces/studio/zh.ts" ], "api_writes": "git pushes to claude/project-thread-9ubqgj; relay pr_create run 44173245242 (13298 bytes identical, assignee os-support-ai); claim comment 6957098185 with labels; this comment" }objectstack-fleet commentedon Nov 17, 2026
repo:objectstack#3 · os-support-ai · session_01WGufzgNCAXyGfBQFZBwixH
File surface amended · 2026-11-17T20:55Z (claim 6957098185, PR #34978 head
81b671f31), on L1-d M2 (6960730530):docs/adr/0020-state-machine-converge-and-enforce.md, one sentence in "The prior-state plumbing gap". Its symbol anchor namedengine-update.ts#validateRecord, which this PR removes, andcheck:adr-symbol-anchorswent red on it. The sentence now links the file and says the call was made "when this record was written". That keeps the ADR's historical reasoning, and the anchor gate passes. No decision text changes.The rest of the claim is unchanged: Tier H,
Clause-②: yes,Metadata-protocol: semantic, leaseo3-G.objectstack-fleet commentedon Nov 17, 2026
repo:objectstack#3 · os-support-ai · session_01WGufzgh1zkZzDXL36ckWAG
Seat stamp · ruling item 4 narrowed · 2026-11-17T20:57Z
This stamps on the card the seat's agreement, given to the card thread at 2026-11-17 18:27Z, which until now was only in that thread:
Reason: FIELD_RULE_BOUND_ROOTS already refuses features, app and page roots at error level in any field visibleWhen, so a warning for them would only repeat a stronger refusal. Item 4 of the ruling record 6956761249 therefore reads as narrowed in this way, and PR #34978 implements it as narrowed. The user's choice of route A is unchanged.
objectstack-fleet commentedon Nov 18, 2026
repo:objectstack#3 · os-support-ai · session_01WGufzfrHprnpf55xZtXBbx
File surface amended · 2026-11-18T01:20Z (claim 6957098185, PR #34978 head
2b709e12), on L1-d M1 (6966050977):packages/objectql/src/engine-top-level.ts. It holdsformulaValuesFor(added atd5310535for the L2 M1 fix) andunservableReason(added at2b709e12for the delta L2 M2 fix): the formula values the rule pass reads for a required field'svisibleWhen, built from the read path's ownplanFormulaProjectionandapplyFormulaPlan, which live in this file. It is exported toengine-insert.ts,engine-update.tsandengine-validate.ts, which are already in the surface. No other symbol in the file changes; two imports are added (planCallsOptionLabel,readsPermissionPredicate).ui/packages/core/src/evaluator/__tests__/fieldRules.test.ts, one new describe (added atd5310535for the L2 S1 ruling). It pins the form side of "only a clean TRUE shows the field":evalFieldPredicateanswers false fornulland for a clean non-boolean value, and true for TRUE. Test only;@object-ui/coresource is unchanged.The rest of the claim is unchanged: Tier H,
Clause-②: yes,Metadata-protocol: semantic, leaseo3-G.objectstack-fleet commentedon Nov 18, 2026
repo:objectstack#3 · os-support-ai · session_01WGufzgh1zkZzDXL36ckWAG
Seat rulings (recorded) on the PR #34978 delta review 6963978999 · 2026-11-18T01:20Z
Ruled 2026-11-17 ~23:30Z in the card thread; recorded here because the PR body cites them.
label(), can-without-map) keeps counted-as-shown, and gets a lint warning plus a Studio advisory so the author sees it.visibleWhendescribe and TSDoc), add the warning, and list the form-recompute edit regression as a known limit. The form-recompute fix itself is follow-up card form: formula fields are not recomputed in the form, so a required field whose visibleWhen reads a formula stays hidden on create and on an edit that crosses the condition, while the server requires it (follow-up of #34905) #35033 (p1, area o3-D).7 remaining items
docs(changeset): say the server judges the predicate once #34905's se…
objectstack-fleet commentedon Nov 18, 2026
repo:objectstack#1 · os-warren · session_01JQwxbXGvw43spR79ztEvWt
os-dev-report
Stamp: 2026-11-18T06:20Z
{ "issue": 34905, "status": "done", "branch": "claude/project-thread-9ubqgj", "pr": "https://github.com/objectstack-ai/objectstack/pull/34978", "head": "8248f9ff5450a9de2fdced6792997cc93f94b639", "session": "session_01JQwxbXGvw43spR79ztEvWt", "premise_still_valid": true, "summary": "Fix round for the seat delta contract review 6968679220 (PASS at 84d2f737). S4 measured first and held: the disproof test (formula is_admin reading current_user.positions, admin_note required with visibleWhen record.is_admin, insert with no acting user and without admin_note) was accepted silently at 7f14821c. Fixed with the hop/label()/can mechanism: formulaValuesFor marks a formula reading the acting user (readsUserRoot: current_user, user, ctx, os) unservable when the write has no acting user, through the read closure at any depth, and returns noActingUser so evaluateRequiredWhenShown logs reason no-acting-user naming the chain. Prose brought into agreement (ADR-0113 amendment, ADR-0137 note, visibleWhen describe and regenerated references, formulaValues and evaluateRequiredWhenShown jsdoc, changeset, lint message and doc, Studio helper doc and en/zh strings), N8 folded in prose; N9/N10 open. Same 27 paths; PR body updated.", "tests": "Disproof at 7f14821c (before the fix): engine-required-when-shown.test.ts 1 failed / 33 passed of 34, the system-write insert accepted (AssertionError: expected false to be true). On 8248f9ff: that file 35/35; objectql typecheck + full suite 612 files, 13,764 passed; lint typecheck + full suite 218 files, 9,246 passed; ui requiredVisibleWhenReference.test.ts 9/9; ui check:i18n-keys, check:i18n-drift, check:i18n-dead-keys, check:designer-field-key-parity exit 0; spec build + check:generated: check:docs stale, gen:docs, re-run all 14 up to date. Ablations via scripts/ablation-replace.mjs (subject imported from src, no build between): new mark disabled, anchor 1 to 0, 2 of 35 red (both system-write pins), restore blob == HEAD 65304455, git diff HEAD empty; log flag forced off, anchor 1 to 0, 2 of 35 red (reason assertions), restore blob == HEAD 6dd81f48, git diff HEAD empty.", "gates": "dispatch-gates --commands on 8248f9ff derived 130 (stderr warned the tree is 19 commits behind origin/main, 1 derive-from file changed; main not merged per the order: overlap-check says origin/main merges cleanly). 127 exit 0 first pass; check:skill-examples, check:dual-build-cjs-loads exit 3 (prerequisite: no dist) and check:type-check-debt exit 3 (lock queue-timeout behind the dogfood battery); after pnpm build 120/120 all three re-run exit 0. --ran with exit codes: 130 run, 0 NOT-MEASURED (a derived zero). CI on 8248f9ff: 70 check runs, 61 success, 9 skipped, 0 failed.", "dogfood_battery": "8248f9ff · os-verify-lock VERDICT command-exit 0 · Test Files 479 passed, 3 skipped (482) · Tests 4,072 passed, 68 skipped (4,140) · no failures", "mcp_calls": "0", "api_writes": "2 relay writes: issue_patch on #34978 (PR body, read back identical, 28,277 bytes) and this comment on #34905. git push x2 not counted.", "open_questions": [], "security_findings": "none", "out_of_scope_findings": [] }objectstack-fleet commentedon Nov 18, 2026
triage#1 · hotlong · session_01Q4EjjMnyLqJdzuktEmRPXH
Regraded p1 → p2: p1 is now kept for queue jumps. The maintainer, in triage's session: 「以后我都会要求专门作有一个专题…p1 是不是应该留给真的需要插队的」. He then confirmed triage's review of every open p1 (「确认」). Development is dispatched by epic, and an epic orders its own work. p1 is kept for cards that must jump ahead of it: a regression users meet in a released version, a broken hosted first impression or core flow, data loss or a breach in normal use, or a release or customer blocker.
Why this card: one admin configuration (required and hidden on the same field); a detail, not a queue jump. Any claim on the card is unchanged.
objectstack-fleet commentedon Nov 18, 2026
repo:objectstack#1 · os-warren · session_01JQwxbXGvw43spR79ztEvWt
os-dev-report
{ "issue": 34905, "status": "done", "branch": "claude/project-thread-9ubqgj", "pr": "https://github.com/objectstack-ai/objectstack/pull/34978", "session": "session_01JQwxbXGvw43spR79ztEvWt", "premise_still_valid": true, "summary": "Fix round on 8248f9ff. Merged origin/main twice (c8d5313d at main 961f4741, one conflict in packages/objectql/src/engine-update.ts resolved as a union; 6c9ded43 at main 55020c33, which contains #35116, clean), regenerated the merge-deferred object.mdx (6c0fd9ee). S5 and N11 closed in prose (aefc8aa2): ADR-0137 note and ADR-0113 parenthesis name the bare user-scope root reach of the no-acting-user mark, the server log reason says 'reads the acting user or a bare ctx/os root, and this write has no acting user (a system write)', the USER_SCOPE_ROOTS docblock keeps 'exact' for option visibility and calls the formula plan's reading conservative. The S3 known-limit prose is corrected for the form-side recompute (e6f0dcb4) in the ADR-0113 amendment, the visibleWhen TSDoc and describe (3 references regenerated), the formulaValues and evaluateRequiredWhenShown jsdoc, the changeset and the PR body. No logic change; file list unchanged at 27 paths.", "tests": "On e6f0dcb4: @objectstack/objectql typecheck + test: Test Files 612 passed (612), Tests 13835 passed (13835). @objectstack/spec typecheck; test: Test Files 853 passed (853), Tests 27335 passed | 1 todo. spec build + gen:schema + gen:docs + check:generated: all 14 generated artifacts up to date. No tested behaviour changed (prose and one unpinned log string), so no ablation.", "gates": "dispatch-gates --commands on e6f0dcb4: 131 families (same set as aefc8aa2); all 131 exit 0, captured before any pipe (check:skill-examples and check:dual-build-cjs-loads first exit 3 for missing dist, re-run after full pnpm build 120/120 tasks: exit 0). --ran: 131 run, 0 NOT-MEASURED, 0 UNRUN. CI on e6f0dcb4 (check-runs): 70 runs, 61 success, 9 skipped, 0 failed; Lint & Repo Gates, TypeScript Type Check, Test Core, Build Core, Governed Surface Queue Guard, Lint UI, Type Check UI, Test UI, Build & E2E UI, Live E2E UI, Dogfood Regression Gate all success; Check Changeset success.", "dogfood_battery": "e6f0dcb4 · os-verify-lock: VERDICT command-exit 0 · Test Files 480 passed | 3 skipped (483) · Tests 4075 passed | 68 skipped (4143) · no failures", "mcp_calls": "0", "api_writes": "2 — fleet-write relay issue_patch on #34978 (PR body, read-back identical 33439 bytes); post-stamped comment on #34905 (this report). Plus 3 git pushes.", "open_questions": [ { "question": "With the form recomputing formulas (#35116), the lint warning on every required field whose visibleWhen reads a formula, and the Studio formula advisory (en, zh), still give 'the form does not recompute it' as their reason; the lint test pins 'does not recompute it'. Change what fires?", "options": [ "A: narrow the lint warning and the Studio advisory to the unservable arm (hop, label(), can), dropping the plain formula-read warning; behaviour change, one more round", "B: keep both firing and reword only (the plain warning then has no divergence to name)", "C: leave as is and track on a follow-up card" ], "recommendation": "A, because the plain warning's only reason is now false on main, and the unservable arm is the one place form and server still differ." } ], "security_findings": "none", "out_of_scope_findings": [ "carrier: open question above (lint/Studio formula-read warning text vs the form recompute) · noted, not filed" ] }objectstack-fleet commentedon Nov 18, 2026
repo:objectstack#1 · os-warren · session_01JQwxbXGvw43spR79ztEvWt
os-dev-report
{ "issue": 34905, "status": "done", "branch": "claude/project-thread-9ubqgj", "pr": "https://github.com/objectstack-ai/objectstack/pull/34978", "head": "1ca9b694b5", "session": "session_01JQwxbXGvw43spR79ztEvWt", "premise_still_valid": true, "summary": "Fix round on e6f0dcb4 for delta contract review 6977080790: one commit, 1ca9b694, text only, the same 27 paths, no merge of origin/main (overlap-check: merges cleanly). S6 (option B): the lint warning, its module doc, the validate-expressions.ts push-site comment, the Studio advisory (both keys, en and zh), the requiredVisibleWhenReference.ts module doc and jsdoc, and the ObjectFieldInspector.tsx comment no longer say the form does not recompute. What fires is unchanged. The plain formula read keeps one true reason that fits in a sentence: the server's computed value decides, and two checks still compute nothing (the wizard's final-submit check, and a form whose data source serves no object schema). The unservable arm now says the form shows the field and keeps it required. S7: ADR-0113 names both residual judges, verified at this head (gateFinalSubmit(mergedData) calls resolveFieldRuleState with no plan; useObjectFormulaPlan returns undefined when getObjectSchema is missing or its read rejects). WizardForm.tsx and objectFormulas.ts are untouched. N13: the stricter-form sentence names the expression-masked case (formulaRecord.ts marks 'has no expression served to this reader'). The commit uses the AGENTS.md model-free trailer pair, not the harness's model-named Co-Authored-By.", "changed_sentences": [ "lint message, plain arm. OLD: 'The server judges that requirement on the formula computed over the record being written (ADR-0113 D1); the form judges it on the formula value it last read, does not recompute it while the user edits, and has none on a create. So a create, or an edit that moves the formula into the condition, can be refused naming a field the form keeps hidden. Read the formula's own inputs in the predicate if the form should follow the edit.' NEW: 'A reminder: the server judges that requirement on the formula value it computes over the record being written (ADR-0113 D1). The form computes the same formula over the record being edited; a check that does not (a wizard's final-submit check, or a form whose data source serves no object schema) judges the value last read, none on a create, and can disagree with the server.'", "lint message, unservable arm. OLD: '... the server counts the field as SHOWN on every write, so it stays required on every record, the ones the form hides it on included.' NEW: '... the server counts the field as SHOWN on every write, so it stays required on every record. The form cannot compute it either: it shows the field and keeps it required.'", "lint module doc, first bullet. OLD: 'The form does not recompute a formula. It judges the predicate on the formula value it last read, while the user edits, and a create form has none. A create, or an edit that moves the formula into the condition, is judged by the server on a value the form never showed, and can be refused naming a field the form keeps hidden.' NEW: 'The server's computed value decides. The form computes the object's formulas over the record being edited before it judges the predicate (ADR-0113, as amended), so for a formula it can compute it judges what the server judges. A check that computes none, a wizard's final-submit check or a form whose data source serves no object schema, judges the formula value last read, none on a create, and can disagree with the server; the warning is the reminder that the server's value decides.' Second bullet. OLD tail: 'the field stays required on every write, the records the form hides it on included.' NEW: 'the field stays required on every write. The form cannot compute such a formula either: it shows the field and keeps it required.' Lead-in. OLD: 'Two gaps the author can see at build time:' NEW: 'Two things the author can see at build time:'", "validate-expressions.ts comment. OLD: 'A `formula` the predicate reads: the form does not recompute it, and one the write path cannot compute keeps the field required on every write' NEW: 'A `formula` the predicate reads: a reminder that the server judges it on the formula value it computes at write time, and one the write path cannot compute keeps the field required on every write, shown by the form'", "lint test. Title OLD: 'warns when the predicate reads a formula field: the form does not recompute it' NEW: 'warns when the predicate reads a formula field: the server judges it on the formula it computes'. Pin OLD: toContain('does not recompute it') NEW: toContain('the formula value it computes over the record being written'). The comment above it is reworded the same way.", "Studio en requiredVisibleWhenFormula. OLD: 'The form shows the value it last read and does not recompute it while you edit (a new record has none), so a save can be refused naming this field while the form keeps it hidden. Read the formula's own inputs instead if the form should follow the edit.' NEW: 'The form computes the same formula as you edit; a wizard's final-submit check, or a form whose data source serves no object schema, judges the value it last read instead (a new record has none) and can disagree with the server.' The first sentence is unchanged.", "Studio zh requiredVisibleWhenFormula. OLD: '表单显示的是上次读取的公式值,编辑时不会重新计算(新建记录时没有值),因此保存可能因该字段被拒绝,而表单仍隐藏它。如需表单随编辑变化,请改为直接读取公式本身的输入字段。' NEW: '表单在你编辑时也会同样计算该公式;但向导最后提交时的检查,以及数据源不提供对象定义的表单,用的是上次读取的公式值(新建记录时没有值),可能与服务器的判断不一致。'", "Studio en requiredVisibleWhenFormulaUnservable. OLD tail: 'so it stays required on every record, including the ones this condition hides it on.' NEW: 'so it stays required on every record. The form cannot compute it either: it shows this field and keeps it required.'", "Studio zh requiredVisibleWhenFormulaUnservable. OLD tail: '因此按「显示」处理:所有记录(包括此条件隐藏该字段的记录)都仍要求填写。' NEW: '因此按「显示」处理:所有记录都仍要求填写。表单同样无法计算它:会显示该字段并保持必填。'", "requiredVisibleWhenReference.ts module doc. OLD: 'the form judges the formula value it last read, does not recompute it while the user edits, and has none on a create. So a save can be refused naming a field the form keeps hidden, and the advisory says so for any formula read.' NEW: 'and that value decides. The form computes the same formulas over the record being edited; a check that computes none (a wizard's final-submit check, or a form whose data source serves no object schema) judges the formula value last read, none on a create, and can disagree with the server. The advisory is that reminder, for any formula read.' The unservable clause adds 'and the form, which cannot compute it either, shows the field and keeps it required'. Function jsdoc OLD: 'the form judges the predicate on the formula value it last read and does not recompute it, while the server judges the record being saved.' NEW: 'a reminder that the server judges the predicate on the formula value it computes over the record being saved ... and the form shows it.'", "ObjectFieldInspector.tsx comment. OLD: 'a formula it reads is computed over the saved record there, while the form judges the value it last read; one the server cannot compute keeps it required on every save.' NEW: 'a formula it reads is computed over the saved record there, and that value decides; one the server cannot compute keeps it required on every save, and the form shows it.'", "ADR-0113, S7 (added): 'What is left: a wizard's final-submit gate (`gateFinalSubmit`, `WizardForm.tsx`) still judges `resolveFieldRuleState` over its merged form values with no formula plan, and a form whose data source has no `getObjectSchema`, or whose schema read fails, gets no plan (`objectFormulas.ts`) and computes nothing, so both judge the formula value last read, none on a create.'", "ADR-0113, N13. OLD: 'For a formula that reads `os` or calls `can()` the form can be stricter than the server, which may compute it and hide the field.' NEW: 'For a formula that reads `os`, calls `can()` or is served without its expression (a field-level-security mask) the form can be stricter than the server, which may compute it and hide the field.'" ], "tests": "On 1ca9b694. @objectstack/lint: typecheck plus check:test-typecheck OK; full suite Test Files 217 passed (217), Tests 9248 passed | 5 skipped (9253), VERDICT command-exit 0. The renamed pin by title: Tests 1 passed | 508 skipped. @object-ui/i18n: type-check exit 0 (after building its dependency closure); test Test Files 103 passed (103), Tests 1947 passed | 13 skipped. ui requiredVisibleWhenReference.test.ts: 9 passed (9). No ui test pins the advisory text. No ablation: prose and message strings only, and no tested behaviour moves.", "gates": "overlap-check vs origin/main 910306b632: VERDICT clean exit 0. dispatch-gates --commands on 1ca9b694: 131 families (the same set as e6f0dcb4). Each exit was captured before any pipe. The first runner pass read its list through a relative path, ran nothing, and was caught by an empty results file before it was re-run. Second pass: 124 exit 0 and 7 failed. Six exited 3, missing dist: lint check:doc-formula-expressions, lint check:doc-security-posture, spec check:skill-examples, check:docs-transcript-drift, check:dual-build-cjs-loads, check:lean-entry-closure. One exited 1, 'pnpm --dir ui exec vitest run scripts/': @objectstack/client had no build, so 1 test failed to import. After a full pnpm build (120 of 120 tasks, VERDICT command-exit 0), all 7 exit 0. pnpm check:i18n: exit 0, 'OK (10 package(s) — all bundles in sync'. ui check:i18n-drift: exit 0. dispatch-gates --ran with exit codes: 131 derived, 131 run, 0 NOT-MEASURED, 0 UNRUN (a derived zero). CI on 1ca9b694 from check-runs at report time: 74 runs, 61 success, 11 skipped, 2 in_progress. The 2 in progress are re-runs from the PR-body edit, Check Changeset among them; another Check Changeset run on the head is already success. All eleven required contexts are success: Lint & Repo Gates, TypeScript Type Check, Test Core, Build Core, Governed Surface Queue Guard, Lint UI, Type Check UI, Test UI, Build & E2E UI, Live E2E UI, Dogfood Regression Gate.", "dogfood_battery": "1ca9b694 · os-verify-lock: VERDICT command-exit 0 · Test Files 480 passed | 3 skipped (483) · Tests 4075 passed | 68 skipped (4143) · no failures", "mcp_calls": "0", "api_writes": "2 — fleet-write relay issue_patch on #34978. That is the PR body: the Verification section gains the S6/S7/N13 round, and three What-changes sentences that described the old lint reason are corrected. Read-back: 38482 bytes sent, 38482 stored, identical. The other write is a post-stamped comment on #34905 (this report). Also 1 git push.", "open_questions": [], "security_findings": "none", "out_of_scope_findings": [ "carrier: repo:objectstack#1 seat — the WizardForm gateFinalSubmit residual and the no-getObjectSchema / failed-schema-read residual (objectFormulas.ts). Both are main's code, named in ADR-0113 here and not changed. Review 6977080790 section ③ routes them to their own card. Noted, not filed.", "carrier: repo:objectstack#1 seat — option A (narrow the lint and Studio warning set to the unservable arm), escalated in review 6977080790 section ③. Not done here, per the dispatch. Noted, not filed." ] }objectstack-fleet commentedon Nov 18, 2026
repo:objectstack#1 · os-warren · session_01JQwxbabAdcWyApSTGBYJNY
Close-out · 2026-11-18T15:29Z: PR #34978 merged at 2026-11-18T15:22Z as 0739dee, after os-zhuang's approval and queue.
Fixes #34905closed this card.o1-Ais released, andpm:dispatchedis removed.