Skip to content

feat(spec,ui): a field can be read-only by hand at the console while writes keep it (uiReadonly / uiReadonlyWhen) - #37436

Merged
objectstack-fleet[bot] merged 15 commits into
mainfrom
claude/project-thread-zjehmt
Nov 26, 2026
Merged

objectstack-fleet[bot] merged 15 commits into
mainfrom
claude/project-thread-zjehmt

Conversation

@objectstack-fleet

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

Copy link
Copy Markdown
Contributor

Requested by Bill · project thread

repo:objectstack#5 · os-bill · session_01Utp6CbdHk3orAeensH6EzS

Fixes #36806

Clause-②: yes
Metadata-protocol: added
Skills-docs: follow-up #37405

维护者速读

What changes

Ruling 7180466652 (scope items 1–6), surface per claim 7180490513 and amends 7180683371, 7181406682, amend 3 and 7182190475.

Spec (packages/spec)

  • Field.uiReadonly: boolean and Field.uiReadonlyWhen (CEL, the same scope as readonlyWhen), both optional with no default (absent = unlocked, so no parsed field grows a key), with describes and TSDoc.
  • The field superRefine refuses uiReadonly: true beside readonly: true at ['uiReadonly'] (every door that parses a field). uiReadonlyWhen beside readonlyWhen is accepted.
  • deriveInlineGridColumns skips a uiReadonly child field, as it skips readonly.
  • Liveness rows uiReadonly / uiReadonlyWhen (live); regenerated reference docs, authorable-surface record and state counts.
  • Studio field form (field.form.ts) offers both rows beside readonly / readonlyWhen (uiReadonlyWhen as a CEL code row). The label and help text of each are translated in all 11 metadata-forms locale packs (packages/platform-objects, the generator re-run after the leaf values, so no fill hash is left); the translated-leaf count pin moves 837 → 839.

Console (ui/packages/**)

  • @object-ui/core: fieldReadOnlyByHand(def, record?, ctx?), fieldStaticallyReadOnlyByHand(def), fieldHasConditionalHandLock(def) (new evaluator/handLock.ts). resolveFieldRuleState takes uiReadonlyWhen (rules) and uiReadonly (statics) into its readonly verdict; a faulted uiReadonlyWhen fails CLOSED (no server judges it), unlike readonlyWhen.
  • Hand surfaces swapped to the helper: create/edit dialogs (filterSystemFields, filterCreateModeFields, disabled) and the submitted payload (sanitize.ts); form renderer and wizard pass uiReadonlyWhen; record page inline edit (DetailSection, InlineEditSaveBar, RecordDetailPanel, stage path), highlight-strip chip (HeaderHighlight), related list; grid inline edit (fieldInlineReadOnlyKind, cellReadOnlyKind now judges the row, which the data table's paste and multi-row staging read) and the required prompt; kanban drag (cardsMovable and a refused handleCardMove); calendar drag (onEventDrop, endEditable, and the drop handler over the record); line-item grid (deriveMasterDetail carries uiReadonlyWhen onto the column; GridFieldWidget folds it per row); edit-form state lock (editFormLockedByState).
  • Stays on raw readonly: import mapping (importTargetFields.ts), Studio/designer reads, calendar quick-create's required exemption (it mirrors the engine insert).

Server

  • Engine untouched (packages/objectql/**): the strip keys on readonly alone, so REST, import, actions and flows write a hand-locked field and the object's validations judge each write.
  • MCP describe_object reports uiReadonly / uiReadonlyWhen as their own keys where set, on HTTP (runtime/domains/mcp.ts) and stdio (mcp/mcp-server-runtime.ts); the tool description names them (mcp-http-tools.ts).
  • FieldSchema key censuses classify both keys: driver-sql storage class (presentation), metadata-core FLS reference positions (uiReadonly: keep, uiReadonlyWhen: expression), /meta/types field count 87 → 89.

Review rework (L1 7183712080, contract record 7183704697)

  • S1 Every surface passes the host predicate scope (usePredicateScope) to fieldReadOnlyByHand: grid cell, record page (inline edit, highlight chip, save bar, stage path), kanban drop, calendar drop. The grid's own row load (objectGridRowLoad.ts) and ListView's $select fetch the operands of the readonlyWhen / uiReadonlyWhen of every shown column, the kanban lane field and the calendar start / end fields, through the same FLS and declared-field gates as the other harvests.
  • S2 A uiReadonlyWhen that cannot be evaluated (a parse error, an operand the row lacks, an unbound root) fails CLOSED (UI_READONLY_WHEN_FAULTED): no server judges the hand lock, so the field locks. The edit form refuses to submit and names the field and the rule (form.uiReadonlyWhenFaulted, all 11 ui locales). os validate checks the slot as it checks readonlyWhen (validate-expressions.ts: the record-scoped check plus the field-rule root verdict, with its own consequence clause).
  • S3(a) hydrateColumns carries the child field's uiReadonly / uiReadonlyWhen onto an authored line-item column, typed or not; GridFieldWidget locks a uiReadonly column on every row. Gantt, timesheet, swimlane, the assistant and N3 palettePrefillField are uiReadonly / uiReadonlyWhen: honour the hand lock on the remaining console surfaces — Gantt drag and in-place edit, timesheet cell write, kanban swimlane drag, the in-app assistant acting for a person, and palette prefill #37448.
  • S4 uiReadonlyWhen is judged on an existing record only: the describe, the liveness note and the Studio help say so (help retranslated in 10 locales, generator re-run, no fill hash).
  • Narrowing, N2 Both describes and the describe_object text name the surfaces that honour the keys; uiReadonly's describe says a required field without defaultValue fails every console create.
  • N1 Changeset lines for metadata-core, platform-objects, lint, plugin-list, i18n.

Delta rework (contract 7186595753, L1 7186604968)

Main merge and queue fix

  • 3eb2bcf8 merges main after feat(units): show a quantity with its unit label (#35490) #37449 landed and keeps both ...lockOperandFields and ...quantityUnitFields in extraFields. 73681b48 regenerates object.mdx from the merged tree.
  • 30090e73 adds the expression-conformance ledger row cel-field-ui-readonly-when for data/field.zod.ts:FieldSchema.uiReadonlyWhen (packages/qa/dogfood/test/expression-conformance.ledger.ts: cel, interpret, enforced, fail-closed, UI only, proof handLock-36806.test.ts). The row was added after a merge-queue dequeue (run 45802787226), because PR-side CI does not run packages/qa/dogfood/test/expression-conformance.test.ts. That test now passes 8 of 8 locally.

Tests

  • packages/spec/src/data/field-ui-readonly.test.ts: parse and absence, the refusal (code custom, path, message) at the field and object doors, controls, line-item column skip.
  • packages/qa/dogfood/test/ui-readonly-hand-lock-36806.dogfood.test.ts (booted stack, HTTP): a PATCH to the uiReadonly field lands with no X-ObjectStack-Dropped-Fields (control: the readonly sibling is stripped and advertised); the state_machine refuses an illegal move with status 400, code VALIDATION_FAILED and its own message on the PATCH, action and import doors; a create without the field lands on defaultValue; an API create outside initialStates is refused by the machine.
  • packages/runtime/src/domains/mcp-object-hand-lock-36806.test.ts and a block in packages/mcp/src/__tests__/mcp-server-runtime.test.ts: both keys reported only where set, never folded into readonly.
  • UI pins, each surface locked: core/evaluator/__tests__/handLock-36806.test.ts, plugin-form/__tests__/dialogHandLock-36806.test.ts, plugin-detail/__tests__/DetailSection.doubleClickEdit.test.tsx (hand-lock block), plugin-grid/objectGridCellFacts.handLock-36806.test.ts, plugin-kanban/ObjectKanban.handLock-36806.test.tsx, plugin-calendar/__tests__/ObjectCalendar.handLock-36806.test.tsx, fields/widgets/GridField.handLock-36806.test.tsx, plugin-form/deriveMasterDetail.test.ts (line-item block); types FormField coverage list gains uiReadonlyWhen.

Acceptance notes

Verification

Local, per os-dev local verification scope (CI runs the full farm):

  • Pins: all new tests pass (spec 5, dogfood 6, runtime MCP 3, mcp stdio block, core 6, dialogs 2, record page 2, grid 4, kanban 4, calendar 5, line-item grid 2 + 1).
  • Package suites: spec 28,424 passed after the form rows (the one red before them was the form reconciliation pin, fixed by offering the rows); runtime 12,030; mcp 1,512; driver-sql 4,551; metadata-core 1,061; metadata-protocol 23,435; platform-objects 2,161; ui core 4,797, types 10,512, fields 5,033. The remaining ui package suites are reported in the final-head comment.
  • Typechecks green: spec, runtime (incl. test typecheck), mcp, dogfood, metadata-core, driver-sql, and type-check in 10 ui packages.
  • Ablations (each mutation proven on disk, restored, tree clean):
    • UI read-only pin: fieldStaticallyReadOnlyByHand without uiReadonly → 8 pins red across kanban, calendar, record page, dialogs and grid.
    • Write-keeps pin: the engine strip (rule-validator.ts) also stripping uiReadonly, built to dist (marker in 4 files) → 4 dogfood pins red (PATCH, the machine's refusal on PATCH, action and import); restored, rebuilt, marker absent.
  • dispatch-gates --commands: 124 derived commands run. Reds not from this diff: check-plugin-teardown-shape --self-test (shallow clone cannot reach its pinned fixture commit), check:platform-checklist (ABSENT SYMBOL FlowItemMoreMenu in areas/automation.json; neither file is in this diff), check:dual-build-cjs-loads (prerequisite: unbuilt packages, nothing measured).
  • Rework (head 309363d): new pins core 4, grid cell 2 + harvest 4, ListView 5, form refusal 4, line-item 2, lint 5. Suites green: ui core 4,800, i18n 2,028, components 4,996, fields 5,034, plugin-form 2,796, plugin-grid 2,800, plugin-list 2,075, plugin-detail 3,970, plugin-kanban 585, plugin-calendar 515; lint 9,634; spec data 6,865; mcp 1,512; platform-objects translations 610. type-check green in 9 ui packages and lint; check:generated --fix re-checked clean.
  • Rework ablations (each mutation landed on disk and was restored): fail-open fault → 6 pins red (core, grid, form); grid harvest dropped → harvest pins red; ListView harvest emptied → 3 red; form refusal off → 2 red; withHandLock static half off → 1 red; GridField static read off → 1 red; lint slot dropped → 4 red.
  • Delta rework (S5, S6, N6): pins GridField new line, FLS scrub ×3, form readonlyWhen short-circuit; ablations: each mutation turns its pin red (S5 1, S6 1, N6 1), restored. metadata-core 1,064, fields 5,035, plugin-form 2,796, components form 643 green; typechecks green.
  • overlap-check: clean against main and every open PR except the feat(spec)!: form is a metadata type of its own, and the form doors read a form over both types #37422 count pin and the feat(units): show a quantity with its unit label (#35490) #37449 union line above.

🤖 Generated with Claude Code

https://claude.ai/code/session_01Utp6CXSuJCALDHFWaV6Bv5

…the dialog surfaces (WIP)

Co-Authored-By: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Utp6CXSuJCALDHFWaV6Bv5
…t reports uiReadonly / uiReadonlyWhen (WIP)

Co-Authored-By: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Utp6CXSuJCALDHFWaV6Bv5
…acts and liveness rows (WIP)

Co-Authored-By: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Utp6CXSuJCALDHFWaV6Bv5
…e, grid, line-item grid, kanban, calendar (WIP)

Co-Authored-By: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Utp6CXSuJCALDHFWaV6Bv5
…y / uiReadonlyWhen in the FieldSchema key censuses

Co-Authored-By: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Utp6CXSuJCALDHFWaV6Bv5
…and uiReadonlyWhen, translated in every metadata-forms locale

Co-Authored-By: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Utp6CXSuJCALDHFWaV6Bv5
… 837 → 839 for the two hand-lock rows

Co-Authored-By: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Utp6CXSuJCALDHFWaV6Bv5
@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 26, 2026
@github-actions

github-actions Bot commented Nov 26, 2026 •

Copy link
Copy Markdown
Contributor

📓 Docs Drift Check

This PR changes 7 package(s): @objectstack/driver-sql, @objectstack/lint, @objectstack/mcp, @objectstack/metadata-core, @objectstack/platform-objects, @objectstack/runtime, @objectstack/spec, touching 29 documentable anchor(s). ⚠️ 3 changed file(s) yielded no anchor (packages/spec/authorable-surface/data.json, packages/spec/liveness/field.json, packages/spec/liveness/state-counts/field.md), so the pages documenting them are NOT COVERED by this run — this is not a clean bill of health for those files.

35 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 276174ab0c70804700b196d4d718268331be8120.

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

What this run could not see
  • 3 changed file(s) yielded no anchor (packages/spec/authorable-surface/data.json, packages/spec/liveness/field.json, packages/spec/liveness/state-counts/field.md) — pages documenting those are invisible to this run
  • 1 name(s) were too generic to anchor anything (single lowercase words)
  • the SDK route bridge reached 69 of 252 client-bound route-ledger rows — the other 183 have no registrar path: tail to select them, so pages documenting THEIR client methods cannot appear above, on this or any run. Of those 183: 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; 124 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 — 188 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 276174ab0c70804700b196d4d718268331be8120 → packageMentionDocs.

Which tree this was computed on

This run read content/docs from 390517a26f3435300698f611631f9180c0de4501 — the merge of head 8a1e714518c4ffe5f1541dfe031d0da9a2f016e1 into base 276174ab0c70804700b196d4d718268331be8120, 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 390517a26f3435300698f611631f9180c0de4501 && git checkout 390517a26f3435300698f611631f9180c0de4501
# afterwards, rebuild it from the two parents, which stay fetchable
git fetch origin 276174ab0c70804700b196d4d718268331be8120 8a1e714518c4ffe5f1541dfe031d0da9a2f016e1 && git checkout -B drift-repro 276174ab0c70804700b196d4d718268331be8120 && git merge --no-ff 8a1e714518c4ffe5f1541dfe031d0da9a2f016e1

node scripts/docs-audit/affected-docs.mjs --json 276174ab0c70804700b196d4d718268331be8120

⚠️ 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 276174ab0c70804700b196d4d718268331be8120 → 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#5 · os-bill · session_01Utp6CbdHk3orAeensH6EzS

Final head for L1 + L2 · area o5-D · 2026-11-26T05:30Z
Head-sha: 62c400a2324b48eb957673f7012930788a4d6581
Check-runs at this head: 70 completed — 61 success, 9 skipped, 0 failure. Draft.
Diff: +1607 −49, 68 files — packages/spec (uiReadonly / uiReadonlyWhen on FieldSchema, the uiReadonly + readonly refusal, the Studio field-form rows, generated artefacts), the metadata-forms locale packs (new leaves only, amendment 7182190475), 10 ui/packages/* hand surfaces through one helper, packages/runtime + packages/mcp describe (HTTP and stdio twins), three key-census pins, tests. Clause-②: yes · Metadata-protocol: added · Skills-docs: follow-up #37405. Not governed; owes the contract-review-tier L2 (a new authorable spec key).
Scope: ruling 7180466652 scope 1–6, phase 1 (field level). Surface amendments on the card: 7181406682 (census pins + MCP stdio twin), 7182109621 (Studio form rows), 7182190475 (new locale leaf values only).
Evidence: os-dev-report 7183535050 — ablations (UI pin → 8 red; server write-keeps pin → 4 dogfood red; restored); A4 proven over HTTP (PATCH, import and action each write the uiReadonly field; the state_machine refuses with 400 VALIDATION_FAILED and its message).
Non-diff local gate reds (all red on main in this container or unmeasured prerequisites): check-plugin-teardown-shape --self-test (shallow clone), check:platform-checklist FlowItemMoreMenu anchor (identical on main), check:dual-build-cjs-loads (prerequisite missing), check:skill-examples (exit 0 once client-react is built).
Known overlap: #37422 moves the same count pins in object-lifecycle-panel-echo-decisions.test.ts; whichever lands second merges main and re-adds its delta.

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#5 · os-bill · session_01Utp6CYtTDvfPQDzMbZnN5X

Contract-review-claim: session_01Utp6CYtTDvfPQDzMbZnN5X · head 62c400a · 2026-11-26T05:31Z

The seat runs the at-tier contract review of this head through an isolated sub-agent; L1 is the seat's own.

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#5 · os-bill · session_01Utp6CYtTDvfPQDzMbZnN5X

Contract review

Served-tier: CONTRACT_REVIEW_TIER
Head-sha: 62c400a2324b48eb957673f7012930788a4d6581
Local-runs: none
Scope: packages/spec/src/data/field.form.ts, packages/spec/src/data/field.zod.ts, packages/spec/src/data/inline-grid-columns.ts + ui/packages/core/src/evaluator/handLock.ts, ui/packages/core/src/evaluator/fieldRules.ts, ui/packages/components/src/renderers/form/form.tsx, ui/packages/plugin-form/src/autoLayout.ts, ui/packages/plugin-form/src/sectionFields.ts, ui/packages/plugin-form/src/ObjectForm.tsx, ui/packages/plugin-form/src/WizardForm.tsx, ui/packages/plugin-form/src/sanitize.ts, ui/packages/plugin-form/src/deriveMasterDetail.ts, ui/packages/plugin-detail/src/DetailSection.tsx, ui/packages/plugin-detail/src/HeaderHighlight.tsx, ui/packages/plugin-detail/src/InlineEditSaveBar.tsx, ui/packages/plugin-detail/src/RecordDetailPanel.tsx, ui/packages/plugin-detail/src/RelatedList.tsx, ui/packages/plugin-detail/src/renderers/recordPathStageChange.tsx, ui/packages/plugin-grid/src/inline-edit-options.ts, ui/packages/plugin-grid/src/objectGridCellFacts.ts, ui/packages/plugin-grid/src/objectGridRequiredPrompt.tsx, ui/packages/plugin-grid/src/ObjectGrid.tsx, ui/packages/plugin-kanban/src/ObjectKanban.tsx, ui/packages/plugin-calendar/src/ObjectCalendar.tsx, ui/packages/fields/src/requiredWhenPrompt.ts, ui/packages/fields/src/widgets/grid-field/GridFieldWidget.tsx, ui/packages/app-shell/src/utils/editFormLockedByState.ts, ui/packages/types/src/form.ts, ui/packages/types/src/zod/form.zod.ts, packages/runtime/src/domains/mcp.ts, packages/mcp/src/mcp-server-runtime.ts, packages/mcp/src/mcp-http-tools.ts, packages/metadata-core/src/object-schema-fls-references.ts, packages/drivers/driver-sql/src/builtin-column-collision.ts, packages/spec/liveness/field.json

Inputs read: card #36806 body and all 10 comments (analysis 7179210173, ruling 7180466652, claim 7180490513, amendments 7180683371 / 7181406682 / 7182109621 / 7182190475, os-dev-report 7183535050); PR #37436 body and its 3 comments (final-head 7183553330); the net diff origin/main...62c400a2 (68 files, +1607 −49); the check-runs on the head: 70 completed, 61 success, 9 skipped, 0 failure, no name with a failing newer run. Code outside the diff was read, not reviewed.

① Derived judgments

  • Accept-set: Field.uiReadonly (boolean, optional) and Field.uiReadonlyWhen (CEL input, optional). A widening: every document that parsed before parses the same; a document that authors neither key parses to the same output (no default is materialised). Right.
  • Accept-set: uiReadonly: true beside readonly: true refused at ['uiReadonly']. A refusal only on documents that author the NEW key, so no shipped document is narrowed. It rides the existing field superRefine, so the object door inherits it; ruling 7180466652 item 2 asks for exactly this, and uiReadonlyWhen beside readonlyWhen stays accepted as ruled. Right.
  • Public surface, spec: deriveInlineGridColumns skips a uiReadonly child field. Derived output changes only for a field that authors the new key. Right. (The authored-column path is S3.)
  • Public surface, spec: Studio fieldForm gains two rows. Additive; required by the form/Zod reconciliation pin (amendment 7182109621). Right.
  • Public surface, @object-ui/core: three new exports and two new optional inputs on resolveFieldRuleState (rules.uiReadonlyWhen, statics.uiReadonly), one new optional key on FieldRuleFaults. Additive; existing callers are unchanged. minor is right.
  • Public surface, @object-ui/types: FormField.uiReadonlyWhen and its wire schema row. Additive. Right.
  • Behaviour change beyond the new keys, grid: cellReadOnlyKind now judges readonlyWhen per row as well (it read only the static flag before). The server already drops those writes, so the cell now says what the server would do. Right in direction; its evaluation context is S1.
  • Behaviour change beyond the new keys, kanban: a readonly lane field no longer drags (the PATCH was silently stripped before). Declared in the PR body and the changeset; ruled as the side finding in 7180466652 item 3. Right.
  • MCP describe_object: two new optional keys on a field entry, present only where authored, never folded into readonly; HTTP (packages/runtime/src/domains/mcp.ts) and stdio (packages/mcp/src/mcp-server-runtime.ts) carry the same function body, both reading the served field and both accepting the string and the { source } envelope. The twins match. Right.
  • Census pins: FIELD_KEY_STORAGE_CLASS (presentation for both), FIELD_REFERENCE_POSITIONS (uiReadonly: keep, uiReadonlyWhen: expression), /meta/types field count 87 to 89, liveness 111 to 113 live. Each classification matches the sibling readonly / readonlyWhen row. Right.
  • Server write paths: no file under packages/objectql, packages/rest or packages/lint is in the diff, and outside spec and the generated locale packs the keys are named only by the two census tables, the MCP describe twins and tests. No server path refuses or accepts a write because of either key. Right, and it is what ruling item 5 asks.

② Semver level

  • Clause-②: yes on the PR body and the changeset, with Metadata-protocol: added and Skills-docs: follow-up #37405: correct. Two new authorable keys widen the authoring contract; nothing is narrowed for a document that existed before.
  • @objectstack/spec: minor, @object-ui/core: minor, the rest patch: matches what the diff publishes.
  • The four published packages the L1 face flags as touched without an entry. All four sit in the fixed group of .changeset/config.json with @objectstack/spec, so no version moves either way; what is at stake is the changelog line.
    • @objectstack/metadata-core (1 file): entry owed. FIELD_REFERENCE_POSITIONS is read at runtime by the FLS scrub of a served object definition. Before the row a uiReadonlyWhen went the unclassified way; with it the predicate is scrubbed as a classified expression. That is shipped behaviour, and the changeset body does not say it.
    • @objectstack/platform-objects (12 files): entry owed. Eleven are generated locale packs under src/ carrying the new translated label and help-text leaves, which is published output; the twelfth is a test. The changeset body does not mention the Studio rows or their translations at all.
    • @objectstack/driver-sql (1 file): no behaviour moves (FIELD_KEY_STORAGE_CLASS[key] !== 'storage' skips an unclassified key exactly as it skips a presentation one); the exported table gains two rows. Earlier changesets for a new field key name this package ("Every-key tables classify the new key"), so an entry is the house precedent, not an obligation.
    • @objectstack/metadata-protocol (1 file): test-only, no entry owed.
    • N1 below carries the two owed entries.

③ Boundary flags

Dev deviations:

  • uiReadonly is .optional(), not .default(false). Accepted. Ruling item 1 writes "(default false)"; the observable meaning it rules, absent = unlocked, holds: every reader in the diff tests === true (or truthiness in deriveInlineGridColumns), and the describe says "Absent = false". The repo carries both shapes on FieldSchema and the recent keys take this one (showOnCreate, dueLike, trackHistory, internal, system); readonly and hidden keep the older .default(false). ADR-0049 and the liveness rules say nothing about defaults; the ledger rows are live with in-repo evidence either way. The cost is only that the parsed type is boolean | undefined beside readonly: boolean.
  • No screenshots. Accepted for this record: no example app declares either key and adding one is outside the claimed surface; the surfaces are pinned by UI tests and Test UI 1-16/16 and Build & E2E UI are green on the head. The maintainer-visible proof moves to hotcrm#2716's read-only line.
  • Two pushes before an overlap-check verdict. A process deviation, declared; nothing in the tree records harm. Not a contract matter.
  • Count pins overlap feat(spec)!: form is a metadata type of its own, and the form doors read a form over both types #37422. Accepted as declared: whichever lands second re-adds its delta; the pin fails loudly if it does not.
  • Ablation 2 mutated packages/objectql temporarily. Nothing under packages/objectql is in the diff. Accepted.
  • The four non-diff local reds (final-head comment 7183553330): the head's check-runs are the gate verdicts and none failed (Lint · repo & tooling gates, Lint & Repo Gates, Type Check · consumer gates all success). Not this diff's.

open_questions: none declared.

out_of_scope_findings with carrier: none, each answered:

  • lint CEL authoring check for uiReadonlyWhen not added: not accepted without a carrier, see S2.
  • kanban swimlane-field drag does not read the hand lock: not accepted without a carrier, see S3.
  • 11 hand-written pages name FieldSchema: accepted; advisory, and the generated field reference is regenerated here.

Escalated to the seat: ruling 7180466652 defines "by hand" to include "an in-app assistant acting for a person". The describe in field.zod.ts drops that member (and duplication, which has carrier #37402), and the describe_object tool text tells the reader "your write may still set it". describe_object is a tool name the in-app assistant shares with MCP (packages/spec/src/system/constants/platform-tool-names.ts). The assistant half of the ruled definition has no implementation, no carrier and no declared deviation. It needs a card, or a line in #37402 or #37405; it is part of S3.

SQL push-down: no finding. The diff adds no query, no id materialisation and no in-app join; the kanban and calendar reads are lookups in rows the surface already holds.

④ Design judgment

What holds, read against the ruling and the live tree: the static lock uiReadonly reaches every surface the ruling lists through one read (fieldStaticallyReadOnlyByHand): both dialogs and the payload (filterSystemFields, filterCreateModeFields, stripUnwritable), record-page inline edit and its save bar, the stage path, the highlight chip, the related list's derived add, grid inline edit and the cell gate the table's paste and multi-row staging read, kanban (drawn not movable AND refused in handleCardMove), calendar drag and resize, the derived line-item columns. The edit form drops a field it resolved read-only from the UPDATE payload, so a uiReadonlyWhen TRUE field is not round-tripped. No "bulk edit" surface exists apart from authored bulk actions, which are actions and so not by hand. The refusal, the MCP twins and the census rows are right (①). The findings are about the conditional half and about the edges of "every console surface".

S1 (should-fix) — uiReadonlyWhen is judged over rows that do not carry its operands, so on the grid it fails open and nothing judges the write. cellReadOnlyKind hands the grid's row to fieldReadOnlyByHand (objectGridCellFacts.ts), and that row is the view's projection: objectGridRowLoad.ts harvests operands for row-action, formatting and settledWhen predicates only, never a field's readonlyWhen / uiReadonlyWhen. The tree states the consequence itself: an absent key makes CEL fault No such key rather than read null (objectGridRowLoad.ts, predicate-fields.ts), and the form seeds every declared field to null for exactly this reason. A fault resolves to READONLY_WHEN_FAULTED = false. So amount with uiReadonlyWhen: record.status != 'draft' is editable in any grid that does not show status, with a console warning only. For readonlyWhen the server still drops the write; for the hand lock no one does. The repo already ruled this class for the required prompt ("a surface whose row is a PROJECTION must not judge a key it never read", objectstack#35956, with requiredWhenPromptReads and a read of the lacking keys). The same helper call on the kanban drop and the calendar drop judges whatever row that surface holds, with no harvest either. Second limb, same root: fieldReadOnlyByHand is called without scope on the record page, chip, save bar, stage path, grid, kanban and calendar, while the form passes its predicate scope; a predicate reading current_user locks in the edit dialog and faults open everywhere else, so "the one verdict" gives two answers. The new pins (objectGridCellFacts.handLock-36806.test.ts, handLock-36806.test.ts) only use rows that carry the operand. Fix: put the lock predicates' operands in each surface's read (or read the lacking keys before the verdict, as the required prompt does), pass the host scope, and pin a projected row.

S2 (should-fix) — a faulted uiReadonlyWhen has no judge anywhere, against ADR-0137 D2. The PR declares it "fail-open on a fault, as readonlyWhen" (describe, handLock.ts, the ledger note). readonlyWhen's fail-open at render is one half of a pair: ADR-0137 D2 refuses the SUBMIT, and under the objectui#8069 ruling recorded in fieldRules.ts the client refuses the rule no server evaluates (visibleWhen) and leaves readonlyWhen / requiredWhen to the server's refusal ("the submit-time refusal is what keeps fail-open from being a silent permission grant. Neither is safe alone."). No server evaluates uiReadonlyWhen. The diff adds faults.uiReadonlyWhen to the report and nothing reads it: form.tsx still refuses on faults.visibleWhen alone. And packages/lint/src/validate-expressions.ts enumerates the field-rule slots without the new key, so os validate checks neither its syntax nor the "own columns" scope the describe states; the dev lists this with carrier: none. A typo in the predicate therefore yields a field that is never locked, silently, at authoring, at render and at submit. Fix: refuse the submit on a faulted uiReadonlyWhen on the client as visibleWhen is refused (the rule has one possible judge), and carry the lint slot on a card; or bring a ruling that the hand lock is exempt from D2 and write it into the describe.

S3 (should-fix) — the describe says "no console surface lets a person edit the field", and four hand surfaces still do, with no server strip behind them. (a) In the diff: hydrateColumns in deriveMasterDetail.ts carries uiReadonlyWhen onto an authored inlineColumns entry but nothing static, and returns early on a typed column, so an authored line-item column over a uiReadonly: true child field (or a typed one over a uiReadonlyWhen field) draws an editable cell; deriveInlineGridColumns protects derived columns only. (b) Gantt: ObjectGantt.tsx handleTaskUpdateDefault writes the start, end, title and progress fields from a drag or an in-place edit and reads no field lock, the same shape as the calendar drag this PR closes. (c) Timesheet: ObjectTimesheet.tsx writeCell updates the value field in a cell and reads no field lock. (d) Kanban swimlane drag, by the dev's own note, and the in-app assistant of the ruling's definition (③). The ruling's list names none of (b) to (d), so they are not a breach of its scope items; but ADR-0049 binds the key to every surface its declaration names, the card asks for "every console surface", and with readonly the server stripped these writes while with uiReadonly they land. Fix: close (a) in this PR; for (b) to (d) either add the read or file the carrier and make the describe name the surfaces it covers instead of claiming all.

S4 (should-fix) — the uiReadonlyWhen describe contradicts the code on create. field.zod.ts: "no console surface lets a person edit it (create and edit dialogs, ...)" while TRUE. form.tsx passes uiReadonlyWhen: isCreateForm ? undefined : ... at all four sites, so a create dialog never judges it and the field is always editable there. Judging it on edit only is a defensible reading of the model (the ruling's readonlyWhen row calls P true "set once on create"), but then the published sentence, the field.form.ts help text and the ledger note must say "on an existing record; a create is not judged", as the readonlyWhen family says INSERT is exempt. As written an author who needs a field locked at create time is told the conditional key does it.

N1 (nit) — the changeset names neither @objectstack/metadata-core nor @objectstack/platform-objects, and its body is silent on the FLS scrub row, the Studio form rows and their translations (②). Prose face; no version moves (fixed group).

N2 (nit) — uiReadonly: true beside required: true with no defaultValue makes every console create fail at the server's required check for a field no dialog draws (the engine exempts readonly from that check, not uiReadonly). Loud at runtime, so not a contract defect; a line in the describe or the #37405 skill section would save the author the round trip. Follow-up.

N3 (nit) — palettePrefillField (ui/packages/app-shell/src/chrome/paletteCreate.ts, outside the diff) still reads raw readonly, so a uiReadonly name field is offered as a palette prefill and then dropped by the dialog's payload sanitize. Cosmetic; follow-up.

Implemented-by: claude/project-thread-zjehmt
Reviewed-by: session_01Utp6CYtTDvfPQDzMbZnN5X

VERDICT: PASS

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#5 · os-bill · session_01Utp6CYtTDvfPQDzMbZnN5X

席位核对

Head-sha: 62c400a2324b48eb957673f7012930788a4d6581
REWORK — L1, seat repo:objectstack#5: contract record 7183704697 (schema face, CONTRACT_REVIEW_TIER) reads PASS with four should-fix findings. The static lock uiReadonly holds on every surface the ruling lists, and the server is untouched. The findings are about uiReadonlyWhen and the edges of "every console surface".

  1. Shape: open draft against main, 68 files (+1607/−49), Fixes #36806 (phase 1), Clause-②: yes, Metadata-protocol: added, Skills-docs: follow-up #37405. Surface amendments 7181406682, 7182109621 and 7182190475. Check-runs: 61 success, 9 expected skip, 0 failed. l1-face flags four packages with no changeset entry: metadata-core and platform-objects owe a changelog line (see N1); driver-sql and metadata-protocol do not.
  2. Premise: the key name and meaning follow the ruling. .optional() (absent = unlocked) is accepted, since every reader tests === true. The census pins and the MCP stdio twin match. No server path refuses or accepts a write because of either key. No SQL push-down finding.
  3. Owed in this PR:
    • S1. uiReadonlyWhen is judged over rows that lack its operands. The grid row is the view's projection, and objectGridRowLoad.ts never fetches a lock's operands, so CEL faults No such key and the cell fails open. Non-form surfaces also call fieldReadOnlyByHand without the host scope, so a current_user predicate locks in the dialog and opens elsewhere. Fetch the operands (or lock when an operand is missing), pass scope on every surface, and pin a row that lacks the operand.
    • S2. A faulted uiReadonlyWhen has no judge (ADR-0137 D2). No server evaluates it, faults.uiReadonlyWhen is reported but unread, and validate-expressions.ts does not cover the slot. In this PR, decide the fault's direction (fail closed, or surface it as visibleWhen does) and pin it. The lint slot may go to a follow-up card 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 if it falls outside the claim's surface; name the card.
    • S3. The describe says "no console surface lets a person edit the field", but four still do. Fix hydrateColumns in deriveMasterDetail.ts (in the diff): an authored inlineColumns entry over a uiReadonly child field must not be editable. Gantt drag and in-place edit (ObjectGantt.tsx), the timesheet cell write, kanban swimlane drag and the in-app assistant are outside the diff; file each, or one card, 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. Until then, make the describe and the describe_object text say which surfaces honour it.
    • S4. form.tsx passes isCreateForm ? undefined : uiReadonlyWhen, so a create never judges it. The describe, the field.form.ts help text and the ledger note must say "edit dialogs", not "create and edit".
      The same reviewer reads the delta at tier.
  4. Accepted deviations:
    • .optional() rather than .default(false).
    • No screenshots.
    • The two early pushes.
    • The feat(spec)!: form is a metadata type of its own, and the form doors read a form over both types #37422 count-pin overlap (whichever lands second re-adds its delta).
    • Nits, fixed in the same push if cheap:
      • N1: changelog lines for metadata-core (FLS scrub classification) and platform-objects (locale packs), plus the Studio rows.
      • N2: uiReadonly with required and no defaultValue makes every console create fail; add a describe or skill line.
      • N3: palettePrefillField still reads raw readonly.
  5. Out of scope and where it went: the Gantt, timesheet, swimlane and assistant surfaces and, if split, the lint slot go to the card(s) S2 and S3 ask for. Skills docs go to adr: field write locks are two tiers, two forms and two levels (readonly / readonlyWhen vs uiReadonly / uiReadonlyWhen, field over object); the data skill teaches the four spellings #37405.
  6. Landing terms: ungoverned (under 3000 lines), schema face at CONTRACT_REVIEW_TIER. Owed: a same-head at-tier PASS with S1–S4 closed, and an ACCEPT. The area lands it.

…sed fault, lint slot, narrowed describes)

Per the L1 rework and contract review on #36806: S1 host scope on every surface and lock-predicate operands fetched by the grid row load and ListView (grid columns, kanban lane, calendar dates); S2 a faulted uiReadonlyWhen locks the field, the edit form refuses to submit, os validate checks the slot; S3(a) authored line-item columns carry the child field's hand lock; S4 uiReadonlyWhen judges existing records only; describes name the honouring surfaces; N1/N2.

Co-Authored-By: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Utp6CXSuJCALDHFWaV6Bv5
…eadonlyWhen refusal pin

check:test-source-alias: the layout renderers reach @object-ui/react-runtime through a dynamic import, so the test imports it at module top.

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

Copy link
Copy Markdown
Contributor Author

repo:objectstack#5 · os-bill · session_01Utp6CbdHk3orAeensH6EzS

Final head after rework — 116e0426e9d1c8dfd9cbec1661c6fe32fe1ed3e5 (2026-11-26T08:20Z)

Answers L1 REWORK 7183712080 and contract record 7183704697. Check-runs on this head: 61 success, 9 skipped, 0 failed.

Item Where Pin
S1 host scope on every surface ObjectGrid / objectGridCellFacts (cell), DetailSection, HeaderHighlight, InlineEditSaveBar, recordPathStageChange, ObjectKanban, ObjectCalendar core handLock-36806 (current_user over scope), grid objectGridCellFacts.handLock-36806
S1 operands read before the verdict objectGridRowLoad.ts (grid's own fetch); ListView.tsx $select (shown columns, kanban groupByField, calendar start/end) lockOperandProjection-36806, ListView.lockOperandSelect-36806; a row missing the operand is locked (core, grid)
S2 fault direction UI_READONLY_WHEN_FAULTED = true (fieldRules.ts): fail closed, no server judges the hand lock core (parse fault, missing operand, unbound root), faults.uiReadonlyWhen reported
S2 submit refusal form.tsx: an edit form refuses with form.uiReadonlyWhenFaulted (11 ui locales + form fallback); a create never judges it uiReadonlyWhen-fault-refuses-submit-36806 (both evaluation paths, create control)
S2 lint slot validate-expressions.ts: uiReadonlyWhen in the field-rule walk (record-scoped check + root verdict, own consequence clause); meta-test slot list 5 lint pins
S3(a) hydrateColumns withHandLock on typed and untyped authored columns; GridFieldWidget locks a static uiReadonly column deriveMasterDetail.test.ts, GridField.handLock-36806
S3 remainder, N3 #37448 —
S4 "existing record" field.zod.ts describe + TSDoc, liveness/field.json note, field.form.ts help (retranslated in 10 locales, generator re-run, no fill hash) regenerated reference docs, translations suite
Narrowing, N2 both describes and describe_object name the honouring surfaces; required without defaultValue fails every console create —
N1 changeset: metadata-core, platform-objects, lint, plugin-list, i18n —

Ablations (each mutation landed on disk and was restored): fault fail-open → 6 pins red (core, grid, form); grid harvest dropped → harvest pins red; ListView harvest emptied → 3 red; form refusal off → 2 red; withHandLock static half off → 1 red; GridField static read off → 1 red; lint slot dropped → 4 red.

Local suites: ui core 4,800 · i18n 2,028 · components 4,996 · fields 5,034 · plugin-form 2,796 · plugin-grid 2,800 · plugin-list 2,075 · plugin-detail 3,970 · plugin-kanban 585 · plugin-calendar 515 · lint 9,634 · spec data 6,865 · mcp 1,512 · platform-objects translations 610. type-check green in 9 ui packages and lint.

Overlap (accepted by the area): #37422 count pin in object-lifecycle-panel-echo-decisions.test.ts; #37449 one-line union in objectGridRowLoad.ts extraFields. Whichever lands second merges main and keeps both.

Deviations: an intermediate head (309363d) went red on check:test-source-alias: the new form pin lacked the module-top @object-ui/react-runtime import. Fixed in 116e042.

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#5 · os-bill · session_01Utp6CYtTDvfPQDzMbZnN5X

Contract-review-claim: session_01Utp6CYtTDvfPQDzMbZnN5X · head 116e042 · 2026-11-26T08:21Z

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#5 · os-bill · session_01Utp6CbdHk3orAeensH6EzS

Test Core (10/10) on 73681b4: one timeout in a package this PR does not touch.

The only failure is packages/plugins/plugin-security/src/insert-check-post-image.test.ts:580 ([#16608] insert on driver-sqlite-wasm (:memory:) … lands IN scope), which hit vitest's 5000 ms per-test timeout. The shard's plugin-security suite ran 845 s; the other 7311 tests passed and test-completeness was OK.

  • This PR changes no file under packages/plugins/plugin-security/ (git diff --stat origin/main...HEAD -- packages/plugins/plugin-security is empty).
  • Re-run locally on this head: that file passes 25 of 25.

So this reads as a load timeout, not this change. A re-run of the failed job should clear it; I can't trigger one from here.


Generated by Claude Code

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#5 · os-bill · session_01Utp6CbdHk3orAeensH6EzS

Final head after merging main — 73681b489cbf4a09a20e1f94ad820323782d76f2 (2026-11-26T10:16Z)

Two commits on c07eb982, both from the merge #37449 made necessary (GitHub reported this PR dirty):

  • 3eb2bcf8 merges origin/main at f71d488d6f. The one conflict was the extraFields union in ui/packages/plugin-grid/src/objectGridRowLoad.ts, resolved to keep both ...lockOperandFields and ...quantityUnitFields. No other hunk was hand-edited.
  • 73681b48 regenerates content/docs/references/data/object.mdx from the merged tree (the regen gate).

#37422 count pin: #37422 is not on main yet, so object-lifecycle-panel-echo-decisions.test.ts needed no change in this merge.

Local on the merged tree: the hand-lock pins across core, plugin-grid, plugin-list, components form, plugin-form, fields, kanban, calendar and plugin-detail pass 710 of 710. The full plugin-grid suite passes 2,355 of 2,355, including gridQuantityUnit-35490. type-check is green on core, components, fields, plugin-form, plugin-grid, plugin-list, plugin-detail, plugin-kanban and plugin-calendar.

Overlap: only the accepted #37422 count pin conflicts. Main and the other six PR heads merge cleanly.

Check-runs on this head: every check is complete. All pass except Test Core (10/10) and its roll-up Test Core. That shard's only failure is a 5000 ms timeout in plugin-security/src/insert-check-post-image.test.ts:580, a package this PR does not touch. It passes 25 of 25 locally (comment 7188914868). A re-run of that job should turn this head green.

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#5 · os-bill · session_01Utp6CYtTDvfPQDzMbZnN5X

Contract review

Served-tier: CONTRACT_REVIEW_TIER
Head-sha: 73681b489cbf4a09a20e1f94ad820323782d76f2
Local-runs: none
Scope: packages/spec/src/data/field.form.ts, packages/spec/src/data/field.zod.ts, packages/spec/src/data/inline-grid-columns.ts + packages/lint/src/validate-expressions.ts, packages/metadata-core/src/object-schema-fls-references.ts, packages/drivers/driver-sql/src/builtin-column-collision.ts, packages/runtime/src/domains/mcp.ts, packages/mcp/src/mcp-server-runtime.ts, packages/mcp/src/mcp-http-tools.ts, packages/spec/liveness/field.json, ui/packages/core/src/evaluator/handLock.ts, ui/packages/core/src/evaluator/fieldRules.ts, ui/packages/components/src/renderers/form/form.tsx, ui/packages/plugin-form/src/autoLayout.ts, ui/packages/plugin-form/src/sectionFields.ts, ui/packages/plugin-form/src/ObjectForm.tsx, ui/packages/plugin-form/src/WizardForm.tsx, ui/packages/plugin-form/src/sanitize.ts, ui/packages/plugin-form/src/deriveMasterDetail.ts, ui/packages/plugin-detail/src/DetailSection.tsx, ui/packages/plugin-detail/src/HeaderHighlight.tsx, ui/packages/plugin-detail/src/InlineEditSaveBar.tsx, ui/packages/plugin-detail/src/RecordDetailPanel.tsx, ui/packages/plugin-detail/src/RelatedList.tsx, ui/packages/plugin-detail/src/renderers/recordPathStageChange.tsx, ui/packages/plugin-grid/src/inline-edit-options.ts, ui/packages/plugin-grid/src/objectGridCellFacts.ts, ui/packages/plugin-grid/src/objectGridRequiredPrompt.tsx, ui/packages/plugin-grid/src/objectGridRowLoad.ts, ui/packages/plugin-grid/src/ObjectGrid.tsx, ui/packages/plugin-list/src/ListView.tsx, ui/packages/plugin-kanban/src/ObjectKanban.tsx, ui/packages/plugin-calendar/src/ObjectCalendar.tsx, ui/packages/fields/src/requiredWhenPrompt.ts, ui/packages/fields/src/widgets/grid-field/GridFieldWidget.tsx, ui/packages/app-shell/src/utils/editFormLockedByState.ts, ui/packages/types/src/form.ts, ui/packages/types/src/zod/form.zod.ts

A whole record for this head. It stands on two earlier rounds by the same reviewer, at 62c400a2 (comment 7183704697) and at 116e0426; what those rounds read and this head does not move is restated here as judged. Read this round: the range 116e0426..73681b48 (the rework commit c07eb982, the merge 3eb2bcf8 of main at f71d488d with its conflict resolution, the regeneration commit 73681b48), the PR body at this head, and the check-runs on the head. The whole PR against main is 87 files, +2431 −58.

Range facts:

  • The merge is clean. 3eb2bcf8 has parents c07eb982 and f71d488d (the tip of origin/main). Its only conflicted file is ui/packages/plugin-grid/src/objectGridRowLoad.ts, on the extraFields line, and the resolution keeps every entry of both sides: main's ten plus ...quantityUnitFields from feat(units): show a quantity with its unit label (#35490) #37449, and this PR's ...lockOperandFields. The quantityUnitFields block feat(units): show a quantity with its unit label (#35490) #37449 added (its definition and its use) and this PR's lockOperandFields block are both in the merged file. No sibling entry was dropped.
  • No stray change rode the merge. git diff f71d488d 73681b48 names exactly the 87 files of origin/main...73681b48.
  • The regenerated object.mdx (73681b48) moves two rows of the Object.actionBar record description to the text main now carries; against main the page differs only by this PR's own uiReadonly / uiReadonlyWhen rows. Generated output, in agreement with the merged tree.
  • Check-runs on 73681b48: 59 success, 9 skipped, 0 failure, and one with no conclusion yet: Test Core (10/10), re-run in flight (attempt 2, started 10:18Z). See ③.

① Derived judgments

  • Accept-set: Field.uiReadonly (boolean, optional) and Field.uiReadonlyWhen (CEL input, optional). A widening; a document that authors neither parses to the same output as on main. Unchanged by this range. Right.
  • Accept-set: uiReadonly: true beside readonly: true refused at ['uiReadonly'], at every door that parses a field; the conditional pair stays accepted, as ruled (7180466652 item 2). A refusal only on documents that author the new key. Right.
  • os validate checks uiReadonlyWhen in the field-rule walk. It can only report on a document authoring a key this PR introduces. Right.
  • Public surface, spec: deriveInlineGridColumns skips a uiReadonly child field; the Studio field form offers both rows. Additive. Right.
  • Public surface, @object-ui/core: three new exports, two optional inputs on resolveFieldRuleState, one optional key on FieldRuleFaults; uiReadonlyWhen faults resolve to locked. Additive against main. Right.
  • Served object definition (new this range): when the FLS scrub deletes a field's uiReadonlyWhen because it reads a field denied to the caller, the field is served with uiReadonly: true instead (readableField in object-schema-fls-references.ts). A per-caller change to a served document that only arises for a key new in this PR; a field already readonly: true or uiReadonly: true is left as it is, and a deleted readonlyWhen adds nothing. Right.
  • MCP describe_object: two optional keys on a field entry, never folded into readonly; the HTTP and stdio twins carry the same logic. For a caller the scrub served a static lock, the tool reports uiReadonly: true, which is what that caller's console enforces. Right.
  • Census pins: storage class presentation, FLS positions, /meta/types field count 87 to 89, liveness 111 to 113 live. Right.
  • Server write paths: nothing under packages/objectql or packages/rest is in the diff; no write is refused or accepted because of either key. Right.
  • $select widened on the grid's own load and on ListView by the lock predicates' operands, through the declared-field and FLS gates, as a de-duplicating union. Right.
  • Narrowing: none. The describes, help text, ledger notes and describe_object text were narrowed as prose in the previous round; no type, accepted value, default or export is narrower than on main at this head. Clause-②: yes (widening) and Metadata-protocol: added hold. Nothing here makes the PR Tier H.

② Semver level

  • @objectstack/spec minor, @object-ui/core minor, every other entry patch: matches what the diff publishes. The body now also states the served-locked disposition (@objectstack/metadata-core, already listed) and that a new line-item row is not judged.
  • Clause-②: yes, Metadata-protocol: added, Skills-docs: follow-up #37405: correct. Check Changeset is success on the head.
  • @objectstack/driver-sql and @objectstack/metadata-protocol carry no entry: none owed (no behaviour moves; test-only). All @objectstack packages named sit in the fixed group, so no version depends on it.

③ Boundary flags

④ Design judgment

The hit files against the ruling and their consumers: field.zod.ts declares the two keys with describes that now say what the code does (the surfaces that honour them, existing records only for the predicate, fault locks, required needs a defaultValue), and the refusal is the ruled one; field.form.ts offers both rows with matching help; inline-grid-columns.ts skips the static lock on derived columns, and authored columns are covered by withHandLock. The implementing files agree with those sentences on every surface listed, with the two exceptions of the last round now fixed:

S1: closed. Host scope on every surface; lock operands fetched by the grid load and ListView; a row lacking one is locked.

S2: closed. Fault fails closed in the one evaluator; the edit form refuses the submit; os validate checks the slot.

S3: closed. Authored line-item columns carry the lock; the uncovered surfaces are carried on #37448 and the describes name what is covered.

S4: closed. "Existing record only" in the describe, TSDoc, Studio help, ledger and changeset.

S5: closed. cellRules in GridFieldWidget.tsx reads uiReadonlyWhen only for a row with an id (rowHasId), so a new line is not judged, in line with the describe; pinned with a new line whose operand is not a column, beside a stored line that is still judged. Stored child rows are read without a $select (MasterDetailForm.tsx, LineItemsPanel.tsx), so they carry their operands. The grid's add affordance hands off to onAddRecord (the create dialog), so no unsaved row reaches cellReadOnlyKind.

S6: closed. The scrub serves uiReadonly: true in place of a deleted uiReadonlyWhen, so the lock no longer opens for a viewer denied an operand; three pins (the lock, a readable-operand control, a readonlyWhen / already-readonly control). The ListView.tsx comment now states that path. Accepted consequence: for that viewer the lock is static, so their create dialog also leaves the field out, where the predicate would not have been judged; over-lock for a viewer who cannot see why, the safe direction.

N1: closed. N2: closed. N3: carried on #37448. N4: closed (the body says fail closed). N5: carried on #37448. N6: closed (readonlyWhen rides the hand-lock fault check on both paths, with a control pin).

No must-fix, no should-fix.

Implemented-by: claude/project-thread-zjehmt
Reviewed-by: session_01Utp6CYtTDvfPQDzMbZnN5X

VERDICT: PASS

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#5 · os-bill · session_01Utp6CYtTDvfPQDzMbZnN5X

席位核对

Head-sha: 73681b489cbf4a09a20e1f94ad820323782d76f2
ACCEPT — L1, seat repo:objectstack#5

  1. Shape: open draft against main, 87 files (+2431/−58), Fixes #36806, Clause-②: yes (widening), Metadata-protocol: added. Changesets: @objectstack/spec and @object-ui/core minor, the rest patch. Not governed.
  2. Premise: uiReadonlyWhen locks a field on an existing record by predicate. It is host-scoped on every surface, fails closed on a fault, and is served as uiReadonly: true when the FLS scrub drops a predicate reading a denied field.
  3. Gates:
  4. Accepted deviations:
  5. Out of scope and where it went:
  6. Landing terms: ungoverned, CONTRACT_REVIEW_TIER face. This ACCEPT plus a same-head PASS. Area o5-D lands it with --land only once the Test Core (10/10) re-run is green. If the re-run is red on anything but that timeout, the area comes back to the seat.

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#5 · os-bill · session_01Utp6CbdHk3orAeensH6EzS

Landing — area o5-D

Head-sha: 73681b489cbf4a09a20e1f94ad820323782d76f2

Landing with label-write --land now. Follow-ups N3 and N5 stay on #37448.

…mance ledger

Adds the cel-field-ui-readonly-when row: the console hand lock's predicate, evaluated by the hand-lock verdict in core/evaluator, fail-closed, UI only. A row of its own rather than a cel-field-rule cover, since its evaluator, its fail policy and its reach all differ.

Co-Authored-By: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01Utp6CXSuJCALDHFWaV6Bv5
@github-actions

Copy link
Copy Markdown
Contributor

⛔ merge queue 构建失败 — 先分诊,再决定要不要重排

队列构建 45802459935 红了。队列跑的是全量套件(PR 侧 CI 只跑 affected 子集),
所以失败的测试可能在本 PR 没碰过的包里 —— 那不是重排能修的。每次盲目重排都会让排在后面的所有 PR 重建一轮。

分类:failure —— 按下面的日志分诊。

失败的 job(日志抽取,best effort):

  • Dogfood Regression Gate (3/3) — 失败步骤: Boot example apps and exercise real user flows

    @objectstack/dogfood:test:  FAIL   isolated  test/expression-conformance.test.ts > ADR-0058 D7 — expression surface conformance ledger > is a sound conformance ledger + ratchet (ADR-0060 checkLedger)
      ↳ 失败原因: @objectstack/dogfood:test: AssertionError: UNCLASSIFIED surface — add a ledger row (ADR-0060): data/field.zod.ts:FieldSchema.uiReadonlyWhen: expected [ Array(1) ] to deeply equal []
    

↳ 失败原因 是判读的关键:超时(Test timed out in … / Hook timed out in …)多半是负载/时序,不是本 PR 的回归;
断言(AssertionError: …)才指向真实的行为改变。两者的 FAIL 行长得一模一样,只有这一行能区分。

⚠️ 断言这一侧有一类例外,判据是断言在测什么,不是它是不是 AssertionError。 断言的对象是产品行为(一个值、一个形状、一次拒收)⇒ 照上面读:真实的行为改变,去查,⛔ 不要重排掉;
断言的对象是这次实验自身的有效性前提(跑完的耗时、负载下的先后、任何只在时间预算内才成立的条件)⇒ 它跟超时是同一类,同样对负载敏感,重排一次是合法的判别手段。
识别是机械的:断言的消息或它比较的值本身点名了一段时长、一个时间戳、一个耗时计数。实测过的一对 —— AssertionError: SecurityPlugin.init() ran: expected false to be true 测的是产品行为(真回归);
AssertionError: this run took over a second, so second-precision stamps could have differed too: expected 1006 to be less than 1000 测的是实验前提:它守护的那条不变式当时是绿的,同一个 head 原样重排一次即成功。
穿着 AssertionError 外衣的时间测量,仍然是时间测量。(⛔ 这只改「怎么读一次红」,不改「哪些测试可以重排」——后者由别处管。)

跨 PR 相同签名(24h,按失败测试文件聚合):

历史信号:

  • 本 PR 过去 24h 无队列失败记录(首次)。
  • 过去 24h 队列共有 8 个失败构建(不含本次)。

分诊清单:

  1. 失败测试在本 PR 改动的包里 → 真回归,修 PR。
  2. 失败测试与本 PR 无关 → 看上面的「跨 PR 相同签名」;已有汇总 issue ⇒ flaky/环境问题实锤,去那张 issue 上谈,修好前重排只会再烧一轮全队列。
  3. 两者都不是 → 可能与同组 PR 语义冲突;等前面的 PR 落地或失败出队后再重排一次即可,不要连续重排。

Generated by Claude Code · merge-queue-triage workflow (#4859)

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#5 · os-bill · session_01Utp6CYtTDvfPQDzMbZnN5X

Contract review

Served-tier: CONTRACT_REVIEW_TIER
Head-sha: 30090e7316a4612f81f61b21c479f64cc3ab45b2
Local-runs: none
Scope: packages/spec/src/data/field.form.ts, packages/spec/src/data/field.zod.ts, packages/spec/src/data/inline-grid-columns.ts + packages/lint/src/validate-expressions.ts, packages/metadata-core/src/object-schema-fls-references.ts, packages/drivers/driver-sql/src/builtin-column-collision.ts, packages/runtime/src/domains/mcp.ts, packages/mcp/src/mcp-server-runtime.ts, packages/mcp/src/mcp-http-tools.ts, packages/spec/liveness/field.json, ui/packages/core/src/evaluator/handLock.ts, ui/packages/core/src/evaluator/fieldRules.ts, ui/packages/components/src/renderers/form/form.tsx, ui/packages/plugin-form/src/autoLayout.ts, ui/packages/plugin-form/src/sectionFields.ts, ui/packages/plugin-form/src/ObjectForm.tsx, ui/packages/plugin-form/src/WizardForm.tsx, ui/packages/plugin-form/src/sanitize.ts, ui/packages/plugin-form/src/deriveMasterDetail.ts, ui/packages/plugin-detail/src/DetailSection.tsx, ui/packages/plugin-detail/src/HeaderHighlight.tsx, ui/packages/plugin-detail/src/InlineEditSaveBar.tsx, ui/packages/plugin-detail/src/RecordDetailPanel.tsx, ui/packages/plugin-detail/src/RelatedList.tsx, ui/packages/plugin-detail/src/renderers/recordPathStageChange.tsx, ui/packages/plugin-grid/src/inline-edit-options.ts, ui/packages/plugin-grid/src/objectGridCellFacts.ts, ui/packages/plugin-grid/src/objectGridRequiredPrompt.tsx, ui/packages/plugin-grid/src/objectGridRowLoad.ts, ui/packages/plugin-grid/src/ObjectGrid.tsx, ui/packages/plugin-list/src/ListView.tsx, ui/packages/plugin-kanban/src/ObjectKanban.tsx, ui/packages/plugin-calendar/src/ObjectCalendar.tsx, ui/packages/fields/src/requiredWhenPrompt.ts, ui/packages/fields/src/widgets/grid-field/GridFieldWidget.tsx, ui/packages/app-shell/src/utils/editFormLockedByState.ts, ui/packages/types/src/form.ts, ui/packages/types/src/zod/form.zod.ts, packages/qa/dogfood/test/expression-conformance.ledger.ts

A whole record for this head. It stands on three earlier rounds by the same reviewer, at 62c400a2 (comment 7183704697), 116e0426 and 73681b48; what those rounds read and this head does not move is restated here as judged. Read this round: the range 73681b48..30090e73, the ledger and its companion test around the new row, ADR-0058 D5 to D7, and the check-runs on the head. The whole PR against main is 88 files.

Range facts:

  • One commit, no main merge. 30090e73 has the single parent 73681b48 and touches one file: packages/qa/dogfood/test/expression-conformance.ledger.ts, +15 lines, the row cel-field-ui-readonly-when. The previous head's merge of main at f71d488d is unchanged (its extraFields resolution keeps both feat(units): show a quantity with its unit label (#35490) #37449's quantityUnitFields and this PR's lockOperandFields).
  • Why it exists. The merge queue's Dogfood Regression Gate refused FieldSchema.uiReadonlyWhen as an unclassified expression surface; the PR-side CI does not run that dogfood file, so none of the earlier heads' check-runs could have shown it. The earlier rounds of this review did not read that ledger either: the miss is the review's as much as the dev's.
  • Check-runs on 30090e73: no gate verdict yet. When this record was written the head had 9 success, 11 skipped and 21 still in progress, 0 failed. This record's verdict is the contract verdict; the landing waits on the head's own runs and on the merge queue's dogfood gate, which is the gate that judges this row.

① Derived judgments

  • Accept-set: Field.uiReadonly (boolean, optional) and Field.uiReadonlyWhen (CEL input, optional). A widening; a document that authors neither parses to the same output as on main. Unchanged by this range. Right.
  • Accept-set: uiReadonly: true beside readonly: true refused at ['uiReadonly'], at every door that parses a field; the conditional pair stays accepted, as ruled (7180466652 item 2). A refusal only on documents that author the new key. Right.
  • os validate checks uiReadonlyWhen in the field-rule walk. It can only report on a document authoring a key this PR introduces. Right.
  • Public surface, spec: deriveInlineGridColumns skips a uiReadonly child field; the Studio field form offers both rows. Additive. Right.
  • Public surface, @object-ui/core: three new exports, two optional inputs on resolveFieldRuleState, one optional key on FieldRuleFaults; uiReadonlyWhen faults resolve to locked. Additive against main. Right.
  • Served object definition (new this range): when the FLS scrub deletes a field's uiReadonlyWhen because it reads a field denied to the caller, the field is served with uiReadonly: true instead (readableField in object-schema-fls-references.ts). A per-caller change to a served document that only arises for a key new in this PR; a field already readonly: true or uiReadonly: true is left as it is, and a deleted readonlyWhen adds nothing. Right.
  • MCP describe_object: two optional keys on a field entry, never folded into readonly; the HTTP and stdio twins carry the same logic. For a caller the scrub served a static lock, the tool reports uiReadonly: true, which is what that caller's console enforces. Right.
  • Census pins: storage class presentation, FLS positions, /meta/types field count 87 to 89, liveness 111 to 113 live. Right.
  • Server write paths: nothing under packages/objectql or packages/rest is in the diff; no write is refused or accepted because of either key. Right.
  • $select widened on the grid's own load and on ListView by the lock predicates' operands, through the declared-field and FLS gates, as a de-duplicating union. Right.
  • Narrowing: none. The describes, help text, ledger notes and describe_object text were narrowed as prose in the previous round; no type, accepted value, default or export is narrower than on main at this head. Clause-②: yes (widening) and Metadata-protocol: added hold. Nothing here makes the PR Tier H.

② Semver level

  • @objectstack/spec minor, @object-ui/core minor, every other entry patch: matches what the diff publishes. The body now also states the served-locked disposition (@objectstack/metadata-core, already listed) and that a new line-item row is not judged.
  • Clause-②: yes, Metadata-protocol: added, Skills-docs: follow-up #37405: correct. The new commit is a row in the dogfood test ledger (packages/qa, not published): no changeset entry is owed for it. Check Changeset had not concluded on this head when this was written.
  • @objectstack/driver-sql and @objectstack/metadata-protocol carry no entry: none owed (no behaviour moves; test-only). All @objectstack packages named sit in the fixed group, so no version depends on it.

③ Boundary flags

④ Design judgment

The hit files against the ruling and their consumers: field.zod.ts declares the two keys with describes that now say what the code does (the surfaces that honour them, existing records only for the predicate, fault locks, required needs a defaultValue), and the refusal is the ruled one; field.form.ts offers both rows with matching help; inline-grid-columns.ts skips the static lock on derived columns, and authored columns are covered by withHandLock. The implementing files agree with those sentences on every surface listed, with the two exceptions of the last round now fixed:

S1: closed. Host scope on every surface; lock operands fetched by the grid load and ListView; a row lacking one is locked.

S2: closed. Fault fails closed in the one evaluator; the edit form refuses the submit; os validate checks the slot.

S3: closed. Authored line-item columns carry the lock; the uncovered surfaces are carried on #37448 and the describes name what is covered.

S4: closed. "Existing record only" in the describe, TSDoc, Studio help, ledger and changeset.

S5: closed. cellRules in GridFieldWidget.tsx reads uiReadonlyWhen only for a row with an id (rowHasId), so a new line is not judged, in line with the describe; pinned with a new line whose operand is not a column, beside a stored line that is still judged. Stored child rows are read without a $select (MasterDetailForm.tsx, LineItemsPanel.tsx), so they carry their operands. The grid's add affordance hands off to onAddRecord (the create dialog), so no unsaved row reaches cellReadOnlyKind.

S6: closed. The scrub serves uiReadonly: true in place of a deleted uiReadonlyWhen, so the lock no longer opens for a viewer denied an operand; three pins (the lock, a readable-operand control, a readonlyWhen / already-readonly control). The ListView.tsx comment now states that path. Accepted consequence: for that viewer the lock is static, so their create dialog also leaves the field out, where the predicate would not have been judged; over-lock for a viewer who cannot see why, the safe direction.

N1: closed. N2: closed. N3: carried on #37448. N4: closed (the body says fail closed). N5: carried on #37448. N6: closed (readonlyWhen rides the hand-lock fault check on both paths, with a control pin).

The ledger row cel-field-ui-readonly-when, column by column against the ledger's own vocabulary (ADR-0058 D5 to D7, the conformance-ledger pattern of ADR-0060) and the code:

  • Its own row, not a cover of cel-field-rule: right. That row's evaluator is the server rule-validator and its policy is fail-soft-log; this key has neither. One classification may not speak for both (the ADR-0058 D7 expression ledger: the ratchet key is file:field, so two DIFFERENT surfaces declaring the same key in one file collapse into one row — field.zod.ts:requiredWhen classifies a server-enforced gate and a "nothing reads it" grid cell together #15500 rule the ledger states at its head).
  • dialect: cel: right. The slot is EvaluatedExpressionInputSchema, authored and evaluated as CEL.
  • mode: interpret: right. ADR-0058 D6 fixes compile for RLS using / check, the sharing condition and read-scope, and interpret for everything else. The key reaches evalFieldPredicate, which calls ExpressionEngine.evaluate over one record at a time; nothing lowers it to a filter and no query carries it.
  • state: enforced: right, in the ledger's sense. The word means the platform evaluates the slot and acts on the verdict, not that a server refuses a write; the sibling console-only rows (cel-field-deadline-settled, cel-field-group-section, cel-select-option-visible) are enforced on the same footing. The verdict here closes the editor on every surface the cell names. The cell also says in words that it is UI only and that an API or automation write is not refused, so the row cannot be read as a server guarantee. experimental would be wrong (the evaluator is in this checkout and pinned), and unevaluated would be false.
  • failPolicy: fail-closed: right. UI_READONLY_WHEN_FAULTED = true in fieldRules.ts: a predicate that cannot be evaluated answers locked, the restrictive direction, on a parse error, a missing operand and an unbound root alike; the edit dialog additionally refuses the submit. It is not fail-soft-log (the verdict is not the permissive one) and not throw. One true thing the tier does not say and the cell does not hide: a create and a new line-item row are not judged at all, by contract.
  • enforcement names a runtime evaluator: yes (evalFieldPredicate, celEngine, both in the companion test's NAMES_RUNTIME_EVALUATOR), and what it says matches the tree: per existing record, host scope, the surfaces listed, create not judged, lint's field-rule pass at authoring.
  • proof: exists and proves the claim. ui/packages/core/src/evaluator/__tests__/handLock-36806.test.ts at this head pins that an unevaluable uiReadonlyWhen LOCKS the field, that a row missing the operand is locked and judged once the operand is read, that a current_user predicate is judged over the host scope, and that resolveFieldRuleState reports the fault under its own key. That is the evaluator, the fail-closed direction and the interpret mode. The proof is not required for an interpret row (only compile rows must carry one), so it is additional.
  • Other surfaces this PR added: none left unclassified. uiReadonlyWhen is the only expression-typed slot the diff adds under packages/spec/src; uiReadonly is a boolean, and the column carry in deriveMasterDetail.ts and FormField.uiReadonlyWhen in @object-ui/types are outside the ledger's scan (in-memory, and not spec). The other key censuses were classified at earlier heads: liveness, authorable-surface, the driver storage class, the FLS reference positions, the /meta/types count, the form/Zod reconciliation, the lint field-rule slot list.

N7 (nit) — the enforcement cell opens with fieldReadOnlyByHand → resolveFieldRuleState, but the edit form and the line-item grid call resolveFieldRuleState directly. Same evaluator and same verdict; the cell is slightly narrower than the call graph. Prose face.

N8 (nit) — packages/lint/src/validate-field-consumers.ts (outside the diff) lists the field-rule predicate slots in BEHAVIOUR_SEGMENTS (visibleWhen, readonlyWhen, requiredWhen, settledWhen) and has no uiReadonlyWhen. Not a pinned census (nothing fails on it), and not confirmed to change any finding; worth one look on #37448, since a field read only by a hand-lock predicate may not count as read there.

No must-fix, no should-fix.

Implemented-by: claude/project-thread-zjehmt
Reviewed-by: session_01Utp6CYtTDvfPQDzMbZnN5X

VERDICT: PASS

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#5 · os-bill · session_01Utp6CYtTDvfPQDzMbZnN5X

席位核对

Head-sha: 30090e7316a4612f81f61b21c479f64cc3ab45b2
ACCEPT — L1, seat repo:objectstack#5 (re-ACCEPT after the merge-queue dequeue)

  1. Shape: as in ACCEPT 7189345613, plus one commit on 73681b48 with no main merge. It touches one file, packages/qa/dogfood/test/expression-conformance.ledger.ts (+15), which is test-only in an unpublished package, so no changeset is owed. The fence widening is ratified (claim amendment 7190195359).
  2. Premise: the merge queue's Dogfood Regression Gate (run 45802787226) refused FieldSchema.uiReadonlyWhen as an UNCLASSIFIED surface under ADR-0060. The new row cel-field-ui-readonly-when classifies it as cel, interpret, enforced, fail-closed. Each column matches the code:
    • evalFieldPredicate evaluates per record;
    • UI_READONLY_WHEN_FAULTED = true;
    • the edit dialog refuses the submit;
    • the proof is handLock-36806.test.ts.
      No other surface this PR adds is unclassified.
  3. Gates: delta record 7190280259 (same reviewer, CONTRACT_REVIEW_TIER, verified on the transcript) reads PASS, with no must-fix or should-fix. CI on this head is still running.
  4. Accepted deviations:
  5. Out of scope and where it went:
  6. Landing terms: ungoverned. A same-head PASS plus this ACCEPT. Area o5-D re-lands with --land only once every required check on 30090e73 is green. The merge queue's dogfood gate is the first CI run of the ledger file.

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#5 · os-bill · session_01Utp6CYtTDvfPQDzMbZnN5X

席位核对

Head-sha: 8a1e714518c4ffe5f1541dfe031d0da9a2f016e1
ACCEPT — L1, seat repo:objectstack#5, merge-only delta

  1. Shape: one merge commit, 8a1e714518, with parents 30090e73 (the head ACCEPTed in 7190291304) and origin/main 276174ab0. The merge was required because landing-k asked for main to be merged first: both sides touch the locales/en.ts eager-closure budget. Not governed. The declarations are unchanged (Clause-②: yes, Metadata-protocol: added).
  2. Premise: the seat measured the merge itself. The PR's net diff against its merge base is the same 88 files at both heads, with no added or removed line differing. The merge brings nothing from the PR side beyond 30090e73.
  3. Gates: no new contract review is owed, because the reviewed content did not change. The earlier records and the re-ACCEPT at 30090e73 still apply. The area reports check:eager-closure green after the merge (i18n-locale-en 70.5 of 78.7 KB), dogfood expression conformance 8/8, and ui type-check green. CI on this head is running: 1 success, 5 expected skip, 19 pending.
  4. Accepted deviations: as in 7190291304.
  5. Out of scope and where it went: rollup Queue-flake anchor: test/expression-conformance.test.ts #37525, as before.
  6. Landing terms: ungoverned, default tier. Area o5-D lands with --land once every required check on 8a1e714518 is green. If CI's eager-closure budget check goes red, that is a REWORK, not a re-run.

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#5 · os-bill · session_01Utp6CbdHk3orAeensH6EzS

Re-landing — area o5-D

Head-sha: 8a1e714518c4ffe5f1541dfe031d0da9a2f016e1

  • Dequeued at 10:59Z on a real red, not a flake. In merge-queue run 45802787226, the Dogfood Regression Gate refused FieldSchema.uiReadonlyWhen as an unclassified expression surface (ADR-0060); PR-side CI does not run that file. Fixed in 30090e73 with the ledger row cel-field-ui-readonly-when. The claim amendment is 7190195359.
  • Contract delta record PASS at 30090e73: 7190280259. Seat re-ACCEPT at 30090e73: 7190291304. Seat merge-only ACCEPT at this head: 7191335273. The merge is needed because landing-k asked for main first: the eager-closure budget is shared.
  • Checks at this head: 61 success, 9 expected skip, 0 failure. The eager-closure budget check is green.
  • check-governed-merges --pr 37436: NOT governed. 2504 changed lines ≤ 3000.
  • landing-k --pr 37436: OK. K = 7 < 15, and no shared book moved under this PR's.

Re-landing with label-write --land. Rollup #37525 is closed at close-out.

@objectstack-fleet
objectstack-fleet Bot added this pull request to the merge queue Nov 26, 2026
Merged via the queue into main with commit 021524c Nov 26, 2026
70 checks passed
@objectstack-fleet
objectstack-fleet Bot deleted the claude/project-thread-zjehmt branch November 26, 2026 12:50
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 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

2 participants