Repository navigation
Description
repo:objectstack#5 · os-bill · session_01Utp6CbcAmwZGHVnPE8xJwr
Filing gate: ③ · Source: maintainer — ruling on #36806 (2026-11-26, decision thread 「裁决 #36806 只读字段命名」): 「按长远模型」 — the two-tier field-lock model is adopted whole, and its object-level half is filed now rather than waiting for an asker. Sub-issue of #36806 (phase 2 of that ruling).
Grade: area:data · Feature · p2 (takes the parent's grade) · evidence: the parent's measurement on 18.6.0 and the ruling.
Reader: area o5-D (seat repo:objectstack#5) after the parent lands; domain:spec inherited from the parent (sub-issue rule).
Blocked-by: #36806
维护者速读
- 用户能看到什么变化:作者可以在对象上写一句「状态是已确认或已完成时整单人手锁定」,表单、行内编辑、看板、日历、高亮条都改不了这条记录;备注这类字段可以单独放开;按钮、接口、导入、流程照常写。复制一张已确认的订单,得到的是草稿而不是另一张已确认订单。
- 为什么做:确认后的订单、已过账的发票、已关闭的工单都要整单锁定,逐字段写条件既累又容易漏一个字段;Frappe 的 docstatus、Salesforce 的审批锁、Odoo 的确认单锁都是整单一句话。
- 出错会怎样:漏掉某个界面入口时用户仍能手改,数据仍由校验规则兜底;回滚即去掉对象级键。
- 要你做什么:无,已在 spec: a field a person changes only through actions — read-only on every UI surface, still writable by the API, import and action writes, judged by validations #36806 的裁决里选定。
Asked
- Object-level
uiReadonlyWhen(CEL predicate overrecord): when TRUE, every console surface treats every field of the record as read-only by hand (the surfaces spec: a field a person changes only through actions — read-only on every UI surface, still writable by the API, import and action writes, judged by validations #36806 lists: create/edit dialogs, record-page inline edit, highlight-strip chip, grid inline edit and multi-row save, kanban drag, calendar drag). - Field-level override: a field that declares its own
uiReadonlyoruiReadonlyWhenis judged by its own declaration, not the object's.uiReadonlyWhen: P\false`` on a field keeps it editable inside a locked record (notes, internal tags). - The one console verdict helper from spec: a field a person changes only through actions — read-only on every UI surface, still writable by the API, import and action writes, judged by validations #36806 folds the object-level predicate in, so no surface reads it directly.
- Duplicating a record from the console (the clone action a person triggers) does not copy a hand-locked field's value; the new record takes the field's
defaultValue, as a console create does under spec: a field a person changes only through actions — read-only on every UI surface, still writable by the API, import and action writes, judged by validations #36806 item 3. Declared writes (API, import, actions, flows) are untouched. describe_object(MCP) reports the object-level predicate so an agent acting for a person knows the record is hand-locked and reaches for an action instead of a direct write.- Write paths keep every write; the engine never reads the key (pin test: no
x-objectstack-dropped-fieldson a PATCH to a locked record).
Done when
On a test object with a state_machine on status, uiReadonlyWhen: P\record.status in ['confirmed','done']`on the object anduiReadonlyWhen: P`false`onnotes: a confirmed record offers no hand edit on any field except notes; a PATCH, an import update and a declarative action still change fields when validations allow; duplicating the confirmed record yields a record whose statusis the field'sdefaultValue; describe_object` reports the predicate.
Governing text
- Ruling on spec: a field a person changes only through actions — read-only on every UI surface, still writable by the API, import and action writes, judged by validations #36806 (2026-11-26): two tiers (server lock
readonly/readonlyWhen; hand lockuiReadonly/uiReadonlyWhen) × two levels (field, object); field declaration wins over object default; aui-prefixed key is admitted only where the console's and the server's answers legitimately differ, today only for read-only. - ADR-0085 §2 admission test: binds every surface, names no page — the object-level key names the console as a whole, not a page.
- ADR-0049: a declared key is enforced on every surface it names.
Out of scope
An object-level readonlyWhen (server-side whole-record lock) is the symmetric completion the ruling allows later; it is not asked here. Turning the server strip into a refusal is a separate topic.
Activity
objectstack-fleet commentedon Nov 26, 2026
triage#1 · os-warren · session_01JQwxbZKP5YM48rWMWTS7wE
Triage: lands in area:data · domain:spec · Feature · priority:p2 ·
pm:blocked· size M; rationale: the object-level half of the two-tier field-lock model the maintainer adopted on #36806 (「按长远模型」). It is a new authorable key, maintainer-sourced, so p2.Blocked-by: #36806is open. On unlock it goes to seat 5 zone o5-D. It is a Clause-② widening, so the PR needs a contract review.objectstack-fleet commentedon Nov 27, 2026
triage#1 · hotlong · session_01Q4EjjMnyLqJdzuktEmRPXH
Unlock · #37402 · 2026-11-27T06:35Z: the card's only
Blocked-by:line names #36806, which was closed as completed at 2026-11-26T12:50Z. No later block is recorded on this card.pm:blocked→pm:queue; grade, area and size unchanged. Re-read the premise at claim, because the blocker's landing may have changed the surface this card names.objectstack-fleet commentedon Nov 28, 2026
repo:objectstack#8 · sunhaolin · session_017xRBcSAaBEfQpU2yJexSJ8
Picked by
card-pick.mjs --order area:data --seat repo:objectstack#8at 2026-11-28T01:42Z: rank 7 (p2, order 1), taken ahead of label order as a contract-face card (packages/spec/src/**). The maintainer in this seat's session, verbatim: 「开一个 objectstack 全仓座位」 with intakearea:data, then 「batch 调到 5,可以用云卡」. The card's named reader (seat 5, area o5-D) is vacant.Claim: PM loop round 1
Session:
session_017xRBcSAaBEfQpU2yJexSJ8Account:
sunhaolinBranch:
claude/issue-37402-object-ui-readonly-whenWorktree:
objectstack-issue-37402Domain:
domain:specSeat:
repo:objectstack#8File surface:
packages/spec/src/data/object.zod.ts+object.metadata-form.ts+packages/spec/liveness/object.json,ui/packages/core/src/evaluator/handLock.tsand its callers inui/packages/**(incl. the directresolveFieldRuleStatecallersui/packages/components/src/renderers/form/form.tsxandui/packages/app-shell/src/utils/editFormLockedByState.ts),packages/mcp/src/mcp-server-runtime.ts+mcp-http-tools.ts,packages/runtime/src/domains/mcp.ts,packages/lint/src/validate-expressions.ts,packages/metadata-core/src/object-schema-fls-references.ts, generated forms/translations/baselines,content/docsreference rows, co-located tests, one changeset per moved package; ⛔ noskills/**,docs/adr/**,.github/workflows/**(stop on breach; explain in the report)Container & model:
M,mode:cloud,model: opus (dispatch-gates --tier: no path-derived mandate; default tier),effort: highClause-②: yes
Metadata-protocol: added
Responsibility:
n/a — not a defect cardThread-read: 7211677311
Premise: holds — read-only check on origin/main at 2026-11-28T01:42Z: no object-level
uiReadonly*inobject.zod.ts(controlduplicateActionNameshits); field keys atfield.zod.ts:2963/3132; helperhandLock.ts:73-88. Two readings for the dev to settle by measurement: the edit dialogform.tsxcallsresolveFieldRuleStatedirectly (2285-2319, 3874), bypassing the helper; and no person-triggered console record clone was found (onlyenable.clone,object.zod.ts:445) — item 4's surface is to be measured and reported, not built.Serial constraints cleared: seat 3's #37867 holds
RecordDetailView.tsx/useConsoleActionRuntime.tsx, #37508metadata-admin/widgets.tsx, #37861/#38048/#37874 chat files; seat 3's #37856 declarespackages/**+ui/**; seat 2's #37572/#37444 declareui/packages/app-shell. Textual overlap re-checked withoverlap-check.mjsbefore every push; a real overlap queues this PR behind the named one.Scope this dispatch: the whole card.
Fixes #37402. Clause-② widening ⇒ a contract-review-tier L2 review is owed before the queue.objectstack-fleet commentedon Nov 28, 2026
repo:objectstack#8 · sunhaolin · session_017xRBcRd37NZMCYvVAmVk4b
os-dev-report
{ "issue": 37402, "status": "done", "branch": "claude/issue-37402-object-ui-readonly-when", "pr": "https://github.com/objectstack-ai/objectstack/pull/38169", "session": "session_017xRBcRd37NZMCYvVAmVk4b", "premise_still_valid": true, "summary": "ObjectSchema.uiReadonlyWhen (CEL, record's own columns) is the whole-record hand lock: @object-ui/core folds it in one place (effectiveUiReadonlyWhen: a field's own uiReadonly/uiReadonlyWhen wins, else the object's) and fieldReadOnlyByHand / fieldHasConditionalHandLock now REQUIRE the object, so every caller (record page, grid cell + row load, list $select, kanban, calendar, Gantt, timesheet) passes it; the edit dialog's form fields, editFormLockedByState and line-item columns carry the folded predicate from their producer, so form.tsx / WizardForm / GridFieldWidget fold it with no change. describe_object (HTTP + stdio) reports the object predicate; os validate checks the slot; the FLS scrub serves a predicate over a denied field as constant true (fail-closed, the field-level precedent); Studio object form row translated in 11 locales; engine untouched. Item 4 measured as NO SURFACE: the console has no person-triggered record duplicate (only the REST /data/:object/:id/clone door, an API write) — nothing built, per the dispatch; the done-when duplicate clause therefore has no surface to hold on. Assignee untouched (claim's Account: sunhaolin on the PR via pr_create).", "tests": "New pins: ui core handLock-36806.test.ts '#37402' describe (7 cases: lock/override both ways, explicit uiReadonly:false, server lock does not cancel, fail-closed, fold helpers); plugin-form dialogHandLock (form fields + line-item columns, derived and authored); app-shell editFormLockedByState (3); plugin-grid cell facts (2) + row-load $select operands (2); plugin-kanban drop (2); lint object slot (accept + 4 refusals); metadata-core FLS (2); mcp stdio (2) + runtime HTTP describe_object (2); dogfood done-when object on the shared boot (meta serves both predicates; PATCH on a confirmed record lands with NO X-ObjectStack-Dropped-Fields; import update writes + machine still refuses; declarative action writes) 10/10. Pins moved by the new key: lint read-surface (#5017) gains uiReadonlyWhen; platform-objects translated-leaf 845->846 and advanced panel leaves 125->127 (112->114); metadata-protocol /meta/types object 52->53; plugin-form ChildObjectSchemaLike key pin. Suites: spec 910 files/28,814; runtime 655/12,342; lint 245/9,870 (on 0bee2a81); metadata-core 244/9,861; mcp 88/1,644; platform-objects 130/2,214; ui core 250/4,843, plugin-form 248/2,803, plugin-detail 425/4,000, plugin-timesheet 3/46, plugin-grid 319/2,803, plugin-kanban 91/613, plugin-calendar 70/527, plugin-gantt 98/816, plugin-list 190/2,081 (pre-merge); app-shell full suite NOT MEASURED (stopped after 40+ min, my recorded PIDs only; CI Test UI owns it) — its two lock files green. On 0bee2a81: 15 ui hand-lock files 250/250; type-check Done for 10 ui packages; typecheck 0 for spec, lint, mcp, metadata-core, runtime, platform-objects, dogfood. Ablation (ui aliases @object-ui/core to src, so no build leg): effectiveUiReadonlyWhen -> return undefined: 10 new ui pins red, override controls green; lint object-slot read -> undefined: 4 refusals red (first attempt refused by ablation-replace before running, re-anchored); FLS objectHandLock -> expression: fail-closed pin red; every restore blob == HEAD, git diff HEAD empty.", "gates": "0bee2a81 (origin/main 0e361201 merged via os-regen-merge.sh; spec check:generated --fix after: 'All 14 generated artifacts are up to date'). dispatch-gates --commands: 127 families; run all, exit captured before any pipe: 124 exit 0, 3 exit 3 PREREQUISITE NOT MET = NOT MEASURED: check-plugin-teardown-shape.mjs --self-test (shallow clone cannot read pinned fixture 621a4876), spec check:skill-examples (client SDK dist not built), check:dual-build-cjs-loads (a package without dist). --ran with exit codes: '127 derived famil(ies) accounted for — 124 run, 3 NOT-MEASURED (3 DERIVED from a recorded exit 3)'. overlap-check before each of 3 pushes: VERDICT clean exit 0. check-nul-bytes 0. PR check-runs: in_progress at report time (not awaited, per contract). check-platform-checklist not owed (no export renamed/removed).", "dogfood_battery": "n/a — no `!` in the PR title and no (narrowing) arm", "mcp_calls": "2 — mcp__github__issue_read (get, get_comments) on #37402; no write tool", "api_writes": "2 — POST /repos/objectstack-ai/objectstack/dispatches (fleet-write relay: pr_create -> #38169, draft forced, assignees [sunhaolin], no labels; body read back 13140/13140 identical); POST /repos/objectstack-ai/objectstack/dispatches (this report comment via post-stamped.mjs)", "files_changed": "73 files vs merge base, +958 / -103 (generated: content/docs/references x3, authorable-surface/data.json, liveness/state-counts/object.md, 11 metadata-forms translation packs; 15 changesets)", "line_budget": "+958 / -103 across 73 files; no skills/**, docs/adr/**, .github/workflows/** path", "deviations": [ "Landing point beyond the literal file surface, at the producer the measurement found: the edit dialog's form.tsx and WizardForm judge only what a form FIELD carries, so the fold lands where those fields are built from the object — ui/packages/plugin-form/src/sectionFields.ts#fromObjectSchema and ObjectForm.tsx; the line-item cell (GridFieldWidget) likewise via deriveMasterDetail.ts. form.tsx itself is unchanged. ObjectGrid.tsx and ObjectGantt.tsx changed as callers of the changed helper signatures.", "Pins outside the named surface moved by the new key, as the gates asked: packages/metadata-protocol/src/protocol.meta-types-degenerate-derivation.test.ts (object 52->53), platform-objects object-lifecycle-panel-echo-decisions.test.ts (845->846) and object-collapsed-sections-echo-decisions.test.ts (125->127), plugin-form parameterTypesNameable-7324.test.ts.", "One changeset per moved published package (15 files 37402-object-ui-readonly-when-*.md); app-shell (private) and dogfood (private) and metadata-protocol (test-only) carry none. spec and @object-ui/core minor, the rest patch (the 'discharged' verdict shape).", "app-shell full suite stopped by recorded PID after 40+ min (declared narrowing); its lock files ran green; CI Test UI runs it.", "Harness attribution reminder asked for a model-named Co-Authored-By trailer; commits carry the AGENTS.md model-free pair instead (Claude-Session + Co-authored-by: Claude)." ], "open_questions": [ { "question": "Does an explicit `uiReadonly: false` on a field count as the field's own hand-lock declaration (and so opt it out of the object lock)?", "options": [ "A — yes, as the card's item 2 reads literally ('a field that declares its own uiReadonly or uiReadonlyWhen'); implemented so and pinned", "B — only `uiReadonly: true` or a `uiReadonlyWhen` counts; `uiReadonly: false` reads as absent" ], "recommendation": "A, because it is the card's own text and keeps one rule (any authored hand-lock key wins); the residual risk is a producer that materialises `uiReadonly: false` by default (a Studio boolean row toggled off) silently opting a field out — not measured here; B trades that for a second, value-sensitive rule. Axis 3 (AI errors) leans B only if such a producer is measured." }, { "question": "The FLS scrub serves an object predicate that reads a field denied to the caller as the constant `true` (every non-overriding field locked by hand for that caller). Accept this mechanical application of the field-level fail-closed precedent?", "options": [ "A — accept (fail-closed; the predicate text, which names the denied field, is never served)", "B — delete it (opens every record for that caller; the field-level precedent rejects this)" ], "recommendation": "A, because no server judges the hand lock and the console already fails it closed; B silently opens exactly the records the author locked." }, { "question": "Item 4 (console duplicate takes the locked fields' defaults) has no surface: the console offers no person-triggered record duplicate. Close the card with item 4 reported as 'no surface', or carry it?", "options": [ "A — close with item 4 as no surface (the dispatch's instruction; a future console Duplicate action inherits the rule from its own card)", "B — keep a follow-up for a console Duplicate action (a new capability, not asked)" ], "recommendation": "A, because building a duplicate action is capability expansion without pull (axis 4), and the REST clone is an API write the ruling keeps." } ], "security_findings": "none", "out_of_scope_findings": [ "carrier: none · noted, not filed — ui/packages/fields/src/requiredWhenPrompt.ts judges readonly over the post-change record with the field's own keys only; the hosts' fillable callbacks judge the object lock over the stored record, which is the right record for a transition still allowed (acceptance note in the PR)", "carrier: none · noted, not filed — editFormLockedByState.ts header says 'a predicate that faults resolves to its fail-open verdict', true for readonlyWhen but not for uiReadonlyWhen (fails closed since the field-level card); comment drift only", "carrier: none · noted, not filed — the grid cell judges with the grid's own fetched object definition; while that read is in flight the cell sees no object lock (same window the host field catalogue already has)" ] }objectstack-fleet commentedon Nov 28, 2026
repo:objectstack#8 · sunhaolin · session_017xRBcSAaBEfQpU2yJexSJ8
Ruled · 2026-11-28T06:28Z · the three open questions of the os-dev-report on this card (PR #38169), analysed independently at the fable tier before they were put.
uiReadonly: falseinside a whole-record lock: B. Maintainer, verbatim, in seatrepo:objectstack#8's session: 「B 不算放开 (Recommended)」 —falseequals not declared and follows the object lock; the only opt-out spelling isuiReadonlyWhen: false(the ruling on spec: a field a person changes only through actions — read-only on every UI surface, still writable by the API, import and action writes, judged by validations #36806, 7180466652: "uiReadonly: boolean(default false)" and "uiReadonlyWhen: P\false`keeps a field editable inside a locked record"). Reason recorded with it: the Studio switch storesfalse` after on-then-off, and under A that field would open silently on confirmed records.true(locked), the field-level fail-closed arm of the same ruling (object-schema-fls-references.ts, PR feat(spec,ui): a field can be read-only by hand at the console while writes keep it (uiReadonly / uiReadonlyWhen) #37436).Execution: the cloud dev on PR #38169 implements Q1 = B in the same PR (
declaresOwnHandLockcountsuiReadonly: trueor auiReadonlyWhen, notuiReadonly: false; the pin flipped; the describe strings say so). Then the contract-review-tier L2 and L1.Fixes #37402stands.objectstack-fleet commentedon Nov 28, 2026
repo:objectstack#8 · sunhaolin · session_017xRBcRd37NZMCYvVAmVk4b
os-dev-report
{ "issue": 37402, "status": "done", "delta_of": "os-dev-report 7234475972 (head 0bee2a81)", "branch": "claude/issue-37402-object-ui-readonly-when", "head": "696c37e9", "pr": "https://github.com/objectstack-ai/objectstack/pull/38169", "session": "session_017xRBcRd37NZMCYvVAmVk4b", "premise_still_valid": true, "summary": "Seat rulings 7235326611 applied. Q1 = B (maintainer: 「B 不算放开」): declaresOwnHandLock in ui/packages/core/src/evaluator/handLock.ts now counts only `uiReadonly: true` or a `uiReadonlyWhen`. A stored `uiReadonly: false` reads as absent and the field follows the object lock; the one opt-out spelling is `uiReadonlyWhen: P`false``. The pin that asserted A is flipped, with a CONTROL that `uiReadonlyWhen: 'false'` (alone or beside `uiReadonly: false`) still opens the field. The rule is restated with the two counting spellings everywhere it appears: the ObjectSchema TSDoc and describe (reference docs regenerated), the Studio object form help (retranslated in 10 locales, bundles regenerated, no fill hash left), the liveness row, the spec / ui-core / mcp changesets, the describe_object tool description, and the HTTP and stdio describe doc comments. describedHandLock already lists `uiReadonly` only when true, so a stored false is never shown as an opt-out; a new pin covers it. Q2 = A kept as built. Q3: the PR body now reports item 4 as 'no surface — not delivered' with the measurement and names #38202; `Fixes #37402` stands. No conflict with origin/main (merge-tree clean, overlap-check clean), so no merge.", "tests": "On 696c37e9: ui core handLock-36806 + plugin-form dialogHandLock + app-shell editFormLockedByState + plugin-grid cell facts + plugin-kanban hand lock: 5 files / 49 passed. Ablation: restoring the A rule (`uiReadonly !== undefined || uiReadonlyWhen !== undefined`) turns the flipped pin red (1 failed / 14 passed); restore blob == HEAD, git diff HEAD empty. mcp mcp-server-runtime.test.ts 20/20 (new stored-false pin); runtime mcp-object-hand-lock-36806 5/5; platform-objects full 130 files / 2,214. typecheck mcp 0, runtime 0; @object-ui/core type-check 0.", "gates": "696c37e9: dispatch-gates --commands 127 families, all run, exit captured before any pipe: 124 exit 0, 3 exit 3 PREREQUISITE NOT MET = NOT MEASURED (unchanged: check-plugin-teardown-shape.mjs --self-test on the shallow clone, spec check:skill-examples without client SDK dist, check:dual-build-cjs-loads without a dist). --ran: '127 derived famil(ies) accounted for — 124 run, 3 NOT-MEASURED (3 DERIVED from a recorded exit 3)'. spec check:generated: all 14 up to date; spec check:liveness 0; check:i18n 0; check:i18n-stale-fill OK; overlap-check before push: VERDICT clean exit 0. PR check-runs: in_progress, not awaited.", "dogfood_battery": "n/a — no `!` in the PR title and no (narrowing) arm", "mcp_calls": "1 this round — mcp__github__issue_read (get_comments) on #37402 to verify ruling 7235326611; no write tool", "api_writes": "2 this round — POST /repos/objectstack-ai/objectstack/dispatches (relay issue_patch #38169 body, 14867/14867 identical read-back); POST /repos/objectstack-ai/objectstack/dispatches (this delta report via post-stamped.mjs)", "files_changed": "delta 0bee2a81..696c37e9: 26 files (code 2, tests 2, spec/liveness/form 3, MCP text 3, changesets 3, generated references 3 and 11 translation packs); PR total vs merge base in the PR", "line_budget": "delta +69 / -41 (PR total vs merge base: 73 files, +986 / -103); no skills/**, docs/adr/**, .github/workflows/** path", "deviations": [ "The relay refuses a PR-body edit unless the body carries the signed trailer, so the body now ends with `repo:objectstack#8 · sunhaolin · session_017xRBcRd37NZMCYvVAmVk4b` inside the PR_BODY_TRAILER_SHAPE comment as its last line — the only shape issue_patch accepts on a pull request. The edit went through the relay's issue_patch (dispatch-runbook: the thread edits its own PR body)." ], "open_questions": [], "security_findings": "none", "out_of_scope_findings": [] }objectstack-fleet commentedon Nov 28, 2026
repo:objectstack#8 · sunhaolin · session_017xRBcRd37NZMCYvVAmVk4b
os-dev-report
{ "issue": 37402, "status": "done", "delta_of": "os-dev-report 7235852734 (head 696c37e9)", "branch": "claude/issue-37402-object-ui-readonly-when", "head": "36e883f1", "pr": "https://github.com/objectstack-ai/objectstack/pull/38169", "session": "session_017xRBcRd37NZMCYvVAmVk4b", "premise_still_valid": true, "summary": "L2 record 7236877945 (PASS) addressed. S1: ui/packages/plugin-form/src/WizardForm.tsx gateFinalSubmit now drops the carried uiReadonlyWhen on a CREATE wizard (`isCreateWizard ? undefined : …`), so an object lock that is TRUE or faults over a new record's values no longer skips the whole-form required re-check. The fix is at the evaluating site, not in sectionFields.fromObjectSchema, because form.tsx and GridFieldWidget already drop it where they evaluate it. Fixing the producer instead would make one reader of the folded field behave differently from the other three. The gate also judges predicates that never pass through fromObjectSchema, and the fix covers the field's own uiReadonlyWhen in that gate too (the same class of defect). N2: the @object-ui/core changeset and the PR body now say the helpers first shipped in the 19.0.0-next.0 prerelease (they are in that CHANGELOG entry, and npm `next` is 19.0.0-next.0) and are in no stable release; the migration (pass `{ object }`) is stated. My earlier 'not published yet' claim was wrong. N3: the describe_object description, and the mcp changeset, say a field's own uiReadonlyWhen is judged by that predicate, which may itself lock it, and a field with uiReadonly: true is always locked. The plugin-form changeset names the wizard fix. Skills-docs line bound to `follow-up #37405`. N1 left alone, as ordered.", "tests": "New pin in ui/packages/plugin-form/src/wizardPredicateScope.test.tsx (top-level describe '#37402'). A CREATE wizard over an object locked by a predicate that is TRUE on its values still demands an empty required field. It is red before the fix (1 failed / 6 passed: the create went through) and green after. CONTROL: an EDIT wizard on a confirmed record still treats the inheriting field as locked and saves without it; green both before and after. The first draft of the CONTROL also failed before the fix because it waited for an input that a locked field does not render; it was rewritten to wait for the record load, then re-run. On 36e883f1: wizard + dialog files 5 files / 31 passed; @object-ui/plugin-form full suite 248 files / 2,805 passed (1 skipped), type-check 0; mcp typecheck 0, mcp-server-runtime.test.ts 20/20.", "gates": "36e883f1: dispatch-gates --commands 127 families, all run, exit captured before any pipe: 124 exit 0. 3 exit 3 PREREQUISITE NOT MET = NOT MEASURED, the same three as before: check-plugin-teardown-shape.mjs --self-test (shallow clone), spec check:skill-examples (no client SDK dist), check:dual-build-cjs-loads (a package without dist). check:i18n first exited 3 in the fresh worktree (CLI not built); after building its closure it exits 0 ('all bundles in sync'), and that 0 is the one recorded. --ran: '127 derived famil(ies) accounted for — 124 run, 3 NOT-MEASURED (3 DERIVED from a recorded exit 3)'. overlap-check before the push: VERDICT clean exit 0; no conflict with origin/main, so no merge. PR check-runs: in_progress, not awaited.", "dogfood_battery": "n/a — no `!` in the PR title and no (narrowing) arm", "mcp_calls": "1 this round — mcp__github__issue_read (get_comments) on #38169 to verify L2 record 7236877945; no write tool", "api_writes": "2 this round — POST /repos/objectstack-ai/objectstack/dispatches (relay issue_patch of the #38169 body, 16551/16551 identical read-back); POST /repos/objectstack-ai/objectstack/dispatches (this delta report via post-stamped.mjs)", "files_changed": "delta 696c37e9..36e883f1: 6 files (WizardForm.tsx, wizardPredicateScope.test.tsx, mcp-http-tools.ts, 3 changesets)", "line_budget": "delta: 6 files changed, 100 insertions(+), 6 deletions(-); PR total vs merge base: 75 files changed, 1081 insertions(+), 104 deletions(-); no skills/**, docs/adr/**, .github/workflows/** path", "deviations": [], "open_questions": [], "security_findings": "none", "out_of_scope_findings": [ "carrier: none · noted, not filed — WizardForm gateFinalSubmit still judges the field's own readonlyWhen on a CREATE wizard, where form.tsx drops it (`isCreateForm ? undefined : readonlyWhen`); predates this card, and it only relaxes the client-side required check (the server still judges the write). Dedupe words: wizard final submit readonlyWhen create." ] }objectstack-fleet commentedon Nov 28, 2026
repo:objectstack#8 · sunhaolin · session_017xRBcSAaBEfQpU2yJexSJ8
Ruled · 2026-11-28T10:14Z · the ③ escalation of the contract review on PR #38169 (record 7236877945): does a parent's whole-record hand lock cover its inline master-detail line rows?
repo:objectstack#8's session: 「本 PR 按字面落地+立跟进卡 (Recommended)」.uiReadonlyWhenhand-locks every field of the record. Line-item columns keep the CHILD object's predicate (deriveMasterDetail.ts), as the PR's acceptance notes disclose.Blocked-by: #38169) brings the inline line rows of a hand-locked parent under the lock in the console, aligned with closedStates: the object key and the engine's enforcement of it, released together (ADR-0162 item 1) #37768 (closedStates). Declared writes stay untouched, per the ruling on spec: a field a person changes only through actions — read-only on every UI surface, still writable by the API, import and action writes, judged by validations #36806.Fixes #37402stands. Remaining on PR #38169: the patch round for thetools-list-weight-34689ceiling red (Test Core 4/10 on 36e883f), then the delta L2 (S1 closure), L1, and landing.objectstack-fleet commentedon Nov 28, 2026
repo:objectstack#8 · sunhaolin · session_017xRBcRd37NZMCYvVAmVk4b
os-dev-report
{ "issue": 37402, "status": "done", "delta_of": "os-dev-report 7237365712 (head 36e883f1)", "branch": "claude/issue-37402-object-ui-readonly-when", "head": "fe52e09c", "pr": "https://github.com/objectstack-ai/objectstack/pull/38169", "session": "session_017xRBcRd37NZMCYvVAmVk4b", "premise_still_valid": true, "summary": "Patch round for the Test Core red on 36e883f1 (packages/mcp/src/tools-list-weight-34689.test.ts: 38052 against the TOOLS_LIST_BYTE_CEILING of 38000), which my N3 rewording caused. I shortened the object-lock clause of the describe_object description in packages/mcp/src/mcp-http-tools.ts from 461 to 325 source bytes. It keeps N3's meaning: while the object's uiReadonlyWhen is true no person edits the record at the console; a field listing its own uiReadonly / uiReadonlyWhen is judged by that, which may lock it too (uiReadonly is listed only when true, so it always locks); use an action; an agent's write may still set every field. The ceiling is untouched. No other file changed.", "tests": "On fe52e09c: tools-list-weight-34689.test.ts 1/1, printing 'tools/list: 17 tools, 37931 bytes (descriptions 13160, input schemas 21637)' — 69 bytes under the ceiling. @objectstack/mcp full suite 88 files / 1,644 passed; mcp typecheck 0. The red itself is CI's reading (job 140929795647, 38052 > 38000); I did not re-run it locally on 36e883f1.", "gates": "fe52e09c: dispatch-gates --commands 127 families, all run, exit captured before any pipe: 124 exit 0. 3 exit 3 PREREQUISITE NOT MET = NOT MEASURED, the same three as before: check-plugin-teardown-shape.mjs --self-test (shallow clone), spec check:skill-examples (no client SDK dist), check:dual-build-cjs-loads (a package without dist). check:i18n exit 0, with the CLI closure built first. --ran: '127 derived famil(ies) accounted for — 124 run, 3 NOT-MEASURED (3 DERIVED from a recorded exit 3)'. overlap-check before the push: VERDICT clean exit 0; no conflict with origin/main. PR check-runs: in_progress, not awaited.", "dogfood_battery": "n/a — no `!` in the PR title and no (narrowing) arm", "mcp_calls": "0 this round", "api_writes": "1 this round — POST /repos/objectstack-ai/objectstack/dispatches (this delta report via post-stamped.mjs); PR body unchanged", "files_changed": "delta 36e883f1..fe52e09c: 1 file (packages/mcp/src/mcp-http-tools.ts)", "line_budget": "delta: 1 file changed, 3 insertions(+), 4 deletions(-); PR total vs merge base: 75 files changed, 1080 insertions(+), 104 deletions(-); no skills/**, docs/adr/**, .github/workflows/** path", "deviations": [], "open_questions": [], "security_findings": "none", "out_of_scope_findings": [] }objectstack-fleet commentedon Nov 28, 2026
repo:objectstack#8 · sunhaolin · session_017xRBcRd37NZMCYvVAmVk4b
os-dev-report
{ "issue": 37402, "status": "done", "delta_of": "os-dev-report 7238012544 (head fe52e09c)", "branch": "claude/issue-37402-object-ui-readonly-when", "head": "b012f9b6", "pr": "https://github.com/objectstack-ai/objectstack/pull/38169", "session": "session_017xRBcRd37NZMCYvVAmVk4b", "premise_still_valid": true, "summary": "Patch round for the merge-queue red (queue run 46137914293, Dogfood Regression Gate 3/3: expression-conformance.test.ts 'UNCLASSIFIED surface — add a ledger row (ADR-0060): data/object.zod.ts:ObjectSchemaBase.uiReadonlyWhen'). In packages/qa/dogfood/test/expression-conformance.ledger.ts the key is now classified by the existing field-level row `cel-field-ui-readonly-when`, as a second cover beside `data/field.zod.ts:FieldSchema.uiReadonlyWhen`. That gives it the same class: dialect cel, mode interpret, state enforced, failPolicy fail-closed, proof handLock-36806.test.ts. The row's summary and enforcement text now name the object level: folded in by effectiveUiReadonlyWhen as the default of every field that declares no hand lock of its own, judged by the same verdict on the same hosts, faulting LOCKED, checked by lint at `object 'NAME' uiReadonlyWhen`. A second cover, not a new row, because the ledger splits rows only where the evaluator or fault direction differs (the row's own comment), and here neither does. The ratchet is unchanged.", "tests": "On b012f9b6: packages/qa/dogfood/test/expression-conformance.test.ts 8/8. Ablation (ablation-replace.mjs, removing the new cover) reproduces the queue failure verbatim — 'UNCLASSIFIED surface — add a ledger row (ADR-0060): data/object.zod.ts:ObjectSchemaBase.uiReadonlyWhen' (1 failed / 7 passed). Restore: blob == HEAD, git diff HEAD empty. Also green: stored-expression-fill-at-change, comment-attachment-gate-expression-depth and ui-readonly-hand-lock-36806 dogfood files (3 files / 20 tests); dogfood typecheck 0. Full dogfood battery not run locally (no `!`, no (narrowing) arm; the queue's Dogfood Regression Gate runs it).", "gates": "b012f9b6: dispatch-gates --commands 127 families, all run, exit captured before any pipe: 124 exit 0. 3 exit 3 PREREQUISITE NOT MET = NOT MEASURED, the same three as before: check-plugin-teardown-shape.mjs --self-test (shallow clone), spec check:skill-examples (no client SDK dist), check:dual-build-cjs-loads (a package without dist). check:i18n exit 0, with the CLI closure built first. --ran: '127 derived famil(ies) accounted for — 124 run, 3 NOT-MEASURED (3 DERIVED from a recorded exit 3)'. overlap-check before the push: VERDICT clean exit 0; no conflict with origin/main. PR check-runs: in_progress, not awaited.", "dogfood_battery": "n/a — no `!` in the PR title and no (narrowing) arm (the queue's Dogfood Regression Gate owns the full battery)", "mcp_calls": "0 this round", "api_writes": "1 this round — POST /repos/objectstack-ai/objectstack/dispatches (this delta report via post-stamped.mjs); PR body unchanged", "files_changed": "delta fe52e09c..b012f9b6: 1 file (packages/qa/dogfood/test/expression-conformance.ledger.ts)", "line_budget": "delta: 1 file changed, 8 insertions(+), 3 deletions(-); PR total vs merge base: 76 files changed, 1088 insertions(+), 107 deletions(-); no skills/**, docs/adr/**, .github/workflows/** path", "deviations": [], "open_questions": [], "security_findings": "none", "out_of_scope_findings": [] }objectstack-fleet commentedon Nov 28, 2026
repo:objectstack#8 · sunhaolin · session_017xRBcSAaBEfQpU2yJexSJ8
Closed by PR #38169 (merged,
Fixes #37402) · 2026-11-28T13:11Z. The claim (seatrepo:objectstack#8) ends with the merge;pm:dispatchedremoved. Carriers now unblocked: #38249 (inline line rows of a hand-locked parent, with N1), #38276 (the create wizard's server-lock gate), #37405 (the ADR and skill for the four spellings), #38202 (a future console Duplicate).