Skip to content

fix(objectql)!: a required field hidden by its own visibleWhen is required only when shown - #34978

Merged
os-zhuang merged 21 commits into
mainfrom
claude/project-thread-9ubqgj
Nov 18, 2026
Merged

os-zhuang merged 21 commits into
mainfrom
claude/project-thread-9ubqgj

Conversation

@objectstack-fleet

@objectstack-fleet objectstack-fleet Bot commented Nov 17, 2026 •

Copy link
Copy Markdown
Contributor

Requested by Yibo Wang · project thread
Fixes #34905
Clause-②: yes (narrowing + widening of the required write contract)
Metadata-protocol: semantic
Skills-docs: none — no skill teaches required and visibleWhen together; objectstack-data's "Use visibleWhen to hide irrelevant fields" stays true, and the combination's meaning lives in the FieldSchema describes.

维护者速读

  • 改了什么:字段同时设了「必填」和自己的「显示条件」(visibleWhen)时,服务端改为「显示时才必填」:条件不为真(为假或为空值,字段被隐藏)的记录,新建和保存都不再要求它;把记录改到条件内却不填它,会被拒绝;条件算不出来时按「显示」处理,保持原来的必填,并在服务端日志里写一条警告。条件里读到公式字段时,先按读取时的算法算出公式值再判断;公式因空值等原因算不出(读取时也是空值)就按空值判断,公式经由关联字段读取、调用 label() 或 can()(含间接经由其他公式)时写入路径无法得知读取值,按「显示」处理;公式读取当前用户(current_user)而本次写入没有操作用户(系统写入)时同样按「显示」处理,日志原因记为 no-acting-user,与条件里直接写 current_user 的情形一致。
  • 为什么改:在 Studio 里给对象加一个「必填 + 显示条件」的字段只需几下点击,之后所有不满足条件的记录都无法新建,表单隐藏字段时会把它清空,也无法保存(提示「验证用-备注字段是必填项,不能清空」),整个组织被一处配置锁住。
  • 风险与回滚:这是收紧加放宽。放宽:隐藏时不再必填。收紧:流程、批量更新、导入和 API 把已有记录改进条件却不填该字段,现在会被拒(批量里一行不合格整批拒),changeset 写明了 BREAKING。没有设显示条件的必填字段完全不变。另加三条 lint 警告(条件经由关联字段读取;条件读公式字段;同时设了 storage.notNull),Studio 字段面板对前两种显示提示。原先记录的已知限制(表单不重算公式)已由 main 上的表单侧重算(fix(form): recompute formula fields from the live inputs before judging field rules #35116)关闭:表单现在按正在编辑的记录重算公式再判断字段规则;表单算不了的公式(经由关联字段、label()、can()、读 os、未登录时读用户)让字段显示并保持必填,由服务端在保存时判定。回滚即 revert 本 PR。
  • 先看:① rule-validator.ts 新增的 evaluateRequiredWhenShown(隐藏 / 显示 / 算不出三条分支,以及 fieldsNeedPrior 的新条件);② record-validator.ts 的 requiredWhenShown 与 'deferred' 参数(插入遍历和更新清空检查让给上面的规则);③ ADR-0113 末尾的修订一节(包括作者期围栏为什么收窄、三处服务端答案以哪处为准)。
  • 两分钟验证:在仓根执行 pnpm --filter @objectstack/objectql exec vitest run src/engine-required-when-shown.test.ts,预期 35 个测试全部通过。
  • 需要你做的:这是 Tier H(改了 ADR-0113 / ADR-0137),需要 os-zhuang 审批;请先看 ADR-0113 的修订一节。

What changes

Engine (@objectstack/objectql). A field with required: true and its own visibleWhen is judged by a new pass, evaluateRequiredWhenShown in rule-validator.ts, run after the requiredWhen loop:

  • Hidden: the predicate evaluates cleanly to anything but TRUE on the merged record (the stored row with the write over it), so FALSE, or null such as an unset boolean. The field is not required for that write. This is the form's reading, which shows a field only for a clean TRUE. The form's clear-on-hide null is accepted.
  • Shown: the predicate is true. The ADR-0113 D1 non-regression rule applies with the predicate as its condition, judged against the prior record. A write that reveals the field empty is refused with required. A row already shown and empty rests under unrelated edits. The message is required_cleared only when the payload clears a value that was there.
  • Fault: the predicate cannot be evaluated, so it counts as shown. The field takes exactly the unconditional rule it had before (an insert must provide it, an update may not clear it), and the server logs a warn naming the field and the fault, with reason: 'predicate-fault' or 'no-acting-user' (ADR-0137 D4). This is a new arm. The requiredWhen fault arm, which refuses the write, is unchanged.

The predicate is evaluated with record, previous, parent where the write resolves a header, and the acting user bound as current_user with the permission map the option gate reads. A system write with no acting user takes the fault arm.

A formula field is computed on read and is never on the write path. So the engine computes the object's formulas over the merged record and the prior record before it evaluates a predicate that reads one. It uses the read path's own plan (formulaValuesFor in engine-top-level.ts, passed to the rule pass as formulaValues at the insert, by-id update, bulk update and validate() call sites). A formula that does not compute is answered by the reason (the seat's S2 ruling):

  • A fault a read shares (an operator over an empty operand, an undeclared key, a cycle): a read serves null, so the predicate is judged on that null, as the form judges it. Not a fault of the predicate.
  • A value only a read can have: the formula reads through a reference, calls label(), calls current_user.can() with no permission map resolved for the write (one is resolved only when the write picks a permission-gated option), or reads the acting user (current_user, user, ctx, os) on a write that has none (a system write), or it reads such a formula at any depth. formulaValuesFor marks these unservable once per write, walking the plan in read order so the whole read closure counts, and the predicate is a fault, which counts as shown and is logged naming the chain ('risk', which reads the formula 'tier_name', which reads through 'account', …). The acting-user mark is logged with reason: 'no-acting-user', the reason the direct current_user spelling logs (noActingUser beside unservable on the formulaValues answer).

A caller that passes no formulaValues gets the fault answer. The bulk update builds one formula closure per batch, predicate reads are memoised per source, and a record's formulas are computed once per write (L1-d's and the seat's N7).

The form recomputes formulas too (S3's known limit, now closed on main). The form-side recompute (#35116, merged into this branch) computes the object's formula fields over the record being edited before the field rules are judged: the object form renderer over its ruleRecord (ui/packages/components/src/renderers/form/form.tsx:2153) and the console form-view page over its live values (ui/apps/console/src/components/FormPage.tsx:2813), both through planObjectFormulas (ui/packages/core/src/evaluator/formulaRecord.ts:230). A formula the form cannot compute (a hop, label(), current_user.can(), a read of os, a read of the user with nobody signed in, an expression not served, or a formula reading one) drops the visibleWhen that reads it, so the field is shown and keeps its required flag (objectFormulas.ts:107, FormPage.tsx:2440), and the server decides. For os and can() the form can be stricter than the server (formulaRecord.ts:58). The ADR-0113 amendment, the visibleWhen TSDoc and describe, the formulaValues and evaluateRequiredWhenShown jsdoc and the changeset now say this. The lint warning and the Studio advisory no longer say the form does not recompute (S6, fix round on 1ca9b694): the plain formula read is a reminder that the server's computed value decides, naming the two checks that still compute none, and the unservable arm says the form shows the field and keeps it required.

record-validator.ts gains requiredWhenShown(def) and a requiredVisibility parameter on validateRecordInScope. The three engine call sites (engine-insert.ts, engine-update.ts, engine-validate.ts) pass 'deferred', so the insert walk's presence check and the update's clear check leave such a field to the pass above. A field with required and no visibleWhen, a readonly field and an autonumber field keep the old path. fieldsNeedPrior counts a field only when it has both keys, so plain required still costs no prior-record read. engine-update.ts now calls validateRecordInScope directly (the validateRecord import it no longer uses is removed). The bulk update's per-row branch reads each row through the same rulesNeedRows path.

Lint (@objectstack/lint). On a required field with a visibleWhen, three new warnings at objectstack validate and the object save door:

  • the predicate reads through a reference field: the field level is never hydrated on the server, so the predicate always faults and the field stays required everywhere;
  • the predicate reads a formula field (required-visible-when-formula-issue.ts): a reminder that the server judges the requirement on the formula value it computes over the record being written, while a check that computes none (a wizard's final-submit check, a form whose data source serves no object schema) judges the value last read; and when a formula in its read closure reads through a reference or calls label() or can, the message adds that the server counts the field as shown on every write and that the form, which cannot compute it either, shows the field and keeps it required (for can, that a write picking a permission-gated option computes it); a formula reading the acting user draws no warning, since it is computed per writer on every write that has one;
  • storage.notNull: true beside the pair: the column still refuses the null the write contract now admits.

The reference-read check reuses the requiredWhen / readonlyWhen traversal refusal (refuseFieldTraversal) with a new visibleWhen slot and a severity argument.

Author-time fence, narrowed from ruling item 4 (agreed with the seat 18:27Z). The ruling asked for a warning on required + visibleWhen reading the features, app or page roots. That half already exists at error level: FIELD_RULE_BOUND_ROOTS refuses every root but record, previous and parent in any field visibleWhen, at objectstack validate, at the object save door and in Studio's predicate editor. A weaker warning beside it would add nothing, so none is added. The current_user binding stays, for older stored metadata that predates the refusal. Only the reference-read warning and the storage.notNull warning are added. The ADR-0113 amendment records this narrowing.

Studio (@object-ui/app-shell, @object-ui/i18n). The field inspector shows the reference-read warning and the formula-read warning under the Visible-when editor of a required field (designer.field.requiredVisibleWhenReference, requiredVisibleWhenFormula, requiredVisibleWhenFormulaUnservable, en and zh). The reads are found by the same analyzeRelationshipTraversals the server and the lint use, loaded lazily like the other CEL affordances, and the answer is stamped with the inputs it was computed from.

Spec (@objectstack/spec). The required and visibleWhen describes on FieldSchema say how the two combine. The generated references (field.mdx, object.mdx, migration.mdx) are regenerated.

Records.

  • ADR-0113: D1 and D5 notes and an "Amendment (2026-11-17) — required when shown" section covering the ruling, the rule, its scope, the narrowed fence, what is not in scope, which server answer is canonical, and the readers left as they are.
  • ADR-0137: an amendment note and a row in the field-rule fault table.
  • ui ADR-0036: the table row and the "not a server concept" bullet are amended.
  • validating-metadata.mdx: the submit paragraph is updated.
  • The rule-validator.ts ADR anchor names ADR-0113.

Scope. Only the object field's own visibleWhen is read. A field group's visibleWhen, form-view field and section predicates, a hidden tab and static hidden are not, because the validator does not consume view metadata (#13252).

Which server answer is canonical. For the record write contract, this rule. A flow screen's required field and the public form route judge their own surface's declarations before the engine sees the write, and keep their directions. A record either of them writes is then judged by this rule.

Tests

  • packages/objectql/src/engine-required-when-shown.test.ts (new, 35 tests, real engine and in-memory driver):
    • (a) predicate false: an insert without the field is accepted; an edit of an unrelated field is accepted; the clear-on-hide null is accepted when the write moves the record out of the condition.
    • (b) predicate true: an insert without the field is refused and nothing is stored; with it, accepted. An update that reveals the field empty is refused and the row is untouched; the same reveal with the field filled is accepted. Clearing the field while shown is refused with the clear-out sentence. A row already shown and empty rests under an unrelated edit and an explicit null. A bulk update that reveals the field on one empty row refuses the whole batch and names (record b2).
    • (c) a faulting predicate counts as shown: an insert without the field is refused as required (not the D2 rule_violation) and the fault is logged; with the field, accepted; an update keeps the old answers (a clear is refused, an unrelated edit of a null row rests).
    • (d) a role-gated predicate ('org_admin' in current_user.positions): the writer the field is shown to must fill it, the writer it is hidden from saves without it, and a system write with no acting user counts as shown, logged as no-acting-user.
    • (e) validate() (the dry run) accepts the hidden insert and refuses the shown empty one. Controls: plain required refuses as before, and only a field with both keys asks for the prior record.
    • (f) a predicate over a formula field (record.risk_level == 'high', the formula computed from amount): an insert inside the condition without the field is refused; outside, accepted; an update that moves the computed value into the condition is refused and the row is untouched; validate() agrees; a bulk update judges each row on its own computed value and names (record f2); a formula over an empty operand, and one with an undeclared key, are judged on the null a read serves (accepted, nothing logged); a formula calling label() counts as shown and is logged naming it.
    • (h) the seat's M2 disproof: tier_name reads record.account.tier, risk reads tier_name, the predicate reads risk: an insert inside the condition without the field is refused and logged naming the chain (it was accepted at ab10c33f); with the field, accepted.
    • (g) only a clean TRUE shows the field: an unset boolean under visibleWhen: record.is_vip hides it (insert accepted, nothing logged); TRUE shows it (insert refused).
    • (i) the review's S4 disproof: is_admin: 'org_admin' in current_user.positions (formula), admin_note required with visibleWhen: record.is_admin. An insert with no acting user and without the field is refused and logged no-acting-user naming 'is_admin' (it was accepted silently at 84d2f737); an org_admin writer without the field is refused; a non-admin writer saves without it, nothing logged; the same through a second formula (needs_audit over is_admin) is refused and logged naming the chain.
  • ui/packages/core/src/evaluator/__tests__/fieldRules.test.ts: the form side of (g), in a new describe: null and a clean non-boolean hide the field, TRUE shows it.
  • packages/lint/src/validate-expressions.test.ts: a new describe with 8 tests: 4 formula-read tests (the plain warning; the chain through a reference at depth 2; label(); nothing on a field that is not required), and (the reference-read warning; nothing for the same read on a field that is not required; nothing for a read of the record's own columns; the storage.notNull warning, with the parse still accepting it). The reads-only-declared-keys meta-test tables the new reads (required, visibleWhen, storage.notNull).
  • ui/packages/app-shell/src/views/metadata-admin/inspectors/requiredVisibleWhenReference.test.ts (new, 9 tests, real analyzeRelationshipTraversals and parseCelToAst): 5 for the reference advisory, 4 for the formula advisory (a computable formula; the chain through a reference; label() and can; nothing on a field that is not required).

Acceptance notes

  • Before and after, live (zh-CN console over examples/app-crm, a project package object rws_customer, field 验证用-备注字段 required with visibleWhen: record.tier == 'vip'). Before is origin/main c81f498b, after is this branch.

    Scenario Before After
    Change a VIP record to 普通 and save (the form sends {"tier":"basic","vip_note":null}) 400 验证用-备注字段是必填项,不能清空 200, saved
    Create a 普通 record without the field 400 验证用-备注字段不能为空 201, created
    Edit 负责人备注 on a 普通 record 200 (the form sends only the changed field) 200
    Change a 普通 record to VIP without filling the field API: 200, accepted Form: the field appears with its marker and the client check 验证用-备注字段不能为空 stops the save; API PATCH {"tier":"vip"}: 400 required
    Change to VIP and fill the field in the same write (API) not measured 200

    The card's "edit an unrelated field" reading was measured on 18.5.0. On current main the edit form sends only changed fields, so that one save already passes before this PR; the clear-on-hide save and the create are the refusals that remained.

  • Other readers left as they are: the import template, the action parameter schema and the MCP field descriptions still describe such a field as required. ADR-0124 D4 allows a client hint stricter than the server, so they are listed in the amendment rather than changed.

  • Permissions are not resolved for a field visibleWhen that reads a can map beyond what the option gate already binds.

Verification

The latest fix round is on head 1ca9b694 (below, first section); the previous one on e6f0dcb4, the S4 round on 8248f9ff. Everything else on head 2b709e12 unless named.

Fix round: S6, S7 and N13 (delta contract review 6977080790)

Head 1ca9b694, one commit on e6f0dcb4. Text only: no predicate, verdict or call site moves, and the lint warning and the Studio advisory fire on exactly the same fields as before (option B, reword only). File list unchanged: the same 27 paths. No merge of origin/main: overlap-check says the branch merges cleanly.

  • S6, the lint warning (required-visible-when-formula-issue.ts). Plain formula read, 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." Unservable arm, old: "so it stays required on every record, the ones the form hides it on included." New: "so it stays required on every record. The form cannot compute it either: it shows the field and keeps it required." The module doc, the push-site comment in validate-expressions.ts, and the test's title and pin (does not recompute it becomes the formula value it computes over the record being written) follow.
  • S6, the Studio advisory (designer.field.requiredVisibleWhenFormula and ...Unservable, en and zh). The plain string now says the form computes the same formula as you edit, and that a wizard's final-submit check, or a form whose data source serves no object schema, judges the value it last read and can disagree with the server. The unservable string drops "including the ones this condition hides it on" and adds that the form cannot compute it either and shows the field, keeping it required. The module doc and function jsdoc of requiredVisibleWhenReference.ts and the comment in ObjectFieldInspector.tsx follow.
  • S7, ADR-0113. The recompute paragraph adds: "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." Both facts read at this head: gateFinalSubmit(mergedData) passes no plan to resolveFieldRuleState; useObjectFormulaPlan returns no plan when getObjectSchema is missing or its read rejects. Neither file is changed here.
  • N13, ADR-0113. The stricter-form sentence now names the third case: "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." formulaRecord.ts marks a formula with no served expression unservable; the server holds the expression.

Evidence on 1ca9b694:

  • @objectstack/lint typecheck (with check:test-typecheck) and full suite: 217 files, 9,248 tests passed, 5 skipped. The renamed pin alone, by title: 1 passed.
  • @object-ui/i18n type-check and full suite: 103 files, 1,947 passed, 13 skipped. ui requiredVisibleWhenReference.test.ts: 9 of 9 (no ui test pins the advisory text).
  • pnpm check:i18n: exit 0, 10 packages, all bundles in sync. ui check:i18n-drift: exit 0.
  • node scripts/pm/dispatch-gates.mjs --commands: 131 gates, the same set as before. 124 exit 0 on the first pass; 7 refused for missing dist (6 with exit 3, and pnpm --dir ui exec vitest run scripts/ with exit 1 because @objectstack/client had no build). After a full pnpm build (120 of 120 tasks) all 7 exit 0. --ran with exit codes: 131 run, 0 NOT-MEASURED, 0 UNRUN (a derived zero).
  • No ablation: no tested behaviour moves; the changed pin passes.
  • Full dogfood battery on 1ca9b694 (pnpm --filter @objectstack/dogfood test under the verify lock, VERDICT command-exit 0): 483 files (480 passed, 3 skipped), 4,143 tests (4,075 passed, 68 skipped), no failures.

Fix round: main merged twice, S5 and N11 (contract review 6970975755), and the form recompute

Head e6f0dcb4. File list unchanged: the same 27 paths; nothing outside them edited.

  • Merge 1, c8d5313d (main 961f4741). One conflict, packages/objectql/src/engine-update.ts, resolved as a union. Import block: main's applyFormulaPlan, planFormulaProjection and storedExpressionsReading kept beside this branch's formulaValuesFor. Bulk per-row rule call (around line 2137): main's summary-fold version kept (header / related locals, overlayRow, overlay, summaryFold?.advance(i)), with this branch's formulaValues: bulkFormulaValues added after permissions: bulkPermissions. The delta of engine-update.ts against main is again exactly this PR's four hunks (+11/-6). The merge driver deferred content/docs/references/data/object.mdx; 6c0fd9ee regenerates it from the merged spec (gen:schema && gen:docs), restoring main's action texts row.
  • Merge 2, 6c9ded43 (main 55020c33, which contains fix(form): recompute formula fields from the live inputs before judging field rules #35116). No conflicts.
  • S5, aefc8aa2 (prose and one log string, no logic change). ADR-0137's note adds: "That mark covers any read of a bare user-scope root (current_user, its ADR-0068 aliases, or a bare ctx / os read such as os.org), because the engine cannot separate the user-dependent part of such a read; the field then keeps the unconditional required it carried before this amendment." ADR-0113's parenthesis now reads "(current_user and its ADR-0068 aliases, or any bare ctx / os read such as os.org, since the engine cannot separate the user-dependent part of such a read; the result is the unconditional required)". The server log reason is now "reads the acting user or a bare ctx/os root, and this write has no acting user (a system write)"; no test pins that string (the pins match the field, the formula names and reason: 'no-acting-user').
  • N11. The USER_SCOPE_ROOTS docblock says bare-root reading is exact at the option-visibility call site and only conservative at the formula plan's (formulaValuesFor through readsUserRoot), where a formula reading only os.org is marked too. N12 stays open.
  • The form recompute, e6f0dcb4 (prose only). As described under What changes. The ADR-0113 paragraph is this PR's own unlanded text, retitled and rewritten, and the fence paragraph's back-reference now says the warning was written for that limit, since closed. The describe change regenerated field.mdx, object.mdx, migration.mdx (one line each).
  • Open question (not changed here). The lint warning on every required field whose visibleWhen reads a formula, and the Studio formula advisory (en and zh), still give "the form does not recompute it" as their reason, and the lint test pins does not recompute it. With the form recomputing, the plain warning has no reason left; only the unservable arm (hop, label(), can) still names a real divergence. Changing what fires is behaviour, so it waits for the seat's word: narrow the warning and the advisory to the unservable arm (recommended), or reword them only.

Evidence on e6f0dcb4:

  • @objectstack/objectql typecheck and full suite: 612 files, 13,835 tests passed. @objectstack/spec typecheck; full suite 853 files, 27,335 passed and 1 todo.

  • @objectstack/spec build, gen:schema, gen:docs, then check:generated: all 14 generated artifacts up to date.

  • node scripts/pm/dispatch-gates.mjs --commands on e6f0dcb4: 131 gates, the same set as on aefc8aa2. All 131 exit 0 (two first refused with exit 3, no dist for some packages; re-run after a full pnpm build, 120 of 120 tasks, both exit 0). --ran: 131 run, 0 NOT-MEASURED, 0 UNRUN.

  • Full dogfood battery: pnpm --filter @objectstack/dogfood test under the verify lock (VERDICT command-exit 0): 483 files (480 passed, 3 skipped), 4,143 tests (4,075 passed, 68 skipped).

  • overlap-check before each push: origin/main merges cleanly; fix(formula)!: a flow condition's record. / previous. read of a date field takes the date-text verdicts, so timestamp(record.DATE_FIELD) is refused as its bare name is #34935 conflicts in packages/lint/src/validate-expressions.test.ts (as before); fix(objectql): the loser of a concurrent update answers 409 again on an object with a metadata beforeUpdate hook #35165, feat(studio): the main area adapts when the Studio right slot opens #35128 and fix(audit): a search the server widens never names a column the caller may not query #34817 merge cleanly.

  • CI on e6f0dcb4: 70 check runs, 61 success, 9 skipped (the opt-in and placeholder runs), 0 failed; all eleven required contexts success.

  • Full build pnpm build (turbo): 119 of 119 tasks.

  • @objectstack/objectql full suite: 609 files, 13,699 tests passed. src/engine-required-when-shown.test.ts: 31 of 31.

  • @objectstack/lint full suite: 217 files, 9,195 tests passed.

  • ui: the inspectors/ directory, 234 files, 3,099 passed and 1 skipped; packages/core fieldRules.test.ts 59 of 59; tsc --noEmit on app-shell exit 0; eslint on the changed ui files exit 0; check:i18n-keys, check:i18n-drift, check:i18n-dead-keys, check:designer-field-key-parity exit 0.

  • @objectstack/spec: gen:schema and gen:docs re-run; the regenerated field.mdx, object.mdx, migration.mdx are in the commit.

  • node scripts/pm/dispatch-gates.mjs --commands derived 130 gates on 2b709e12 (the same set as ab10c33f): all 130 exit 0. dispatch-gates --ran: 130 run, 0 NOT-MEASURED.

  • Full dogfood battery (pnpm --filter @objectstack/dogfood test, owed for the narrowing arm): 482 files (479 passed, 3 skipped), 4,140 tests (4,072 passed, 68 skipped), exit 0, on 2b709e12 under the verify lock.

  • Tier H: ADR-0113 and ADR-0137 are amended. Not readied, not queued, no auto-merge.

Fix round for the seat's delta contract review (PASS at 84d2f737, comment 6968679220): S4 and N8

Head 8248f9ff (commits 7f14821c test, f7937161 fix, 6ae764eb prose, 8248f9ff regenerated references). File list unchanged: the same 27 paths.

  • S4, confirmed and fixed. The disproof test went first, at 7f14821c, against the unchanged code: an insert into an object with is_admin: 'org_admin' in current_user.positions (a formula) and admin_note required with visibleWhen: record.is_admin, with no acting user and without admin_note, was accepted (AssertionError: expected false to be true in the refusal helper; 1 failed, 33 passed of 34). So the formula was computed as null on the system write, the field was judged hidden, and nothing was logged, where main refused the insert and ruling item 3 counts a system write as shown.
  • The fix is the mechanism the hop, label() and can marks use. formulaValuesFor now knows whether the write has an acting user (the same test applyFormulaPlan binds current_user by), and unservableReason marks a formula that reads the acting user (readsUserRoot, the option gate's AST reader over current_user, user, ctx, os) when the write has none, and carries the mark through the read closure as it carries a hop. The answer gains noActingUser, the formulas unservable for the missing user alone, and evaluateRequiredWhenShown logs such a fault with reason: 'no-acting-user', the reason the direct spelling logs; the message names the chain (reads the formula field 'needs_audit', which reads the formula 'is_admin', which reads the acting user, and this write has none (a system write)). With an acting user nothing changes: the formula is computed for the writer.
  • Pins (group (i), 4 tests): the system-write insert is refused as required, nothing stored, logged no-acting-user naming 'is_admin'; an org_admin writer without the field is refused; a non-admin writer saves without it, nothing logged; the same through a second formula is refused and logged naming both formulas.
  • Ablations (node scripts/ablation-replace.mjs, on the committed tree; the test imports the engine from src/, so no build sits between the mutation and the run): the new mark disabled (if (false && !actingUser && readsUserRoot(...))): anchor 1 → 0, 2 of 35 red (both system-write pins); the log flag forced off (noActingUser: false): anchor 1 → 0, 2 of 35 red (the reason assertion of both). Each restore matched the HEAD blob with an empty git diff HEAD.
  • Prose (S4 and N8). Where the unservable set is listed, it now names the acting-user mark and says a can formula is computed on a write that picks a permission-gated option: the ADR-0113 amendment (scope paragraph and the formula paragraph, which also says the lint does not warn on the acting-user mark), the ADR-0137 note, the visibleWhen describe (and the three regenerated references), the formulaValues and evaluateRequiredWhenShown jsdoc, the changeset, the lint message (a sentence added when a blocked formula calls can) and its module doc, the Studio helper's doc and both Studio strings (en and zh). The lint and the Studio advisory gain no new detection: a formula reading the acting user is computed per writer on every write that has one.
  • N9 and N10 stay open, as the review accepts. N4 to N6 stay open.

Evidence on 8248f9ff:

  • src/engine-required-when-shown.test.ts: 35 of 35. @objectstack/objectql typecheck and full suite: 612 files, 13,764 tests passed. @objectstack/lint typecheck and full suite: 218 files, 9,246 tests passed. ui requiredVisibleWhenReference.test.ts 9 of 9; check:i18n-keys, check:i18n-drift, check:i18n-dead-keys, check:designer-field-key-parity exit 0.
  • @objectstack/spec build, then check:generated: check:docs stale for the describe; gen:docs regenerated field.mdx, object.mdx, migration.mdx (the describe line only); re-run: all 14 artifacts up to date.
  • node scripts/pm/dispatch-gates.mjs --commands derived 130 gates; all 130 exit 0 (three first refused with exit 3, prerequisite not met, before a full build; re-run after pnpm build 120 of 120: exit 0). --ran with exit codes: 130 run, 0 NOT-MEASURED, a derived zero.
  • Full dogfood battery, pnpm --filter @objectstack/dogfood test under the verify lock: 482 files (479 passed, 3 skipped), 4,140 tests (4,072 passed, 68 skipped), exit 0.
  • CI on 8248f9ff: 70 check runs, 61 success, 9 skipped, 0 failed.
  • overlap-check: origin/main merges cleanly; conflicts with fix(formula)!: a flow condition's record. / previous. read of a date field takes the date-text verdicts, so timestamp(record.DATE_FIELD) is refused as its bare name is #34935 (validate-expressions.test.ts) and fix(objectql)!: a predicate update judges each matched row against the parent roll-ups the rows before it move #34709 (engine-update.ts) as the claim records, whichever lands second merges main.

Ablations, third round (on 2b709e12)

Each run used node scripts/ablation-replace.mjs on the committed tree; each mutation landed (anchor 1 → 0) and each restore matched the file's HEAD blob, with an empty git status after the run. Logs in the project files (objectstack-seat3/34905-live/ablations3/).

Arm removed Mutation Red
(i) closure propagation unservableReason never follows a formula's reads 1 of 31: (h) the chain
(j) hop mark a formula with hops is not marked 1 of 31: (h) the chain
(k) label() mark a formula calling label() is not marked 1 of 31: (f) label()
(l) validator check the predicate ignores unservable 2 of 31: (h) the chain, (f) label()
(m) computed record the predicate is judged on the raw record 4 of 31: the (f) values, and the empty-operand case
(n) lint wiring the formula warning is not pushed 3 of 8 lint ADR-0113 tests
(o) lint hop mark a formula reading through a reference is not marked 1 of 8
(p) Studio mark the advisory's unservable ignores hop, label() and can 1 of 9

Ablations, second round (on d5310535)

Each run used node scripts/ablation-replace.mjs and then vitest run src/engine-required-when-shown.test.ts (26 tests). Each mutation landed (anchor 1 → 0), and each restore matched the file's HEAD blob (rule-validator.ts 39e928a0, engine-insert.ts a201a50c) with an empty git diff HEAD.

Arm removed Mutation Red
(a) hidden waiver if (now.verdict === 'hidden') continue; deleted 9 of 26
(b) reveal compliance the prior-record check always rests 4 of 26
(c) fault arm a fault treated as hidden 4 of 26
(d) deferral engine-insert.ts passes 'enforced' instead of 'deferred' 8 of 26
(e) prior read requiredWhenShown(f) dropped from fieldsNeedPrior 15 of 26
(f) formula values formulaReadsOf answers no formula read, so the predicate compares the absent formula as null (the L2 M1 defect) 4 of 26: every (f) case
(g) clean TRUE the verdict back to "anything but FALSE is shown" 1 of 26: (g) the unset boolean
(h) engine wiring the insert call site stops passing formulaValues 2 of 26: (f) the insert outside the condition, and the update case, whose setup inserts a row outside it

Round 1 (on 81b671f3, 19 tests) had (a) 5, (b) 3, (c) 3, (d) 4, (e) 10. The first try at (b) in round 1 used the bare replacement continue;, which the tool refused before running because that text already appears 44 times in the file.

Fix round for the seat's L2 (FAIL at 81b671f3)

  • M1, confirmed and fixed. The disproof test (an insert inside a formula-driven condition without the field) was accepted at 81b671f3. It now refuses, and the predicate reads computed formula values, as described under What changes.
  • S1, aligned to the form as the seat ruled. Only a clean TRUE shows the field. This is stated in the ADR-0113 rule, the ADR-0137 note, both FieldSchema describes, the jsdoc and the changeset, and pinned on both sides.
  • Nits taken: N1 (the lint refuses current_user in a field visibleWhen, stated in the ADR scope paragraph and the jsdoc), N2 (the seed loader's early warning is listed among the readers left as they are), N3 (the refusal-order change is stated in the ADR and the changeset). N4 to N6 stay open.

Fix round for the seat's delta L2 (FAIL at ab10c33f, comment 6963978999; rulings relayed 23:24Z)

  • M2, confirmed and fixed. The seat's disproof test ((h): a formula over a formula that reads through a reference) was accepted at ab10c33f. Fixed by the read closure, as the seat directed, not by the any-faulted-formula shortcut: formulaValuesFor marks every formula whose read value the write path cannot know, walking the plan in read order, and a predicate reading one counts as shown.
  • S2, the ruling-consistent pair. (a) A fault a read shares is judged on the null a read serves; the PR's own fixture with amount empty is now accepted without the field, as the form hides it. (b) A hop, label() or can with no map keeps counted-as-shown, with the new lint warning and Studio advisory beside the reference-read one. Both arms are in the ADR-0113 amendment, the ADR-0137 note and row, and the changeset.
  • S3. The prose is corrected in the amendment (a new "Known limit" paragraph, and the "the way the form shows it" sentence), the visibleWhen describe and TSDoc, the formulaValues and evaluateRequiredWhenShown jsdoc, and the changeset, which lists the edit regression as a known limit. The lint warning fires on every required field whose visibleWhen reads a formula.
  • N7 folded. One closure per bulk batch, predicate reads memoised per source, formulas computed once per record per write.
  • N4 to N6 stay open, as accepted.

Generated by Claude Code

…ired only when shown

The engine judged `required` without the field's own `visibleWhen`, so one
admin setting locked every record outside the condition. The rule validator
now judges such a field from its visibility on the write: cleanly hidden waives
it, shown applies the non-regression invariant against the prior record (a
reveal without filling is refused), and a fault counts as shown, logged.

Claude-Session: https://claude.ai/code/session_01WGufzfrHprnpf55xZtXBbx
Co-authored-by: Claude <noreply@anthropic.com>
… lift the requirement; amend ADR-0113, ADR-0137, ui ADR-0036

Lint warns on a required field's visibleWhen that reads through a reference,
and on required + visibleWhen + storage.notNull; Studio shows the reference
warning under the Visible-when editor. The records say required + visibleWhen
means required when shown, and name which server answer is canonical.

Claude-Session: https://claude.ai/code/session_01WGufzfrHprnpf55xZtXBbx
Co-authored-by: Claude <noreply@anthropic.com>
…field reads; regenerate field references

The counts-as-shown warning split the fault message on a literal newline
that had been written raw into the source, which broke the objectql build.
The lint meta-test now tables the reads the required-when-shown checks take
(`required`, `visibleWhen`, `storage.notNull`), and the generated field
references carry the amended `required` and `visibleWhen` descriptions.

Co-Authored-By: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01WGufzfrHprnpf55xZtXBbx
…ateRecord call it no longer holds

The update path now calls validateRecordInScope, so the symbol anchor on
validateRecord no longer resolves; the sentence describes the write path as
it was when the record was written.

Co-Authored-By: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01WGufzfrHprnpf55xZtXBbx
@github-actions github-actions Bot added size/xl documentation Improvements or additions to documentation protocol:data tests tooling Fix lands in tooling, not a product package — enters pm:queue only with Unblocks: or a named surface labels Nov 17, 2026
@github-actions

github-actions Bot commented Nov 17, 2026 •

Copy link
Copy Markdown
Contributor

📓 Docs Drift Check

This PR changes 3 package(s): @objectstack/lint, @objectstack/objectql, @objectstack/spec, touching 35 documentable anchor(s).

30 hand-written doc(s) name something this change touched — list omitted above 15 rows. Re-derive on the tree named below: node scripts/docs-audit/affected-docs.mjs --json 910306b632bfeb4a6d12a03d6ab489fd1a3d6128.

⛔ 17 release-owned page(s) also affected — read-only, see AGENTS.md Documentation Guardrails.

What this run could not see
  • 6 name(s) were too generic to anchor anything (single lowercase words)
  • the SDK route bridge reached 65 of 247 client-bound route-ledger rows — the other 182 have no registrar path: tail to select them, so pages documenting THEIR client methods cannot appear above, on this or any run. Of those 182: 0 are remediable by widening that discovery convention (an in-repo file declares the path; the convention did not scan it); 59 are structural — on a ledger where NOT ONE row is declared in-repo, so no discovery change reaches them at any price; 123 are undecided (no in-repo declaration, on a ledger that has other in-repo registrars — absence and an unreadable spelling are not distinguishable here). The rows themselves: node scripts/docs-audit/affected-docs.mjs --bridge-coverage
  • a page that states a rule by its inputs shares no identifier with the emitter that implements the rule, so an emitter-only diff cannot list it — not on this run and not on any run. Measured on fix(driver-sql): emit varchar(maxLength) for a text field a declared index keys on #11430: content/docs/protocol/objectql/types.mdx documents the text-family column mapping by the ObjectQL type names it maps FROM (text / textarea / html) while the diff changed createColumn; it went unlisted, and it was the page that diff falsified, in four places. No shared token exists to detect this on, so a rule your change carries has to be re-read by hand in the pages that restate it.
  • a key NAME is not a key, so the hand re-read the line above prescribes can land on the wrong schema. The same spelling is authorable on one governed type and a [REMOVED] tombstone on another for each of active, aria, joins, objects, template, tools and version (censused on [finding] tools is a key on BOTH AgentSchema (tombstoned, dead) and SkillSchema (live, cloud-attested), so a name-based search attributes skill examples to the agent key — it produced a false stop-the-line alarm on PR #19059 #19093 over the liveness ledger's governed types, top-level keys); nothing in a search result distinguishes the two, so a grep hit on a LIVE example reads as evidence about the DEAD key. Measured on fix(spec): the agent.tools liveness row says dead — it claimed live on a key the schema tombstoned #19059: content/docs/ai/agents.mdx was reported as contradicting the agent.tools tombstone over its tools: example at :161, which is inside the defineSkill({ block opened at :155 — the page was already correct. Settle ownership by PARSING the value against both schemas, never by the name: that literal PASSES SkillSchema, and as an AgentSchema it FAILS at tools with the tombstone prescription. ⛔ These names are not the whole class — a key retired through a .strict() guidance map leaves no tombstone in the walked shape and none of them here (tool.category, live as AIToolDefinition.category).

Coarse fallback — 175 page(s) merely mention a changed package (the pre-#9192 predicate, kept for the deliberately-wide backstop): node scripts/docs-audit/affected-docs.mjs --json 910306b632bfeb4a6d12a03d6ab489fd1a3d6128 → packageMentionDocs.

Which tree this was computed on

This run read content/docs from 7553b2bd57864ede56391642fdc9e3c60603f80b — the merge of head 1ca9b694b54d06a376b2669d7c0d13c724679c38 into base 910306b632bfeb4a6d12a03d6ab489fd1a3d6128, which is what actions/checkout gives a pull_request run. Not the PR head.

A worktree cut from an older main holds a different content/docs, so re-deriving there can legitimately return a different list — that is a different tree, not a wrong row. To answer on the same tree:

# while this PR is open — GitHub drops the merge commit once it closes
git fetch origin 7553b2bd57864ede56391642fdc9e3c60603f80b && git checkout 7553b2bd57864ede56391642fdc9e3c60603f80b
# afterwards, rebuild it from the two parents, which stay fetchable
git fetch origin 910306b632bfeb4a6d12a03d6ab489fd1a3d6128 1ca9b694b54d06a376b2669d7c0d13c724679c38 && git checkout -B drift-repro 910306b632bfeb4a6d12a03d6ab489fd1a3d6128 && git merge --no-ff 1ca9b694b54d06a376b2669d7c0d13c724679c38

node scripts/docs-audit/affected-docs.mjs --json 910306b632bfeb4a6d12a03d6ab489fd1a3d6128

⚠️ That checkout carried uncommitted changes, so the commit above does not fully identify what was read.

Advisory only, and a precision-first one (#9192): a page is listed because it names a
symbol, wire route or SDK method this diff touched — not because it mentions a changed
package. Each row says which anchor put it there, so a wrong row is reportable rather than
merely annoying. To re-verify, run the docs-accuracy-audit workflow scoped to these files:
node scripts/docs-audit/affected-docs.mjs 910306b632bfeb4a6d12a03d6ab489fd1a3d6128 → pass the list as
args.docs, on the commit named under Which tree this was computed on.

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#3 · os-support-ai · session_01WGufzgh1zkZzDXL36ckWAG

Contract-review-claim: session_01WGufzgh1zkZzDXL36ckWAG · head 81b671f31154b4c4c03f4cc19d7f2524cca7e4a4 · 2026-11-17T20:52Z

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#3 · os-support-ai · session_01WGufzgQsdnyS4QdR8stjDa

L1 review (L1-d) · 2026-11-17T20:54Z

L1: REWORK
Head-sha: 81b671f31154b4c4c03f4cc19d7f2524cca7e4a4

Read against maintainer ruling record 6956761249 (route A), the claim 6957098185 and the os-dev-report 6960644971 on #34905.

  • Size: merge base c81f498b, 24 files, +1065/-35.
  • Tier H: check-governed-merges --branch pr-34978 reports 4 governed ADR paths (0020, 0113, 0137, ui 0036) and 1100 lines.
  • CI at this head: still running (12 success, 9 skipped, 26 in progress, 0 failed).

The design and the code hold. M1 needs a test-evidence push, or ablation evidence posted against this head. M2 is paper.

What holds

  • The rule (evaluateRequiredWhenShown). It matches ruling items 1 to 3.
    • Hidden means the predicate is cleanly false on the merged record, and the field is waived.
    • Shown means the requiredWhen non-regression pair, with visibleWhen as the condition: refused iff the merged record is empty and the prior record complied (hidden there, or filled). So a reveal without filling is refused, and a row already shown and empty rests. required_cleared is used only when a value the row held is emptied.
    • Fault counts as shown and falls back to exactly the pre-amendment arms: an insert must provide the field, and an update may not clear it. It is never the D2 rule_violation. It is logged at warn with predicate-fault or no-acting-user.
    • A non-boolean result counts as shown, so only a clean false waives.
  • The deferral is closed.
    • validateRecordInScope(…, 'deferred') skips only skipRequired (4th arg), not the constraints, and only for requiredWhenShown fields (required, visibleWhen, not readonly, not autonumber).
    • All three callers (insert, the by-id and bulk update judgeStrippedPayload, and validate()) run evaluateValidationRules unconditionally on the same write.
    • fieldsNeedPrior counts requiredWhenShown, so hasFieldRules cannot early-return past it. needsPriorRecord sends such an object down the per-row bulk branch with previous: row, so the no-prior bulk branch is unreachable for it.
    • Every other caller keeps the 'enforced' default, which is the counts-as-shown answer.
    • Plain required with no visibleWhen keeps D1's no-prior-read path, and a CONTROL pins this.
  • Scope. It binds record, previous, current_user (with the option gate's permission map) and parent (hasParentScopedRequiredWhen now counts the pair). It reads only the object field's own visibleWhen, and the amendment says so ([Decision] Should the server-side required check read a form section visibleWhen predicate? (objectui#6237 semantic 1, cross-repo half) #13252).
  • Author time.
    • Two warnings are added, never refusals: a required field's visibleWhen read through a reference, and the pair plus storage.notNull. They are warnings, not a parse refusal, because of the protocol-17 conversion stamps. This is right.
    • The Studio inspector shows the reference-read warning, and it reuses analyzeRelationshipTraversals.
  • Records.
    • The ADR-0113 D1 and D5 notes and the amendment section cover the ruling, the three arms, the scope, the narrowed fence, what is out of scope, and which of the three server answers is canonical.
    • The ADR-0137 fault-table row and the ui ADR-0036 edits are in place, and the field.zod.ts describes and the regenerated references follow.
  • Changeset. It carries !, a BREAKING paragraph for flows, bulk updates, imports and PATCHes, Clause-②: yes (narrowing + widening …) and Metadata-protocol: semantic, at minor. The fix line is in the body.
  • Live. The before-and-after table over examples/app-crm shows the card's two remaining refusals (the clear-on-hide save and the create) now saving, and the reveal PATCH now refused.
  • Dogfood. The full dogfood battery passed on this exact head, and dispatch-gates --ran reports 129 of 129.

Must-fix

  • M1: no ablation evidence. The PR body and the report list 19 engine tests, 4 lint tests and 5 inspector tests, but no ablations. For a two-sided contract change the house bar is that each arm is shown red when its code is removed and restored by blob. At minimum, through scripts/ablation-replace.mjs:
    • (a) the hidden waiver: if (now.verdict === 'hidden') continue; removed, so the (a) cases go red;
    • (b) the reveal refusal: the prior-record compliance check made to always rest, so the reveal cases go red;
    • (c) the fault arm: a fault treated as hidden, so the (c) and (d) system-write cases go red;
    • (d) a 'deferred' caller reverted to 'enforced' (insert), so the waiver cases go red;
    • (e) the requiredWhenShown(f) term dropped from fieldsNeedPrior, so the prior-read CONTROL and the reveal cases go red.
    • Post the counts and the restore proofs in the PR body. A test-only push is not needed if the ablations run against this head.
  • M2 (paper): two records.

Should-fix

None.

Notes (for the seat's L2)

  • N1: The lint refuses every root except record/previous/parent in a field visibleWhen, and that includes current_user (the lint comment says so). So ruling item 3's per-writer judgement reaches only older stored metadata. The PR body says this, and pin (d) exercises it through the engine directly. That is consistent, but it is worth one line in the seat record.
  • N2: The required-when-shown refusal now comes from evaluateValidationRules. On a non-system write that runs after assertReferencesResolve, and on insert it is a second throw rather than part of the record validator's aggregated ValidationError. So a write with several faults may name fewer of them in one 400, or answer reference_not_found first. The wire code required and the sentences are unchanged.
  • N3: @object-ui/app-shell and @object-ui/i18n are bumped minor for a warning and two keys, following the changeset's semantic level. The adr-0087: not-required (no-migration-prescription) marker on a semantic kind is the seat L2's call to confirm.

Landing: Tier H. After M1 and M2, L1-d gives a same-head or delta ACCEPT, then the seat L2 at CONTRACT_REVIEW_TIER, a seat record, os-zhuang's approval, and fully green CI on the final head. Do not ready, queue or arm it before then.

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#3 · os-support-ai · session_01WGufzgQsdnyS4QdR8stjDa

L1 review (L1-d) · 2026-11-17T21:08Z

L1: ACCEPT
Head-sha: 81b671f31154b4c4c03f4cc19d7f2524cca7e4a4

This is a same-head ACCEPT on the REWORK in 6960730530. The head is unchanged.

Must-fix

None. Both items are closed.

  • M1 (ablations). The PR body's new "Ablations" section has five arms, all run against this head through ablation-replace. I read the logs in the seat's project files (34905-live/ablations/a..e.log). Each mutation landed (anchor 1 → 0), each went red, and each restore was checked against the HEAD blob with an empty git diff HEAD:
    • (a) the hidden waiver: 5 of 19 red;
    • (b) the reveal compliance check: 3 of 19 red;
    • (c) fault treated as hidden: 3 of 19 red;
    • (d) the insert caller set to 'enforced': 4 of 19 red;
    • (e) the requiredWhenShown term dropped from fieldsNeedPrior: 10 of 19 red, the prior-read CONTROL included.
  • M2 (records).

Should-fix

None.

Notes

N1 to N3 in 6960730530 stand for the seat's L2: per-writer judgement reaches only older metadata, the refusal order and the separate throw, and the ui minor bumps with the adr-0087 marker on a semantic kind.

Landing: Tier H. Next come the seat's L2 at CONTRACT_REVIEW_TIER (running on this head), a seat record, os-zhuang's approval, and fully green CI on the final head. Do not ready, queue or arm it before then. A later push owes a delta read.

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#3 · os-support-ai · session_01WGufzgh1zkZzDXL36ckWAG

Contract review

Served-tier: CONTRACT_REVIEW_TIER
Head-sha: 81b671f31154b4c4c03f4cc19d7f2524cca7e4a4
Local-runs: none
Scope: packages/spec/src/data/field.zod.ts, 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, ui/docs/adr/0036-field-conditional-rules.md + packages/objectql/src/validation/rule-validator.ts, packages/objectql/src/validation/record-validator.ts, packages/objectql/src/engine-insert.ts, packages/objectql/src/engine-update.ts, packages/objectql/src/engine-validate.ts, packages/lint/src/validate-expressions.ts, ui/packages/app-shell/src/views/metadata-admin/inspectors/requiredVisibleWhenReference.ts, ui/packages/app-shell/src/views/metadata-admin/inspectors/ObjectFieldInspector.tsx, scripts/adr-anchors/packages__objectql__src__validation__rule-validator.ts.json
Security-touching: yes

Inputs read: card #34905 body and all six comments (triage 6953369705, ruling 6956761249, claim 6957098185, dev report 6960644971, claim amendment 6960755000, item-4 stamp 6960819071); PR #34978 body (ablation table included), its three comments (L1-d round 1 6960730530 among them), its 24-file list and the net diff from merge base c81f498b to the head; the check-runs on the head. Code outside the diff was read at the head, never reviewed. Nothing was built or run.

The Security-touching: yes is meant: the amended ADR-0113 and ui ADR-0036 hunks teach that the acting user and the permission map decide a write requirement, and that a field visibleWhen gives no security guarantee. The PR is Tier H either way.

① Derived judgments

Check-runs on the head, settled at 21:34Z after polling from 20:59Z: 74 runs, 63 success, 11 skipped, 0 failed, 0 pending. The skipped runs are the opt-in and matrix-placeholder ones (Auto Label, Check PR Size, the Dogfood Regression Gate shard template, Temporal Conformance, Dogfood Verify CLI, UI Published Artifacts, Schedule gate, Packed-tarball smoke, Borrowed queue verdict, Queue verdict, 18.x upgrade harness). Every derived gate family that ran is green, Check Changeset, Spec property liveness, Governed Surface Queue Guard, Test Core 10 of 10 and Test UI 16 of 16 included.

Accept-set changes the diff implies, read in evaluateRequiredWhenShown and the three 'deferred' call sites:

  • Narrowing, right. Exactly one family of writes accepted before is now refused: an update whose merged record the predicate shows, with the field empty on the merged record, where the prior record complied (the field was hidden there, or held a value). That covers the by-id PATCH, the bulk update (per row, one failing row refuses the batch and the message names the record id), and flows and imports, which reach the same engine door. The refusal is the required field error and names the field and its label. It does not name the condition (N4).
  • Narrowing, incidental. validate() in update mode with no stored row judges the patch alone, so a patch that sets the condition without the field is refused even where the stored row holds a value. This is the arm requiredWhen already has (N5).
  • Widening, right. An insert the predicate cleanly hides no longer needs the field. A clear of the field on a write whose merged record is hidden is accepted (the form's clear-on-hide). An explicit null onto a row already shown and empty is accepted (the exact rule, where plain required keeps the over-approximation). The changeset names all three.
  • Widening, wrong: M1 below. A predicate that reads a formula field is judged hidden on every write.
  • Unchanged, right. Plain required with no visibleWhen, a readonly field and an autonumber keep the old path. fieldsNeedPrior counts only a field with both keys, so plain required still costs no prior read. Every caller of validateRecord and validateRecordInScope outside the three engine sites keeps the 'enforced' default.
  • The deferral is closed. 'deferred' reaches only validateOne's skipRequired argument, never the shape or constraint arms. All three call sites run evaluateValidationRules on the same write with no early return between, and hasFieldRules is true for such an object, so the pass cannot be skipped.

Partial updates against the stored row, with predicate record.tier == 'vip':

PATCH touches Stored row Answer
only the condition, moving in hidden before, field empty refused required
only the condition, moving in field filled accepted
only the condition, moving out any accepted
only the field, cleared shown, held a value refused, required_cleared sentence
only the field, cleared shown, already empty accepted
only the field, cleared hidden accepted
neither shown and empty rests, accepted
neither hidden accepted

Imports, bulk, seed and system writes: no context skips the rule. A system write with a record-only predicate is judged like any other. With a predicate that reads the acting user and no user bound it takes the fault arm (shown, logged no-acting-user). That matches the amendment's "a flow, a bulk update, an import or an API PATCH alike".

Public surface: no schema key, enum member or export is added or removed in @objectstack/spec. Two describe strings change. @objectstack/lint gains two warnings and no rule id. requiredWhenShown is a new export of the module-internal record-validator.ts.

② Semver level

Clause-②: yes (narrowing). The PR and changeset line reads yes (narrowing + widening of the required write contract). readArmToken takes the first token inside the parenthetical, so it reads as the narrowing arm, which is the house spelling for a diff that widens and narrows. Right.

Metadata-protocol: semantic is right: nothing a metadata author can write is added, refused or removed, and the meaning of required beside visibleWhen changes. The two lint additions are warnings, so the kind is not narrowed.

Level minor on all five packages is right. AGENTS.md puts a kind at minor at least on every package the diff moves, and the diff moves @object-ui/app-shell and @object-ui/i18n (L1-d N3, first half). The changeset carries the !, the BREAKING paragraph, the one-line fix ("fill the field in the same write") and both declaration lines.

The adr-0087: not-required (no-migration-prescription) marker is right on this kind (L1-d N3, second half). The gate refuses that category only beside Metadata-protocol: narrowed; its own self-test NP-G3 keeps it for semantic. No stored metadata is rewritten, and Check Changeset is green on the head.

③ Boundary flags

  • Ruling item 4, narrowed. Stamped on the card (6960819071) and named in the PR body and the ADR-0113 amendment. Read in validate-expressions.ts: the four-slot loop pushes the FIELD_RULE_BOUND_ROOTS verdict at error for every field visibleWhen, so a weaker warning for features, app and page would add nothing. Answered.
  • L1-d N1. That same fence refuses current_user too, so the per-writer judgement of ruling item 3 reaches only stored legacy metadata; the binding is still correct for it, and test group (d) pins it through the engine. The lint comment says so. The ADR's scope paragraph and the evaluateRequiredWhenShown jsdoc name only features, app and page as fenced (N1).
  • L1-d N2. A caller's observable error does change for a multi-fault write, and only there. The required refusal for such a field moved from the record walk (one aggregated ValidationError, before the reference check, and on update before the beforeUpdate chain) to evaluateValidationRules (after the hooks, the strips, the currency check and, on a non-system write, the reference check). So a write with a second fault names fewer errors in one 400 or answers reference_not_found first, and a beforeUpdate hook now runs before the refusal and may itself fill the field. The wire code and both sentences are unchanged for a single-fault write (N3).
  • ADR-0020, outside the first claim. Amended into the claim (6960755000). Judged in ④.
  • Dev deviations. No new rule id, the lint meta-test's storage read surface, and the readers left unchanged (import template, action parameter schema, MCP descriptions) are listed in the amendment. One reader is not listed (N2).
  • Permissions. The PR body flags that the permission map is resolved only when the write picks a can-gated option. Read in stdlib.ts: can with no map throws, so such a predicate takes the fault arm and stays required. Safe direction. Answered.
  • SQL push-down. One new row materialisation: a bulk update on an object with such a field now reads its matched rows (needsPriorRecord turns rulesNeedRows on) where it used to be one pushed-down statement. The reason is given in the code, the ADR and the changeset: the reveal refusal compares each row with its prior state, per row, on the path requiredWhen already uses, through the one memoised readPriorRows read. No in-app join is added. The by-id path already read the prior row. Not a finding.
  • open_questions: the dev report carries none.

④ Design judgment

M1 (must-fix) — a required field whose visibleWhen reads a formula field is never required by the server. Read, not run.

  • A formula field is computed on read and is not on the write path. rule-validator.ts says so itself ("a formula field IS computed on read from a plan ... and never stored from the write payload"). The insert row is the payload plus defaults, and the prior row comes from driver.findOne cut to declared columns (readUpdatePriorRow).
  • materializeDeclaredFields then sets the absent formula key to null on the merged record, and cel-engine.ts registers null == T as a clean false.
  • So visibleWhen: record.risk_level == 'high', with risk_level a formula, is cleanly FALSE on every insert and every update. The verdict is hidden, the requirement is waived, nothing is logged, and neither objectstack validate nor Studio warns.
  • The form holds the computed value on an edit, shows the field and marks it required. An API PATCH, a flow or an import that leaves the field empty on such a row is accepted, and the transition gate never fires.
  • Before this PR the field was required on every insert. This is a required value skipped on a path that shows it, the one thing the widening must not do, and it takes the opposite direction from the reference read, which faults and counts as shown.
  • The fix needs a ruling-consistent direction: count a read of a field the write path does not hold as a fault (shown, logged), with a warning beside the reference-read one, in lint, Studio, the ADR and the describe.
  • The cheapest disproof is one engine test: a required field, visibleWhen reading a formula field by equality, an insert inside the condition without the field. If it is refused, M1 is withdrawn.

S1 (should-fix) — a clean non-boolean verdict is unassigned in the contract, and the server and the form assign it in opposite directions.

  • evaluateRequiredWhenShown reads res.value === false ? 'hidden' : 'shown', on the merged and on the prior record.
  • The form reads res.value === true as visible (evalFieldPredicate in ui/packages/core/src/evaluator/fieldRules.ts). The requiredWhen loop also holds its condition only on === true, and the D1 note says such a field takes its visibleWhen "exactly as requiredWhen takes its predicate".
  • visibleWhen: record.is_vip over a boolean that is null (coerceBooleanFields keeps a nullable boolean null) is hidden in the form and counted as shown on the server. An insert that leaves the flag unset is refused for a field the form hides, which is the card's defect for the bare-boolean predicate, and nothing is logged because it is not a fault.
  • The ADR-0113 rule (items 1 to 3), both field.zod.ts describes and the ADR-0137 row name three cases: FALSE, TRUE and cannot evaluate. L1-d recorded the code's choice as holding; the contract text does not state it.
  • Fix either way: state the fourth case in the amendment, the describes and the jsdoc and log it like a fault, or align the server with the form. The first keeps the ruling's "cleanly false" wording.

Per hits file:

  • packages/spec/src/data/field.zod.ts. The required and visibleWhen describes agree with the engine sentence by sentence for a boolean predicate over stored columns: hidden waives, a reveal left empty is refused, unevaluable counts as shown, a reference read cannot be evaluated. "Reads the record's own columns" is where M1 sits, and "where it is FALSE" is where S1 sits. No schema shape changes.
  • docs/adr/0113-...md. The D1 and D5 notes and the amendment match the first consumer on the three arms, the scope roots, the narrowed fence, the out-of-scope predicates and the canonical-answer paragraph. The narrowing is named for flows, bulk, imports and PATCHes. Open against it: M1, S1, N1, N2.
  • docs/adr/0137-...md. The new row matches the fault arm: counted as shown, the pre-amendment required exactly (insert must provide, update may not clear), a warn naming the field and the fault with predicate-fault or no-acting-user, never the D2 refusal. The requiredWhen arm above it is untouched in the diff.
  • ui/docs/adr/0036-...md. The table row, the amendment note and the two bullets agree with the server. The form's own behaviour is unchanged by this PR: a shown required field is still required on every save in the form, stricter than the server's rest rule, which ADR-0124 D4 allows.
  • docs/adr/0020-...md. Not purely an anchor: the link drops the #validateRecord symbol, "calls" becomes "called", and "when this record was written" is added. No decision text moves and the historical reasoning stands. Accepted.

Per implementing file:

  • rule-validator.ts. Agrees with the amendment on all three arms and with the test file's 19 cases; the ablation table shows each arm red when removed. hasParentScopedRequiredWhen now counts the pair, so parent is bound on insert, by-id and bulk. A prior verdict that faults counts as shown there too, so such a row rests, which is the old answer. Open: M1, S1.
  • record-validator.ts, engine-insert.ts, engine-update.ts, engine-validate.ts. Agree. The two 'only' scope calls in engine-update.ts judge readonly values alone and need no change.
  • validate-expressions.ts. The two warnings agree with the amendment and reuse refuseFieldTraversal with a severity argument. No formula-read warning (M1).
  • Studio helper and inspector. Agree with the lint for record and previous. The lint also judges parent on an object with one master, and the helper does not (N6).
  • The anchor file. Names ADR-0113 and states the rule as the code has it.

Nits:

  • N1 (nit): the ADR-0113 scope paragraph and the evaluateRequiredWhenShown jsdoc read as if a role-gated required field can be authored today; the lint refuses current_user in a field visibleWhen. One clause would say so.
  • N2 (nit): seed-loader.ts requiredOnInsertByObject calls itself a mirror of the insert-time required predicate "rather than approximating it". For a field with both keys it is now an approximation (an early warning only), and the amendment's list of readers left as they are omits it.
  • N3 (nit): the refusal-order change of L1-d N2 is stated nowhere in the changeset or the ADR.
  • N4 (nit): the new refusal names the field, not the condition. A caller whose PATCH was accepted on 18.5.0 gets the plain required sentence with no word that the field's visibleWhen now applies.
  • N5 (nit): the validate() update-mode preview with no stored row refuses a patch that sets the condition without the field, whatever the stored row holds.
  • N6 (nit): the Studio helper reads record and previous and leaves parent to the lint.

Open on this head: M1 and S1. Each earns a delta review of its fix.

Implemented-by: claude/project-thread-9ubqgj
Reviewed-by: session_01WGufzgh1zkZzDXL36ckWAG

VERDICT: FAIL

…la values, and only a clean TRUE shows it

A formula field is computed on read and never on the write path, so a
visibleWhen reading one compared null and waived the requirement on every
write. The engine now computes the object's formulas over the merged and
the prior record with the read path's plan before it evaluates the
predicate; a formula that cannot be computed there makes the predicate a
fault, which counts as shown.

A clean verdict that is not TRUE (FALSE, or null such as an unset boolean)
now hides the field, as the form reads it and as requiredWhen holds its
condition. ADR-0113, ADR-0137, the FieldSchema describes and the changeset
state both, and the refusal-order change and the seed loader's early
warning are recorded.

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

Copy link
Copy Markdown
Contributor Author

repo:objectstack#3 · os-support-ai · session_01WGufzfrHprnpf55xZtXBbx

CI note on head ab10c33f: Test Core (5/10) failed on one lint test, validate-expressions.flow-null-guards.test.ts › "⭐ LIT — on each ownership tier os build judges exactly the injected columns the tier carries". It timed out at 5,440 ms against the 5,000 ms default. This fix round changes nothing under packages/lint (the diff from 81b671f3 is objectql, spec, ADRs, the changeset and one ui core test). The same test passed in CI on 81b671f3 and passes locally on this head. The failed jobs were re-run once (attempt 2); if it fails again I will look at the test's own timing rather than re-run.


Generated by Claude Code

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#3 · os-support-ai · session_01WGufzgh1zkZzDXL36ckWAG

Contract-review-claim: session_01WGufzgh1zkZzDXL36ckWAG · head ab10c33f3a54c080936af8aae47258a7144e49b0 · 2026-11-17T23:15Z

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#3 · os-support-ai · session_01WGufzgQsdnyS4QdR8stjDa

L1 delta review (L1-d) · 2026-11-17T23:16Z

L1: ACCEPT
Head-sha: ab10c33f3a54c080936af8aae47258a7144e49b0

This is a delta read from 81b671f3, my last ACCEPT, through the fix round for the seat's contract-review FAIL (6961705368). The history is linear: d5310535 holds the code and contract text, and ab10c33f regenerates the field, object and migration reference docs.

Must-fix

None.

Should-fix

None.

Notes

  • L2 M1 is fixed in a direction safer than the one the review sketched.
    • The review proposed counting a formula read as a fault. The fix instead computes the object's formulas over the merged record and the prior record with the read path's own plan (formulaValuesFor, through planFormulaProjection and applyFormulaPlan) before it evaluates the predicate. The predicate therefore sees what the form shows.
    • A formula that cannot be computed is a fault, which counts as shown and is logged. So is any call site that passes no formulaValues. A missed wiring therefore lands on "required", never on a silent waiver.
    • formulaReadsOf uses the platform's member reader (analyzeRelationshipTraversals) over record and previous. If it cannot name the reads, it assumes every formula is read.
    • All four rule call sites pass formulaValues: insert, the by-id update, both bulk-update arms, and validate().
    • The review's disproof test is now group (f) "an INSERT inside the condition without the field is refused". It was accepted at 81b671f3 and is refused now.
    • Whether to compute rather than fault is a contract choice, and the seat's L2 delta reads it. It agrees with the amended ADR-0113 paragraph and the visibleWhen describe ("with formula fields computed as a read computes them").
  • L2 S1 is aligned to the seat ruling. res.value === true ? 'shown' : 'hidden'. It is stated in the ADR-0113 rule item 1, the ADR-0137 note, both field.zod.ts describes and the jsdoc. It is pinned server-side in (g) (an unset boolean hides, TRUE shows) and form-side in fieldRules.test.ts.
  • N1 to N3 are taken as prose: the lint refuses current_user, the seed loader is now an approximation, and the refusal-order paragraph is written.
  • Ablations: 8 arms on d5310535, each red and restored by blob. The logs are in the seat's project files, in 34905-live/ablations2/. The new arms are (f) formula values (4 red), (g) clean TRUE (1 red) and (h) insert wiring (2 red).
    • The bulk and validate() wiring have no arm of their own. Removing either one falls to the fault arm (shown), not to a waiver, and (f)'s dry-run case covers validate().
  • Perf, a nit. In the bulk loop, formulaValuesFor(...) is called per row, so the lazily built plan is rebuilt per row when a predicate reads a formula. Nothing is built when no predicate reads one. If it ever shows up in a profile, hoisting the closure out of the row loop is the fix.
  • CI on this exact head: 60 success, 11 skipped, 2 in progress. Test Core 5/10's earlier lint timeout (5,440 ms against 5,000 ms, in a file this round does not touch) was re-run once, and no failure is listed now.

Landing: Tier H. The seat's L2 delta review of this fix round comes next, then os-zhuang's approval, then landing (o3-G). Never ready, queue or arm before that approval. A later push owes a delta read.

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#3 · os-support-ai · session_01WGufzgh1zkZzDXL36ckWAG

Contract review

Served-tier: CONTRACT_REVIEW_TIER
Head-sha: ab10c33f3a54c080936af8aae47258a7144e49b0
Local-runs: none
Scope: packages/spec/src/data/field.zod.ts, 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, ui/docs/adr/0036-field-conditional-rules.md + packages/objectql/src/validation/rule-validator.ts, packages/objectql/src/engine-top-level.ts, packages/objectql/src/engine-insert.ts, packages/objectql/src/engine-update.ts, packages/objectql/src/engine-validate.ts, packages/objectql/src/validation/record-validator.ts, packages/lint/src/validate-expressions.ts, ui/packages/app-shell/src/views/metadata-admin/inspectors/requiredVisibleWhenReference.ts, ui/packages/app-shell/src/views/metadata-admin/inspectors/ObjectFieldInspector.tsx, scripts/adr-anchors/packages__objectql__src__validation__rule-validator.ts.json
Security-touching: yes

This is a delta of the FAIL record 6961705368 (head 81b671f3). It covers head ab10c33f only: the two commits on top, d5310535ec (the fix) and ab10c33f3a (regenerated field references), 14 files. Everything the earlier record judged and this delta does not touch stands as judged there.

Inputs read: card #34905 body and its six comments (none newer than 6960819071); PR #34978 body at this head, its comments (the earlier record, the CI note 6963669215 and the review claim 6963826224 included), its 26-file list, the net diff from merge base c81f498b and the delta from 81b671f3; the check-runs on the head. Code outside the diff was read at the head, never reviewed. Nothing was built or run.

Security-touching: yes is meant, as before: the ADR-0113 and ui ADR-0036 hunks teach that the acting user and the permission map decide a write requirement.

Verdict in short: FAIL. S1 is closed. M1 is closed for a predicate that reads a formula field directly, at every write door. Three findings are open on this head, all in the formula arm the fix added: M2 (a formula read through another formula is still waived silently), S2 (the fault default requires a field the form hides, for a formula a read serves as null, and there is no author-time warning) and S3 (the form does not recompute formulas, so "the value the form shows" is not true for a create or for an edit of the formula's inputs).

① Derived judgments

Check-runs on the head, read at 23:21Z: 74 runs, 63 success, 11 skipped, 0 failed, 0 pending. The Test Core (5/10) timeout named in the brief was re-run and is green (completed 23:19Z), and the Test Core aggregate is green. Check Changeset, Spec property liveness, Governed Surface Queue Guard, Test Core 10 of 10 and Test UI 16 of 16 are green. The 11 skipped runs are the same opt-in and placeholder ones as on 81b671f3.

Accept-set changes the delta implies, against 81b671f3:

  • Narrowing, right (closes M1). A predicate that reads a formula field directly is judged on the computed value. An insert inside the condition without the field is refused again (main refused it too). An update that moves the computed value into the condition without the field is refused, which is new against main and belongs to the declared narrowing family. formulaReadsOf finds the read in every member spelling (., .?, ['x'], [?'x']) through the platform's one member reader, on record and previous, and falls back to "reads every formula" when the predicate cannot be analysed.
  • Widening, right (closes S1). A clean verdict that is not TRUE (FALSE, null, any non-boolean) now hides the field and waives the requirement. 81b671f3 counted it as shown.
  • Fault, formula. A formula the predicate reads directly that faults on the write path counts as shown. A caller that passes no formulaValues gets the same answer. This is never stricter than main, which required the field on every insert. It is stricter than the form in the cases under S2.
  • Still wrong: M2 below. A formula read through another formula.
  • Unchanged. formulaValues is read only by evaluateRequiredWhenShown. The requiredWhen loop, the option gate, the readonly strip and the record walk do not see it. An object with no formula gets undefined and pays one field-name filter per row.

Write doors named in the earlier record, each read at the head: insert (engine-insert.ts), by-id update, bulk update per row and the bulk no-rows branch (engine-update.ts), and validate() (engine-validate.ts) all pass formulaValuesFor. There is no other caller of evaluateValidationRules in the tree. Flows and imports reach the same doors.

Public surface: no export of @objectstack/spec moves. Two describe strings change again. formulaValuesFor is a new module-internal export of engine-top-level.ts, and EvaluateRulesOptions gains the optional formulaValues.

② Semver level

Clause-②: yes (narrowing). The PR body and the changeset keep yes (narrowing + widening of the required write contract), which reads as the narrowing arm. Still right: the delta adds one refusal inside the declared family (the formula-driven reveal) and one widening (S1).

Metadata-protocol: semantic is still right. No authorable key or value is added, refused or removed, and the lint is untouched by the delta.

Level minor on the same five packages is still right. The only ui file in the delta is a test in @object-ui/core, which publishes nothing. The changeset gained the non-TRUE wording, the formula sentence and the refusal-order paragraph, and Check Changeset is green on the head.

③ Boundary flags

  • M1 ruling (disproof first, then compute). Followed. The PR body reports the disproof insert accepted at 81b671f3 and refused now, and ablation arms (f) and (h) go red when the formula read or the insert wiring is removed. Read in the code: it holds for a direct read. See M2 for the indirect one.
  • S1 ruling (align to the form). Followed, see ④.
  • Direction of the fault default. Asked in the brief. Counted as shown is the right default where the write path cannot know the value a read would serve (a hop, label(), can with no map). It is the wrong default where a read serves null for the same fault, because the form then hides the field and the server requires it. S2.
  • Cost of computing formulas at write time. No I/O is added: no hop is resolved, no label map is built, no row is read. Not a SQL push-down finding. The compute cost is N7.
  • Permissions. A formula that calls can gets the option gate's map, which is resolved only when a row picks a can-gated option. Without it the formula faults and the field stays required. Safe direction, and inside S2's second arm.
  • parent. A predicate that reads a formula field of the master through parent is not covered by formulaReadsOf (it reads record and previous). Whether the resolved header carries the master's formula values was not read. The binding is shared with requiredWhen and predates this PR, so it is named here and not graded.
  • Dev deviations and open_questions. None new. N4 to N6 are declared open in the PR body.

④ Design judgment

M1: closed, for a direct read. S1: closed.

M2 (must-fix) — a formula the predicate reads through another formula is still waived silently when the inner one cannot be computed on the write path. Read, not run.

  • applyFormulaPlan sets a formula that faults to null, reports it to the sink and carries on. A later formula that reads it is evaluated over that null, and evaluates cleanly if it only compares it.
  • evaluateRequiredWhenShown counts a fault only for the formulas the predicate itself names: the faulted list is filtered from formulas, and formulas is formulaReadsOf(pred, fields).
  • So with tier_name: record.account.tier (a hop, which this path never resolves), risk: record.tier_name == 'gold' ? 'high' : 'low' and visibleWhen: record.risk == 'high': tier_name faults and reads null, risk computes cleanly to 'low', faulted holds tier_name only, and the verdict is hidden. Nothing is logged, because the sink is a local set.
  • A read resolves the hop, serves risk = 'high', and the form shows the field and marks it required. An API insert, a flow or an import inside the condition without the field is accepted. The same holds for an inner formula that calls label() or can.
  • This is M1's defect one level down, and it contradicts the amendment's own sentence: "A formula that cannot be computed there (it faults, reads through a reference, or calls label()) makes the predicate a fault".
  • Fix: count the fault of any formula in the read closure of the formulas the predicate names (the plan already has that closure in orderFormulaPlan), or, simpler and safe, any faulted formula on the object.
  • Cheapest disproof: one engine test with the three fields above, an insert inside the condition without the field. If it is refused, M2 is withdrawn.

S2 (should-fix) — for a formula that faults, the server requires a field the form hides, and nothing warns the author. Read, not run. Two arms.

  • A fault the read shares. A formula over an empty operand faults: an ordering or arithmetic operator over null has no overload (declared-fields.ts tables it, cel-fault.ts names it). The PR's own fixture does this: risk_level: record.amount compared against 100, with amount left empty. A read serves risk_level = null, the form evaluates null == 'high' as a clean FALSE and hides the field. The server counts the fault as shown and refuses the insert as required. That is the card's symptom (a hidden field refuses the save) for every record whose formula input is empty. Group (f) always supplies amount, so no test meets it. The amendment says the predicate is judged on "the value a read would serve"; for this fault a read serves null.
  • A fault only the write path has. A formula that reads through a reference, calls label() or calls can faults on every write here, so the field is required on every write while the form hides it by the real value. The card's lock survives whole for that configuration. The direct reference read has a lint warning and a Studio advisory for exactly this reason; the formula route to the same outcome has neither.
  • Fix, as a ruling-consistent pair: where the fault is one a read reports too, judge the predicate on the null a read serves; where only the write path lacks the value, keep counted-as-shown and add the warning beside the reference-read one in the lint and in Studio. Either state the choice in the amendment or change it. This needs the seat's word, since ruling item 3 reads "faulting or unevaluable" without the formula case in view.

S3 (should-fix) — the form does not recompute a formula, so the contract's "the value the form shows" is false whenever the write changes the formula's inputs. Read in ui/packages/components/src/renderers/form/form.tsx (ruleRecord): the predicate's record is a null seed, the record as last read, then the live form values. FormulaField is a read-only display of the served value. No client recompute was found.

  • On a create form the formula value is null, so a formula-driven field is hidden whatever the user types. The server computes the formula and refuses a create inside the condition. Main refused it too, so this is not a regression, but the card is not fixed for it.
  • On an edit that moves the computed value into the condition, the form still holds the old value and keeps the field hidden. Main accepted that save; this head refuses it, naming a field the user cannot see or fill, and nothing the user can do in the form recovers it. That is new against main.
  • The server's answer is the right one under ruling item 2. The gap is that the amendment (the formula paragraph), the formulaValues jsdoc and the ADR-0113 "judges the requirement the way the form shows it" sentence state an agreement that does not hold, and nothing tells the author.
  • Fix in this PR: say it in the amendment and the visibleWhen describe, and warn at authoring when a required field's visibleWhen reads a formula. Card the form-side recompute as a follow-up. The seat may instead rule the reveal out for formula-driven predicates until the form computes them.

Per hits file, on the delta:

  • packages/spec/src/data/field.zod.ts. The visibleWhen describe now says "not TRUE (FALSE, or null such as an unset boolean)" and "with formula fields computed as a read computes them". The first agrees with the engine and with the form. The second is where M2, S2 and S3 sit. No schema shape changes; the regenerated references match the describe.
  • docs/adr/0113-...md. Item 1 states the non-TRUE case and gives the form and requiredWhen as its reason: S1 closed. Item 3 and the new formula paragraph agree with the engine for a direct read. The scope paragraph, the seed-loader sentence and "Where the refusal comes from" fold N1, N2 and N3. Open against it: M2, S2, S3.
  • docs/adr/0137-...md. The note and the row name the formula fault and say a clean non-TRUE verdict is not a fault. Agrees with the engine. S2's first arm would amend the row if the seat rules that way.
  • ui/docs/adr/0036-...md and docs/adr/0020-...md. Not in the delta. 0036 says "hidden" without "cleanly false", so S1 leaves it true.

Per implementing file, on the delta:

  • rule-validator.ts. res.value === true ? 'shown' : 'hidden' is the form's evalFieldPredicate reading and the requiredWhen loop's. It applies to the merged and the prior verdict alike, so a row hidden before by a null complies and a reveal from it is refused. Group (g) pins the server side and the new fieldRules.test.ts describe pins the form side. The formula block computes over the merged and the prior record and judges both on computed values, so a time-driven formula gives the prior the same now and a row already inside rests. Open: M2, S2.
  • engine-top-level.ts. formulaValuesFor uses planFormulaProjection(schema, undefined) and applyFormulaPlan, the read path's own plan and evaluation, over a shallow copy, with a local fault sink. A plan that cannot be built marks every formula faulted. No hop or label map is passed, which the jsdoc says. Agrees with the amendment except as M2 states.
  • engine-insert.ts, engine-update.ts, engine-validate.ts. Each passes the closure with the same schema, context and permission map as the rule pass beside it. Agree.
  • Lint, Studio helper, inspector, anchor file, record-validator.ts. Unchanged by the delta. The lint and the helper carry no formula warning (S2, S3).

Nits:

  • N1: closed. N2: closed. N3: closed.
  • N4 (nit), N5 (nit), N6 (nit): open, unchanged, declared in the PR body. Accepted deviations unless carded.
  • N7 (nit): formulaValuesFor is called inside the row loops, so the plan is rebuilt per row once a predicate reads a formula; formulaReadsOf re-parses the predicate on every verdict; and each verdict computes every formula on the object, up to four times per such field on an update (merged, prior, and both again for the prior verdict). Hoisting the closure out of the loop and memoising the reads per predicate would remove it. No effect on any answer.

Open on this head: M2, S2 and S3. Each earns a delta review of its fix.

Implemented-by: claude/project-thread-9ubqgj
Reviewed-by: session_01WGufzgh1zkZzDXL36ckWAG

VERDICT: FAIL

…las it reads, and warn where a formula drives it

A predicate reading a formula that reads another formula was waived silently
when the inner one could not be computed on the write path: the outer formula
computed cleanly over the null the inner one read. The engine now marks the
formulas whose read value the write path cannot know (a hop, label(), can()
with no permission map, or a formula reading one, at any depth) and counts a
predicate reading one as shown. A formula that faults for a reason a read
shares (an empty operand) is judged on the null a read serves, as the form
judges it.

The lint and Studio's field inspector warn on a required field whose
visibleWhen reads a formula: the form judges the value it last read and does
not recompute it, and an unservable formula keeps the field required on every
write. ADR-0113, ADR-0137, the visibleWhen describe and the changeset state
both arms and the known limit.

The bulk update builds one formula closure per batch, predicate reads are
memoised per source, and a record's formulas are computed once per write.

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

Copy link
Copy Markdown
Contributor Author

repo:objectstack#3 · os-support-ai · session_01WGufzgQsdnyS4QdR8stjDa

L1 delta review (L1-d) · 2026-11-18T01:18Z

L1: REWORK
Head-sha: 2b709e1229f11d065a083237f40d4f854c541959

This is a delta read from ab10c33f, my last delta ACCEPT (6963846303), over 2b709e12, the fix round for the seat's delta contract review FAIL (6963978999). The code reads correctly and I ask for no code change. The one must-fix is paper and needs no push.

Must-fix

  • M1 (paper): two files sit outside claim 6957098185's surface, and I missed both at ab10c33f.
    • The surface names engine-{insert,update,validate}.ts and the objectql validators. It does not name:
      • packages/objectql/src/engine-top-level.ts, which holds formulaValuesFor and unservableReason (production code, added at ab10c33f and widened here);
      • ui/packages/core/src/evaluator/__tests__/fieldRules.test.ts, an existing test that gained the form-side (g) describe at ab10c33f.
    • The PR body names both, but the card carries no amendment for them, and amendment 6960755000 covers only ADR-0020.
    • I should have raised this on the first fix round, and that miss is mine.
    • Please post one claim amendment on 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 that names both files. With it posted, this head is a same-head ACCEPT. Every other delta file is inside the surface:
      • the new lint file is "a warning rule and its tests";
      • the inspector and its helper test sit under inspectors/;
      • namespaces/studio/{en,zh}.ts (the studio namespace has only those two packs);
      • the ADRs, describes, regenerated references and the changeset.

Should-fix

None.

Notes

  • L2 M2 is closed.
    • formulaValuesFor now walks the plan in read order (orderFormulaPlan) and marks a formula unservable for any of these reasons:
      • it reads through a reference (entry.hops);
      • it calls label() (planCallsOptionLabel);
      • it calls current_user.can() with no permission map (readsPermissionPredicate);
      • it reads a formula already marked unservable. Reads the member reader cannot name count as reading one.
    • The validator counts a predicate that reads an unservable formula as shown, and logs the chain.
    • The review's disproof (tier_name hop → risk → visibleWhen) is group (h) "a formula over a formula that reads through a reference counts as shown: refused, and logged naming the chain". Its filled-field control is accepted.
  • L2 S2 follows the seat's S2 ruling, as the PR body cites it. I did not find that ruling on the card; the seat's delta review reads it.
    • (a) The local faulted set is gone, so a fault a read shares (an empty operand, an undeclared key) is judged on the null that applyFormulaPlan leaves. Both cases are pinned as hidden.
    • (b) Only a write-path-only fault counts as shown. A lint warning (required-visible-when-formula-issue.ts, severity warning, wired from the existing four-slot loop) and a Studio advisory, with two keys in en/zh, warn the author.
  • L2 S3 is stated, not fixed, as the review allowed. The known-limit paragraph in ADR-0113, the formulaValues jsdoc, the evaluateRequiredWhenShown jsdoc and the visibleWhen describe now say the server judges the value a read of the written record would serve, and the form does not recompute it. The first lint and Studio string says the same to the author. The form-side recompute is the follow-up the review named.
  • N7 is taken.
    • Bulk update builds one closure per batch (bulkFormulaValues).
    • formulaReadsOf memoises per source, capped at 512.
    • A per-closure WeakMap memoises each record's computed copy. That is safe here: merged is built fresh per evaluateValidationRules call ({ ...previous, ...data }), and each bulk row's prior is its own object.
  • CI. No check runs were listed on this head when I read it. The relay reports build 119/119, dispatch-gates 130/130, the objectql, lint and inspector suites, the dogfood battery, and 8 ablations red and restored.

Landing: Tier H, still draft. The order is M1, then L1 same-head ACCEPT, then the seat's L2 delta, then os-zhuang's approval. Never ready, queue or arm before that approval.

Conflict in packages/objectql/src/engine-update.ts resolved as a union:
the import block keeps main's applyFormulaPlan, planFormulaProjection and
storedExpressionsReading beside this branch's formulaValuesFor; the bulk
per-row rule call keeps main's summary-fold overlays (header/related,
overlayRow, advance) and adds this branch's formulaValues: bulkFormulaValues.

Claude-Session: https://claude.ai/code/session_01JQwxbXGvw43spR79ztEvWt
Co-authored-by: Claude <noreply@anthropic.com>
The merge driver deferred content/docs/references/data/object.mdx; rebuilt
from the merged spec with gen:schema && gen:docs, which restores main's
action texts row beside this branch's visibleWhen describe.

Claude-Session: https://claude.ai/code/session_01JQwxbXGvw43spR79ztEvWt
Co-authored-by: Claude <noreply@anthropic.com>
ADR-0137's note and ADR-0113's formula paragraph now say the mark covers
any read of a bare user-scope root (current_user, its ADR-0068 aliases, or
a bare ctx / os read such as os.org), since the engine cannot separate the
user-dependent part of such a read, and the result is the unconditional
required. The server log reason says the same; the USER_SCOPE_ROOTS
docblock keeps 'exact' for option visibility and calls the formula plan's
reading conservative. Prose and a log string only; no logic change.

Claude-Session: https://claude.ai/code/session_01JQwxbXGvw43spR79ztEvWt
Co-authored-by: Claude <noreply@anthropic.com>
Brings the form-side formula recompute (#35116). No conflicts.

Claude-Session: https://claude.ai/code/session_01JQwxbXGvw43spR79ztEvWt
Co-authored-by: Claude <noreply@anthropic.com>
The form-side recompute (#35116) makes the object form renderer and the
console form-view page compute formula fields over the record being edited
before judging field rules. The ADR-0113 amendment's known-limit paragraph,
the visibleWhen TSDoc and describe (and its three regenerated references),
the formulaValues and evaluateRequiredWhenShown jsdoc and the changeset now
say so, naming the formulas the form cannot compute. Prose only.

Claude-Session: https://claude.ai/code/session_01JQwxbXGvw43spR79ztEvWt
Co-authored-by: Claude <noreply@anthropic.com>
@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#1 · os-warren · session_01JQwxbXGvw43spR79ztEvWt

Contract-review-claim: session_01JQwxbXGvw43spR79ztEvWt · head e6f0dcb484ef54210f551dc60fc04c882df94fcc · 2026-11-18T11:13Z

Delta contract review (CONTRACT_REVIEW_TIER, Tier H prose) 8248f9ff..e6f0dcb4, closing S5 of 6970975755 and reading the ADR-0113 "Known limit" rewrite after #35116 (form recompute). Dev report 6976886520.

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#1 · os-warren · session_01JQwxbXKtHccbeakAgquNs9

L1 delta review (#34905) · 2026-11-18T11:18Z

L1: ACCEPT
Head-sha: e6f0dcb
Delta read: 8248f9f → e6f0dcb. It has two merges of origin/main (c8d5313 and 6c9ded4) and three commits of the PR's own (6c0fd9e, aefc8aa, e6f0dcb). I read os-dev report 6976886520 alongside. The PR's file list is the same 14 paths at both heads.

c8d5313, the one conflict. engine-update.ts, resolved as a union, and I read the combined diff. The import block keeps main's applyFormulaPlan, planFormulaProjection and storedExpressionsReading beside this PR's formulaValuesFor. The bulk per-row rule call keeps main's #34465 summary-fold overlays (parent/previousParent through overlayRow, related through overlay, advance(i)) and adds this PR's formulaValues: bulkFormulaValues, computed once per batch as before. Nothing on either side is dropped. 6c9ded4 (which brings #35116) merged with no conflict.

6c0fd9e. This regenerates object.mdx for main's new action texts row. It is generated text only.

aefc8aa closes S1 and N1 of my 6970922529, and N11.

  • ADR-0137's note and ADR-0113's formula paragraph now say the no-acting-user mark covers any read of a bare user-scope root (current_user, its ADR-0068 aliases, or a bare ctx / os read such as os.org). They say why: the engine cannot separate the user-dependent part. They also say the result is the unconditional required. That matches readsUserRoot over USER_SCOPE_ROOTS.
  • The unservableReason log string says the same.
  • USER_SCOPE_ROOTS's docblock now keeps "exact" for the option-visibility call site and calls the formula plan's reading conservative, because applyFormulaPlan mounts os.org with no user.
  • The only code change is the log string, so no logic moved.

e6f0dcb closes S3. With #35116 on main, the "known limit" is rewritten as closed:

  • ADR-0113: the form computes formulas over the record being edited through planObjectFormulas, in the object form renderer and the console form-view page.
  • The visibleWhen TSDoc and describe() (regenerated into field.mdx, object.mdx and migration.mdx).
  • The formulaValues and evaluateRequiredWhenShown jsdoc.
  • The changeset, whose known-limit paragraph is replaced and whose lint clause no longer points at a limit that is gone.

I checked these against what I accepted on #35116. The form's set of formulas it cannot compute (a hop, label(), can(), os, no signed-in user, no served expression, or such a formula at any depth) is the server's set plus os and can(). The ADR's "the form can be stricter than the server" sentence states exactly that difference. Where the form cannot compute a formula, it shows the field and keeps it required, which is #35116's behaviour. Everything else in the changeset is unchanged.

Out of this PR, as you said. The lint and Studio advisory text still describes the form as not recomputing. That goes to the follow-up card you are filing.

Evidence. All 131 gates exit 0, and the battery has 0 failures (report 6976886520).

CI at this head, from check-runs: 63 success, 11 skipped, none failed or in progress.

Must-fix

None.

Should-fix

None.

Notes

  • Owed after L1, not mine. Your contract-review delta of this head, and, for Tier H, os-zhuang's APPROVED review on e6f0dcb484. The head moved, so an approval on an earlier head is no record for this one.

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#1 · os-warren · session_01JQwxbXGvw43spR79ztEvWt

Contract review

Served-tier: CONTRACT_REVIEW_TIER
Head-sha: e6f0dcb484ef54210f551dc60fc04c882df94fcc
Local-runs: none
Scope: packages/spec/src/data/field.zod.ts, 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, ui/docs/adr/0036-field-conditional-rules.md + packages/objectql/src/validation/rule-validator.ts, packages/objectql/src/engine-top-level.ts, packages/objectql/src/validation/record-validator.ts, packages/objectql/src/engine-insert.ts, packages/objectql/src/engine-update.ts, packages/objectql/src/engine-validate.ts, packages/lint/src/validate-expressions.ts, packages/lint/src/required-visible-when-formula-issue.ts, ui/packages/app-shell/src/views/metadata-admin/inspectors/requiredVisibleWhenReference.ts, ui/packages/app-shell/src/views/metadata-admin/inspectors/ObjectFieldInspector.tsx, ui/packages/i18n/src/namespaces/studio/en.ts, ui/packages/i18n/src/namespaces/studio/zh.ts, scripts/adr-anchors/packages__objectql__src__validation__rule-validator.ts.json, content/docs/deployment/validating-metadata.mdx
Security-touching: yes

This is a delta of the PASS record 6970975755 (head 8248f9ff). It covers 8248f9ff..e6f0dcb4: c8d5313d (merge of main 961f4741, one hand-resolved file), 6c0fd9ee (regenerated object.mdx), aefc8aa2 (prose for S5 and N11, one log string), 6c9ded43 (merge of main 55020c33, which holds #35116) and e6f0dcb4 (the known-limit prose rewritten for the form recompute). What the earlier records judged and this delta does not touch stands as judged there.

Inputs read: card #34905, its body and all thirteen comments (route ruling 6956761249, seat rulings 6966073288, os-dev report 6976886520); PR #34978 body, its 27-file list and its twenty comments (record 6970975755, L1 delta 6970922529); the net diff against main at the head and the delta from 8248f9ff; the check-runs on the head. Code outside the diff (form.tsx, objectFormulas.ts, FormPage.tsx, formulaRecord.ts, WizardForm.tsx) was read at the head, never reviewed. Nothing was built or run.

Security-touching: yes is meant: the ADR-0113 and ADR-0137 hunks and the visibleWhen describe teach which reads of the acting user, and which current_user.can() calls, decide a write requirement.

Verdict in short: PASS. S5: closed. N11: closed. The engine-update.ts union is right. Two new should-fix, both text: S6, the lint warning and the Studio advisory still tell the author the form does not recompute a formula, which this head's own ADR says is no longer so; S7, the ADR calls the form-side limit closed while one form-side judge, the wizard's final-submit gate, still does not recompute. One new nit, N13. No must-fix.

① Derived judgments

Check-runs on the head: 74 runs, 63 success, 11 skipped, 0 failed, 0 pending. The head was committed at 2026-11-18T09:38Z and the runs started after it. The dev's reading (70 runs, 61 success, 9 skipped) was true when taken; the PR-body edit at 2026-11-18T11:11Z re-ran four on the same head (Check Changeset and PR-body guards, success; Auto Label and Check PR Size, skipped). The other nine skips are the opt-in and placeholder runs named in 6968679220. Test Core 10 of 10, Test UI 16 of 16, both type-check aggregates, Lint and Repo Gates, Check Changeset (twice), Spec property liveness and Governed Surface Queue Guard are green.

Accept-set changes the delta implies:

Public surface: no export moves. One @objectstack/spec describe string changes ("as the form computes them over the record being edited" replaces the last-read clause), and field.mdx, object.mdx and migration.mdx carry the same sentence. The file list is the same 27 paths.

Merge resolution, engine-update.ts (c8d5313d). Right, a true union.

  • Import block: main's applyFormulaPlan, planFormulaProjection and storedExpressionsReading beside this PR's formulaValuesFor.
  • Bulk per-row rule call: main's summary-fold form (header and related locals, overlayRow, overlay, summaryFold?.advance(i)) with this PR's formulaValues: bulkFormulaValues added after permissions. bulkFormulaValues is still built once, before the rulesNeedRows branch.
  • The PR's added and removed lines against its merge base are the same before and after the merge, except that one line, which differs only by main's own operands. Against the base the file is +11/-6, as the PR body says.
  • At the head the file has three evaluateValidationRules calls (by-id, bulk per row, bulk no-rows) and each passes formulaValues. Main's fold overlays the parent and related rows, never the row's own formulas, so it does not cross the closure this PR passes.
  • The second merge (6c9ded43) touches none of the 27 paths.

② Semver level

Clause-②: yes (narrowing). The PR body and the changeset carry yes (narrowing + widening of the required write contract). Unchanged by the delta and still right: the delta adds and removes no refusal.

Metadata-protocol: semantic is right: no authorable key or value is added, refused or removed.

Level minor on @objectstack/objectql, @objectstack/lint, @objectstack/spec, @object-ui/app-shell and @object-ui/i18n still matches what the diff publishes. The form recompute is published by #35116's own changeset, not this one. Check Changeset is green on the head, twice.

③ Boundary flags

④ Design judgment

S5: closed.
N11: closed.

How each was checked at the head:

  • S5. USER_SCOPE_ROOTS is current_user, user, ctx, os; unservableReason marks a formula whose expression readsUserRoot on a write with no acting user. ADR-0137's note now says the mark "covers any read of a bare user-scope root (current_user, its ADR-0068 aliases, or a bare ctx / os read such as os.org)" and that the field keeps the unconditional required. ADR-0113's parenthesis says the same. The aliases are user, ctx.user and os.user, and "a bare ctx / os read" covers the rest of the two roots, so the text names the four roots the code tests and nothing else. The log string now reads "reads the acting user or a bare ctx/os root, and this write has no acting user (a system write)", true of every formula the arm marks. The describe and the changeset keep the short form, as 6970975755 allowed. No logic moved.
  • N11. The USER_SCOPE_ROOTS docblock says bare-root reading is exact at the option-visibility call site and only conservative at the formula plan's, where applyFormulaPlan mounts os.org from the tenant with no user. Both halves are true of the code.

The rewritten sentences, each against the form code #35116 brought:

  • "It now computes the object's formula fields over the record being edited before it judges the field rules: the object form renderer over its ruleRecord (form.tsx) and the console's form-view page over its live values (FormPage.tsx), both through planObjectFormulas." True. form.tsx returns formulaPlan.compute(out) as ruleRecord; FormPage.tsx builds ruleValues = formulaPlan.compute(values) and passes it to resolveRowState, isSectionVisible and findSubmitRefusals.
  • "with the canonical @objectstack/formula engine in the read order, binding the signed-in user's id and positions as applyFormulaPlan binds them." True. planObjectFormulas orders with formulaReadOrder, evaluates with ExpressionEngine, and formulaUserOf keeps id and positions only; applyFormulaPlan binds { id, positions } when execCtx.userId is set.
  • The list of formulas the form cannot compute (reads through a reference, calls label() or current_user.can(), reads os, reads the user when nobody is signed in, is served without its expression, or reads such a formula). True, arm for arm, of planObjectFormulas: the hop arm, LABEL_CALL, callsReceiverMethod(..., 'can'), unbindableRoots (os always; current_user, user, ctx when the scope holds no user id), the missing-expression arm and the closure pass in read order.
  • "drops the visibleWhen that reads it: the field is shown and keeps its required flag, and the server decides." True of withoutUnservableVisibleWhen (objectFormulas.ts) and withoutUnservableRuleVisibleWhen (FormPage.tsx). The second drops the object-level rule only and leaves the view-level predicate alone.
  • "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." True. The server marks an os read only when the write has no acting user and a can call only when the write resolved no permission map; with a user, or with a map, it computes the formula and may hide the field, while the form shows it and keeps the static required. Not the whole set: N13.
  • The describe, "as the form computes them over the record being edited", and the TSDoc, the formulaValues jsdoc ("so the two agree, except for a formula the form cannot compute") and the evaluateRequiredWhenShown jsdoc. True of the two surfaces above. Open against the general claim: S7.

S6 (should-fix) — the lint warning and the Studio advisory this PR adds still state that the form does not recompute a formula, and on this head that is false.

  • required-visible-when-formula-issue.ts builds, for every required field whose visibleWhen reads a formula: "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." designer.field.requiredVisibleWhenFormula says the same in en and zh. The module docs of both files, the comment at the push site in validate-expressions.ts, the comment in ObjectFieldInspector.tsx and the lint test's title and pin (does not recompute it) repeat it.
  • On this head the object form renderer and the console form page do recompute (the bullets above). So the warning tells the author of a plain computable formula about a divergence that is gone, and advises a rewrite that is no longer needed.
  • The unservable half is now the wrong way round as well. The lint says the field "stays required on every record, the ones the form hides it on included", and the Studio string says "including the ones this condition hides it on". For a hop, label() or can formula the form now drops the visibleWhen and shows the field. The consequence left to state is that the field is shown and required on every record.
  • The head contradicts itself: ADR-0113 now says the warning was "written for the form-side limit above, since closed", the changeset drops the reason from its lint sentence, and the PR body names the gap as an open question.
  • Why should-fix and not nit: these strings are new in this PR and are published in @objectstack/lint and @object-ui/i18n; they fire at objectstack validate, at the object save door and in Studio on every such field. Why not must-fix: a warning refuses nothing and no write verdict depends on it.
  • Fix, minimum: reword the two messages (en and zh), the two module docs, the two comments and the test title and pin, so that no sentence says the form does not recompute, and the unservable sentence says the field is shown and required on every record. Whether the plain formula-read warning keeps firing at all is the seat's word (③), and may follow on its own card.

S7 (should-fix, prose only) — ADR-0113 calls the form-side limit closed, and one form-side judge still does not recompute. Read, not run.

  • ui/packages/plugin-form/src/WizardForm.tsx, gateFinalSubmit: the cross-step gate of a wizard's final submit calls resolveFieldRuleState with each field's visibleWhen over mergedData, the accumulated form values. It takes no formula plan. fix(form): recompute formula fields from the live inputs before judging field rules #35116 did not touch the file. The file's own comment says a simple form's mobile stepper submits through it too.
  • mergedData starts from the record the wizard read, so on an edit the gate judges the formula value last read; on a create it has none. That is the limit the old paragraph described. The step forms it wraps do recompute, so the two judges of one wizard can now disagree: a field the step form hides after an edit can be demanded by the gate, and a field on a step never opened can be missed by the gate and refused by the server.
  • A second, smaller residual in objectFormulas.ts: a data source without getObjectSchema, or a failed schema read, yields no plan, and the renderer computes nothing.
  • The paragraph's body is exact: it names the two surfaces that recompute. Its heading ("now closed"), the describe ("as the form computes them") and the formulaValues jsdoc ("so the two agree, except for a formula the form cannot compute") state it for "the form" at large.
  • Why should-fix and not nit: the ADR paragraph is the record of where the form and the server can still differ, and the approver reads "closed". Why not must-fix: no server verdict is at stake, and the server's answer stays the one ruling item 2 asks for.
  • Fix: one clause in the ADR-0113 paragraph naming what is left (the wizard's final-submit gate judges the form values without the recompute; a form whose data source serves no object schema computes nothing). The describe and the jsdoc may keep the short form. The gate itself is main's code and goes to its own card (③).
  • Cheapest disproof: one WizardForm test with a required field whose visibleWhen reads a formula, an edit that moves the formula out of the condition, and a final submit. If the gate does not demand the field, S7 is withdrawn.

Per hits file, on the delta:

  • packages/spec/src/data/field.zod.ts. The describe and the TSDoc now say the form computes the same formulas over the record being edited, and the TSDoc lists where it cannot. True of the two surfaces. The short form is acceptable here; S7 is owed in the ADR. Open: N13.
  • docs/adr/0113-...md. The acting-user parenthesis closes S5. The rewritten paragraph is true sentence by sentence against formulaRecord.ts, objectFormulas.ts, form.tsx and FormPage.tsx. Open against it: S7 (its heading), N13.
  • docs/adr/0137-...md. The note closes S5 and agrees with unservableReason.
  • docs/adr/0020-...md, ui/docs/adr/0036-...md. Not in the delta; they say nothing about a formula recompute; stand as judged.

Per implementing file, on the delta:

  • engine-top-level.ts. One log string, true of the arm that emits it. Open: N9, N12.
  • rule-validator.ts. The USER_SCOPE_ROOTS docblock (N11) and two jsdoc passages. No code line moves.
  • engine-update.ts. The union, as under ①.
  • packages/lint/src/required-visible-when-formula-issue.ts, validate-expressions.ts, the Studio helper, ObjectFieldInspector.tsx, i18n en and zh. Unchanged by this PR's own commits in the delta, and no longer in agreement with the contract: S6.
  • engine-insert.ts, engine-validate.ts, record-validator.ts, anchor file, validating-metadata.mdx. The delta's lines in them are main's. This PR's own lines are unchanged.

Nits:

  • N4 (nit), N5 (nit), N6 (nit), N9 (nit), N10 (nit), N12 (nit): open, unchanged, accepted in the PR body.
  • N13 (nit): the "form can be stricter" sentence names os and can(). A formula served without its expression (a field-level-security mask) is a third case: the server holds the expression and computes it, the form shows the field. The paragraph lists that formula among those the form cannot compute, but not among those where the form is stricter. Two smaller wordings: the TSDoc's "no signed-in user" stands for "reads the user when nobody is signed in", and "the engine cannot separate the user-dependent part" describes what the engine does not do, not what it could not.

Open on this head: S6 and S7, both text. They earn a read of the changed lines; S6 moves two message strings and one test pin, so its fix moves the head. No must-fix.

Implemented-by: claude/project-thread-9ubqgj
Reviewed-by: session_01JQwxbXGvw43spR79ztEvWt

VERDICT: PASS

…e residual judges

The lint warning and the Studio advisory on a required field whose
visibleWhen reads a formula no longer say the form does not recompute it.
The plain read is a reminder that the server's computed value decides,
naming the checks that still compute none (a wizard's final-submit check,
a form whose data source serves no object schema); the unservable arm
says the form shows the field and keeps it required. ADR-0113 names the
two residual form-side judges and the expression-masked case where the
form can be stricter. Messages only: what fires is unchanged.

Co-authored-by: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01JQwxbXGvw43spR79ztEvWt
@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#1 · os-warren · session_01JQwxbXGvw43spR79ztEvWt

Contract-review-claim: session_01JQwxbXGvw43spR79ztEvWt · head 1ca9b694b54d06a376b2669d7c0d13c724679c38 · 2026-11-18T12:42Z

Delta contract review (CONTRACT_REVIEW_TIER, Tier H prose) e6f0dcb4..1ca9b694, closing S6 and S7 (and nit N13) of 6977080790. Dev report 6978864276 on #34905. Out-of-scope residuals are carried by #35189 (wizard final-submit gate and the no-schema plan) and #35190 (option A narrowing).

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#1 · os-warren · session_01JQwxbXKtHccbeakAgquNs9

L1 delta review (#34905) · 2026-11-18T12:45Z

L1: ACCEPT
Head-sha: 1ca9b69
Delta read: e6f0dcb → 1ca9b69. It is one commit of the PR's own, 1ca9b69, text only: 8 files, +57/−44. I read it against contract review 6977080790 (S6, S7, N13) and dev report 6978864276. All 8 paths were already in this PR's file list, and the file list is unchanged (27 paths). No main merge is in the delta.

S6, option B, reword only. Each changed string now says the server decides on the formula it computes. It says the form computes the same formula over the record being edited, and that a check which computes none can disagree with the server: a wizard's final-submit check, or a form whose data source serves no object schema. The strings are:

  • the lint message and module doc (required-visible-when-formula-issue.ts);
  • the validate-expressions.ts comment;
  • the lint test title and its toContain pin;
  • the Studio helper docs (requiredVisibleWhenReference.ts);
  • the ObjectFieldInspector.tsx comment;
  • the studio en and zh strings.

The unservable-formula message adds "the form cannot compute it either: it shows the field and keeps it required". That is the behaviour I accepted on #35116. The zh strings say the same as the en strings. The old advice, to read the formula's own inputs, is dropped, which is right now that the form recomputes. No code path changes: the warning fires on the same predicates. At the new head, no source string under packages/, ui/, docs/ or content/ still says the form "does not recompute" a formula; the remaining hits are about the engine plan, roll-ups and requires, not this warning.

S7. ADR-0113's paragraph now names the two residual judges: gateFinalSubmit in WizardForm.tsx, which judges resolveFieldRuleState with no formula plan, and a data source with no getObjectSchema, or a failed schema read, which gets no plan (objectFormulas.ts). It says both judge the value last read, none on a create. That matches the S7 evidence in 6977080790. The residuals are carried on #35189 and #35190.

N13. The "stricter" sentence now names the masked-expression case (served without its expression, a field-level-security mask) beside os and can().

Evidence. The battery shows 0 failures, and all 131 gates exit 0 (report 6978864276).

CI at this head, from check-runs: 63 success and 11 skipped, with none failed or in progress. The PR is mergeable clean.

Must-fix

None.

Should-fix

None.

Notes

  • Owed after L1, not mine. These are the fable contract-review delta on this head (claim 6978896258) and, because this is Tier H (check-governed-merges.mjs: GOVERNED, H), os-zhuang's APPROVED review on 1ca9b694b5. os-zhuang has no review on this PR yet, and the head moved, so only an approval on this head counts.

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#1 · os-warren · session_01JQwxbXGvw43spR79ztEvWt

Contract review

Served-tier: CONTRACT_REVIEW_TIER
Head-sha: 1ca9b694b54d06a376b2669d7c0d13c724679c38
Local-runs: none
Scope: packages/spec/src/data/field.zod.ts, 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, ui/docs/adr/0036-field-conditional-rules.md + packages/objectql/src/validation/rule-validator.ts, packages/objectql/src/engine-top-level.ts, packages/objectql/src/validation/record-validator.ts, packages/objectql/src/engine-insert.ts, packages/objectql/src/engine-update.ts, packages/objectql/src/engine-validate.ts, packages/lint/src/validate-expressions.ts, packages/lint/src/required-visible-when-formula-issue.ts, ui/packages/app-shell/src/views/metadata-admin/inspectors/requiredVisibleWhenReference.ts, ui/packages/app-shell/src/views/metadata-admin/inspectors/ObjectFieldInspector.tsx, ui/packages/i18n/src/namespaces/studio/en.ts, ui/packages/i18n/src/namespaces/studio/zh.ts, scripts/adr-anchors/packages__objectql__src__validation__rule-validator.ts.json, content/docs/deployment/validating-metadata.mdx
Security-touching: yes

This is a delta of the PASS record 6977080790 (head e6f0dcb4). It covers e6f0dcb4..1ca9b694: one commit, 1ca9b694, 8 files, +57/-44, text only. What the earlier records judged and this delta does not touch stands as judged there.

Inputs read: card #34905, the comments added since the last record (os-dev report 6978864276) and the ones before it as already read; PR #34978 body, its 27-file list and the three comments added since the last record (record 6977080790, claim 6978896258, L1 delta 6978947546); the delta diff and the net file list against main at the head; the check-runs on the head. Code outside the diff (formulaRecord.ts, objectFormulas.ts, form.tsx, FormPage.tsx, WizardForm.tsx, engine-top-level.ts) was read at the head, never reviewed. Cards #35189 and #35190 were opened only to confirm they exist and carry what the claim says. Nothing was built or run.

Security-touching: yes is meant, as before: the ADR hunks teach which reads of the acting user and which current_user.can() calls decide a write requirement, and this delta adds a sentence on the field-level-security mask.

Verdict in short: PASS. S6: closed. S7: closed. N13: closed. Every new sentence was read against the code at the head and none claims something the code does not do, with two wording nits (N14, N15). What fires is unchanged. No must-fix, no should-fix.

① Derived judgments

Check-runs on the head: 74 runs, 63 success, 11 skipped, 0 failed, 0 pending. The head was committed at 2026-11-18T11:24Z and the runs started after it. The PR-body edit at 2026-11-18T12:40Z re-ran four on the same head (Check Changeset and PR-body guards, success; Auto Label and Check PR Size, skipped); the other nine skips are the opt-in and placeholder runs named in 6968679220. The dev's reading (61 success, 2 in progress) was true when taken. Test Core 10 of 10, Test UI 16 of 16, both type-check aggregates, Lint and Repo Gates, Lint UI, Check Changeset (twice), Spec property liveness and Governed Surface Queue Guard are green.

Accept-set changes the delta implies: none.

  • required-visible-when-formula-issue.ts: the module doc and two message literals change. The conditions (required, a CEL visibleWhen, a formula read), the blocked set, the can rider and the return shape are the same lines as at e6f0dcb4.
  • validate-expressions.ts, ObjectFieldInspector.tsx, requiredVisibleWhenReference.ts: comments and docblocks only. The push site, the inspector's two render conditions (formulas.length > 0, unservable.length > 0) and formulaReadsInRequiredVisibleWhen do not move.
  • en.ts, zh.ts: the values of two existing keys. No key is added or removed.
  • validate-expressions.test.ts: one title, one comment and one toContain pin. The pinned text ("the formula value it computes over the record being written") is in the new message, in one literal segment.

So the warning and the advisory fire on exactly the fields they fired on before. This is option B. Option A (narrow what fires to the unservable arm) is not done here and is carried by card #35190, open, which says it is blocked until this PR merges.

Public surface: no export moves. Two published message strings change (@objectstack/lint, @object-ui/i18n). The file list is the same 27 paths.

② Semver level

Clause-②: yes (narrowing). The PR body and the changeset carry yes (narrowing + widening of the required write contract). Unchanged by the delta: it adds and removes no refusal.

Metadata-protocol: semantic stays right. Level minor on the five packages still covers the delta: reworded warning text in two packages that the changeset already names. The changeset file is not in the delta. Check Changeset is green on the head, twice.

③ Boundary flags

④ Design judgment

S6: closed.
S7: closed.
N13: closed.

No must-fix, no should-fix.

How each was checked at the head:

  • S6, "no sentence says the form does not recompute". In the lint module, the Studio helper, the inspector, the two i18n files and the changeset, no sentence about this warning says the form does not recompute or keeps the field hidden. The two remaining "the ones the form hides it on included" sentences (validate-expressions.ts near line 1672, and "The hazard" in requiredVisibleWhenReference.ts) belong to the reference-read warning, which this delta does not touch and earlier records judged.
  • S6, the plain arm: "The form computes the same formula over the record being edited". True of form.tsx (ruleRecord = formulaPlan.compute(out)) and FormPage.tsx (ruleValues = formulaPlan.compute(values)), both through planObjectFormulas.
  • S6, the plain arm: "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". True; see S7. I looked for a third judge of a required field's visibleWhen with no plan. GridField.tsx judges readonlyWhen and requiredWhen only and keeps the static required; the kanban prompt reads only fields that declare requiredWhen and refuses nothing; editFormLockedByState.ts reads no required. So the two named checks are the ones left.
  • S6, the unservable arm: "The form cannot compute it either: it shows the field and keeps it required". True in both forms. withoutUnservableVisibleWhen (objectFormulas.ts) drops the row's visibleWhen when plan.unservableReadsOf is not empty, and form.tsx renders from the result. withoutUnservableRuleVisibleWhen (FormPage.tsx) drops rules.visibleWhen the same way. Neither touches required. The lint's three marks (a hop through a reference field, label(, a can receiver call, and a formula reading one) are each a mark in planObjectFormulas, which has three more (os, no signed-in user, no served expression), so every formula the lint calls blocked is one the form cannot compute. Limits of the sentence: N14.
  • S6, the module doc, the two comments, the helper docs and the test title. Each says what the message says. "for a formula it can compute it judges what the server judges" is the right qualifier. The can sentence in the helper doc ("uncomputed on the server only on a save that picks no permission-gated option") matches unservableReason (!permissions && readsPermissionPredicate).
  • S6, zh against en. requiredVisibleWhenFormula: both say the form computes the same formula as you edit, that a wizard's final-submit check, or a form whose data source serves no object schema (数据源不提供对象定义的表单), uses the value last read, none on a new record, and can disagree with the server. requiredVisibleWhenFormulaUnservable: both drop "including the ones this condition hides it on" and add that the form cannot compute it either, shows the field and keeps it required. Same content, clause for clause.
  • S7, the wizard gate. gateFinalSubmit (WizardForm.tsx, line 865) calls resolveFieldRuleState with each field's visibleWhen, readonlyWhen and requiredWhen over record, and its one caller passes mergedData = { ...formData, ...stepData }. No formula plan is read anywhere in the file (formulaPlan, useObjectFormulaPlan and planObjectFormulas do not appear in it). formData is seeded from the record read on an edit and from the create seed on a create, so "judges the formula value last read, none on a create" is exact.
  • S7, the no-plan form. useObjectFormulaPlan sets canAsk only when dataSource.getObjectSchema is a function, maps a rejected read to undefined fields, and planObjectFormulas(undefined) returns undefined; form.tsx then returns the uncomputed record (formulaPlan ? formulaPlan.compute(out) : out). The file's own docblock says the same. FormPage.tsx behaves the same when loaded.objectSchema holds no fields.
  • S7, the claim that was open. The paragraph now states what is left, in the paragraph the approver reads, citing both files. That is the fix 6977080790 asked for. The heading keeps "now closed" and the fence paragraph keeps "since closed"; both are qualified by "What is left" in the same paragraph, and the residuals are on Wizard form final-submit gate judges visibleWhen without the form's formula recompute #35189.
  • N13. planObjectFormulas marks a formula whose served definition has no usable expression: unservable.set(name, 'has no expression served to this reader'), and its docblock names the cause (a field-level-security mask deletes an expression naming a field the reader cannot see). The server's formulaValuesFor plans from the registered schema, which holds the expression, so it computes the formula and may hide the field while the form shows it and keeps the static required. The new sentence names the three cases and each is a case where the form is stricter or equal, never looser.

Per hits file, on the delta:

  • docs/adr/0113-...md. Two added sentences, both true as above. No other line of it moves.
  • packages/spec/src/data/field.zod.ts, ADR-0020, ADR-0137, ui ADR-0036. Not in the delta; stand as judged.

Per implementing file, on the delta:

  • required-visible-when-formula-issue.ts, validate-expressions.ts, requiredVisibleWhenReference.ts, ObjectFieldInspector.tsx, en.ts, zh.ts. Now in agreement with the contract and with the form code. Open: N14, N15.
  • The other implementing files. Not in the delta; stand as judged.

Nits:

  • N4 (nit), N5 (nit), N6 (nit), N9 (nit), N10 (nit), N12 (nit): open, unchanged, accepted in the PR body.
  • N14 (nit): "it shows the field and keeps it required" is true of a form that holds a plan. The two checks the sentence before it names do not drop the predicate: a form with no plan, and the wizard gate, judge an unservable formula on the value last read and can still hide the field or not demand it. In FormPage.tsx a view-level predicate can also still hide the row. One corner of the lint differs too: a formula that reads a reference both bare and through it is a hop to the lint, while the engine (hopConflict) and the form (nullReason) read it as null. The reader is not misled, since the message names the two checks one sentence earlier.
  • N15 (nit): for a field whose visibleWhen reads only an unservable formula, the message first says "The form computes the same formula" and two sentences later "The form cannot compute it either". The Studio advisory composes the same way ({fields} in the first string lists every formula read). The second sentence corrects the first, so the net meaning is right.

N14 and N15 are in message strings, so a fix would move the head. They are left as accepted deviations; #35190, which narrows the warning to the unservable arm, is the place to settle both wordings.

Open on this head: nits only. The round ends here.

Implemented-by: claude/project-thread-9ubqgj
Reviewed-by: session_01JQwxbXGvw43spR79ztEvWt

VERDICT: PASS

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#1 · os-warren · session_01JQwxbabAdcWyApSTGBYJNY

Seat record · 2026-11-18T12:50Z · Head-sha: 1ca9b69

维护者速读

  • 改了什么:字段同时设了「必填」和自己的显示条件(visibleWhen)时,服务端改为「显示时才必填」。条件算出不为真(字段隐藏)的记录,新建和保存都不再要求它;把记录改到条件内却不填它,写入被拒;条件算不出时按「显示」处理,保持原来的必填并记一条服务端警告。另加三条 lint 警告和 Studio 字段面板提示,并修订 ADR-0113 / ADR-0137 / ADR-0020 / UI ADR-0036。
  • 为什么改:在 Studio 里加一个「必填 + 显示条件」的字段只要几下点击,之后所有不满足条件的记录都无法新建或保存,一处配置锁住整个组织(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)。按你 11-17 18:10Z 的裁决 A「显示时必填+切换校验」实现(裁决记录 6956761249)。
  • 风险与回滚:放宽加收紧(标题带 !,changeset 写明 BREAKING):流程、批量更新、导入和 API 把已有记录改进条件却不填该字段,现在会被拒,批量里一行不合格整批拒。没有设显示条件的必填字段完全不变。回滚 = revert 本 PR。
  • 先看:① docs/adr/0113-required-write-contract-vs-column-constraint.md 末尾的修订一节;② packages/objectql/src/validation/rule-validator.ts 的 evaluateRequiredWhenShown(隐藏 / 显示 / 算不出三条分支);③ record-validator.ts 的 requiredWhenShown。
  • 两分钟验证:pnpm --filter @objectstack/objectql exec vitest run src/engine-required-when-shown.test.ts,预期 35 个测试全部通过。
  • 需要你做的:用 os-zhuang 审读并批准本 PR(改了四份 ADR,属 Tier H;ui/docs/adr/** 不在低风险放权范围内)。L1-a 增量 ACCEPT 6978947546,契约复审增量 PASS 6979021752(CONTRACT_REVIEW_TIER,Security-touching: yes),均钉在 Head-sha 1ca9b694b54d06a376b2669d7c0d13c724679c38。批准在案后由席位落地。

席位意见:同意合并。实现与裁决 A 的三条逐条对应,收紧部分已在 changeset 和 ADR 修订里写明;复审四轮后无 must-fix、无 should-fix。

席位核对

  1. 形态:27 个文件,+2066/−52,Fixes #34905;Clause-②: yes (narrowing + widening of the required write contract),Metadata-protocol: semantic,Skills-docs: none(理由在正文首段);标题带 !;draft,base main。
  2. 前提实测:裁决记录 6956761249 的三条(隐藏放宽、显示且为空拒写、算不出按显示并记 ADR-0137 D4 日志)由契约复审链 6968679220 → 6970975755 → 6977080790 → 6979021752 逐条对照代码判过;末轮增量 e6f0dcb4..1ca9b694 仅文本(8 文件 +57/−44),S6/S7/N13 关闭。dev 报告 6978864276 的 dogfood_battery 在本 head:4075 通过、0 失败。
  3. 门禁 check-runs:head 1ca9b694 上 74 条,63 成功、11 跳过、0 红,十一个必需检查全绿。dev 在本 head 跑 131 个门禁族全部 exit 0。check-governed-merges --pr 34978:27 个路径中 4 个命中受管面,Tier H;低风险放权不适用(含 ui/docs/adr/**)。
  4. 接受的偏差:新备忘 N14/N15(措辞)由 Narrow the required-field formula visibleWhen warning (lint and Studio) to formulas the form cannot compute #35190 承接(6979034334);旧备忘 N4–N6、N9、N10、N12 维持已接受。都不挡合并。
  5. 范围外去向:Wizard form final-submit gate judges visibleWhen without the form's formula recompute #35189(向导最终提交检查与无 schema 的公式计划),Narrow the required-field formula visibleWhen warning (lint and Studio) to formulas the form cannot compute #35190(lint/Studio 文案按方案 A 收窄,加 N14/N15)。Skills-docs: none 理由见形态行。
  6. 落地条款:Tier H,等 os-zhuang 的 APPROVED 审核在案于本 head(或其后仅合 main 的 head),再由席位翻 ready、经合并队列落地(标题带 !,--land 读本 head 上的 dogfood_battery,已在 6978864276);head 若有内容变动则撤挂回等。

@objectstack-fleet objectstack-fleet Bot added the pm:awaiting-merge PR only: landing waits on the maintainer's own review and merge (SKILL.md 复核 ②); never on an issue label Nov 18, 2026
@os-zhuang
os-zhuang marked this pull request as ready for review November 18, 2026 14:52
@os-zhuang
os-zhuang added this pull request to the merge queue Nov 18, 2026
Merged via the queue into main with commit 0739dee Nov 18, 2026
80 checks passed
@os-zhuang
os-zhuang deleted the claude/project-thread-9ubqgj branch November 18, 2026 15:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

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

Projects

None yet

3 participants