Skip to content

feat(ui): the field hand lock holds on the Gantt, the timesheet cell and the palette prefill - #37888

Merged
objectstack-fleet[bot] merged 10 commits into
mainfrom
claude/project-thread-riww1b
Nov 27, 2026
Merged

objectstack-fleet[bot] merged 10 commits into
mainfrom
claude/project-thread-riww1b

Conversation

@objectstack-fleet

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

Copy link
Copy Markdown
Contributor

Requested by Sales · project thread

Part of #37448

Open surface: the in-app assistant acting for a person. Its writes run in the AI service, which does not read the hand lock, so this pull request does not cover it; card #37898 carries it. The field descriptions, the metadata-form help texts and the MCP describe_object guidance name it as the one surface that does not honour the lock yet. Every other surface the card lists is covered, and so is the calendar's quick-create, which the contract review (7214835610) found writing a locked field.

Clause-②: no
Metadata-protocol: semantic
Skills-docs: none — no page under skills/** teaches uiReadonly or the hand lock (grep on main), so no skill sentence becomes false

维护者速读

  • 改了什么:手动锁(uiReadonly / uiReadonlyWhen)现在在 Gantt(拖动、调整、进度、连线、就地编辑、自动排程、撤销重做)、工时表单元格、日历快速新建和命令面板预填上都生效。
  • 用户会看到:被锁的字段在这些界面上改不动,Gantt 会把条退回并提示“只读”;工时表锁定的格子变成只读,全局锁定时不再出现“添加行”;日历的标题或日期字段被锁(含服务端只读)时,点空白日期改开完整新建表单。
  • 没覆盖的:应用内助手代人写入(在云端 AI 服务里,不读这个锁),描述里已写明,由 uiReadonly hand lock: the in-app assistant acting for a person does not honour it (its writes run in the cloud AI service) #37898 承接。
  • 风险:只收紧手动编辑;API、导入、动作、流程写入不变。

What changes

Each surface reads the one verdict of @object-ui/core (fieldReadOnlyByHand, or its static half fieldStaticallyReadOnlyByHand where no record exists yet) with the shell's predicate scope (usePredicateScope).

  • Gantt (@object-ui/plugin-gantt, new ganttHandLock.ts).
    • ganttPatchByHand judges each write over the stored record inside handleTaskUpdateDefault, the handler every bar write reaches: drag, resize, progress handle, in-place edit, auto-schedule, conflict reschedule, and undo/redo (which skips onBeforeTaskUpdate, so the gate sits on the write itself). A write that changes a locked field is refused: nothing is sent, the bar is put back and a toast gives the read-only reason. A locked field the write leaves unchanged is dropped from the patch, so an in-place title edit still saves when the dates it echoes are locked. Dates compare as instants.
    • persistDependencies judges a drawn link over the target record's dependencies field.
    • ganttHandLockedInteractions narrows the authored interaction switches by the static half: a move closes when either date is locked, a resize only when both are, and the progress handle and the link tool close with their own field. An authored false stays false.
    • ObjectGantt fetches its own rows without $select, so the predicate operands are on the record.
  • Timesheet (@object-ui/plugin-timesheet). cellEditable takes a lockedByHand judge: a cell whose record's value field is locked by hand is read-only, so it is neither edited nor cleared. A row, date or value field locked on every record closes the create (grants.create), which also hides Add row. writeCell refuses a locked update or delete like a readonly one. The timesheet fetch has no $select, so the operands are on the record.
  • Calendar quick-create (@object-ui/plugin-calendar, ObjectCalendar.tsx). A create is judged by the static half (fieldStaticallyReadOnlyByHand), as the create dialog judges it. Where a field the dialog writes itself (the title field, the start or end field) is locked on every record, quickCreateLockedOwnFields sends the day click and the range drag to the host's full create form, and a locked date field is left out of that form's prefill. The static half also answers readonly: true, so a server-locked title or date field now hands off the same way, where main opened the dialog and the server dropped the value on insert. A required locked field is left out of the dialog's write (the auto-fill loop skips it), so the server applies its defaultValue; requiredFieldsQuickCreateCannotFill counts one with no defaultValue as unfillable, so the gesture is handed off rather than offering a write that would be refused. With no host form, nothing is offered, as before.
  • Command palette (@object-ui/app-shell, paletteCreate.ts). The create-as prefill skips a uiReadonly field, as it already skipped readonly. A create is judged by the static half only, as the create dialog judges it.
  • List view (@object-ui/plugin-list). editedInPlace takes the kanban lane field the board actually uses (kanbanLaneFieldOf: the block's groupByField, else the object's detected lifecycle field), so the lane field's lock operands are in $select even when the block names no groupByField (scope addition from comment 7187109328).
  • Kanban swimlane drag. No code change: a drop on the swimlane layout passes only column ids to onCardMove, so the write is the lane (column) field alone, and the existing lane-field gate in ObjectKanban.handleCardMove holds there too. Now pinned.
  • N8 (BEHAVIOUR_SEGMENTS). uiReadonlyWhen is not added. The key is authorable only on field definitions under objects, which bucketFor already reads as behaviour; readonlyWhen is in the set because inline-grid columns (a columns display segment) carry it, and those columns have no hand lock. A pin in validate-field-consumers.test.ts proves both keys already credit the fields they name; the lint source is unchanged.
  • Prose. The uiReadonly / uiReadonlyWhen JSDoc and .describe, their metadata-form help texts (all eleven locales), the MCP describe_object guidance and its code comment, and the handLock.ts header now say every console surface honours the hand lock, and each names the in-app assistant acting for a person as the one that does not yet. The uiReadonly surface lists add "calendar drag and quick-create" (uiReadonlyWhen does not: a create is not judged by the conditional half). The liveness evidence (packages/spec/liveness/field.json) cites the new readers: ganttHandLock.ts#ganttPatchByHand, ObjectTimesheet.tsx#valueLockedByHand, and the calendar's quick-create. N7: the cel-field-ui-readonly-when row of the expression-conformance ledger is reworded (the edit dialog and grid cell call resolveFieldRuleState directly; every other surface goes through fieldReadOnlyByHand) and lists the Gantt and timesheet readers.

Small decisions taken in this pull request

  • Gantt: a move closes on either locked date, a resize only on both (the locked edge is refused on the write); a locked but unchanged field is pruned from the patch rather than refusing it; a refusal toasts the read-only reason; in-place edit stays open and is judged on the write.
  • Timesheet: any statically locked row, date or value field closes the create (and Add row); a locked record's cell is read-only, which also blocks clearing it.
  • Calendar quick-create: a locked field the dialog writes itself hands the gesture to the full form rather than closing it; a locked date field is not prefilled there; a required locked field with a default is left out of the write, one without counts as unfillable.
  • Palette: static half only.
  • List view: the detected lane field is always harvested.
  • N8: not added, reason above.
  • Metadata-protocol: semantic where the claim had none: the keys' descriptions change what an author's uiReadonly / uiReadonlyWhen does (five more surfaces lock), so the changeset is minor on the packages that move behaviour.

Why

Phase 1 (#37436) routed the dialogs, record page, grid, kanban column drag and calendar drag through fieldReadOnlyByHand, but a person could still change a hand-locked field from the Gantt, the timesheet cell and the palette's create-as prefill. The card asks the lock to hold on every console surface.

Tests

One pin per surface; each was ablated with scripts/ablation-replace.mjs and went red, then the file was restored (git diff --quiet HEAD).

Surface Pin Ablation Red
Palette prefill CommandPalette.previewCreate-36286.test.tsx fieldStaticallyReadOnlyByHand(field) → field.readonly === true 1
List view lane operand ListView.lockOperandSelect-36806.test.tsx "the lane field the board detects when the block names none" kanbanLaneFieldOf(...) → the block's groupByField 1
Gantt write ObjectGantt.harness.test.tsx "ObjectGantt.handLock-37448" verdict forced to write 2
Gantt link same describe, link test link gate forced open 1
Gantt interactions same describe, static test lock defs passed as undefined 1
Timesheet cell ObjectTimesheet.test.tsx "the field hand lock" lockedByHand(...) line disabled 2
Timesheet create same describe && !createLockedByHand removed 2
Kanban swimlane ObjectKanban.handLock-36806.test.tsx "a drag on the swimlane board" lane fieldReadOnlyByHand forced false 1
Calendar quick-create, own fields ObjectCalendar.quickCreateHandLock-37448.test.tsx quickCreateLockedOwn.length === 0 made always true 3
Calendar quick-create, prefill same file the prefill's locked-key filter made a pass-through 2
Calendar quick-create, unfillable same file the locked branch of requiredFieldsQuickCreateCannotFill disabled 1
Calendar quick-create, auto-fill same file the auto-fill loop's locked-field skip disabled 1

Each Gantt, timesheet, kanban and calendar describe also carries a CONTROL (an unlocked record or field still writes; on the calendar, a uiReadonlyWhen does not judge the create).

Acceptance notes

Verification

Head 1916ae98 (main merged in twice; no conflict, the merges bring only main's content). CI on the head: 61 success, 9 skipped, none failed.

  • Affected suites: UI (plugin-gantt, plugin-timesheet, the ListView operand pin, the kanban hand-lock pin, app-shell chrome/, core evaluator/) 1650 passed, 148 skipped; UI plugin-calendar and core evaluator/ after the rework 1105 passed, 122 skipped; @objectstack/spec src/data 6893 passed; @objectstack/mcp 1589 passed; @objectstack/platform-objects 2214 passed; @objectstack/lint validate-field-consumers.test.ts 203 passed. After the last merge the new calendar pin re-ran: 7 passed.
  • pnpm --filter @objectstack/spec run check:generated passes on a fresh spec build (docs, liveness state counts and api-surface included); check:liveness passes; node scripts/check-i18n-bundles.mjs OK; node scripts/check-nul-bytes.mjs passes.
  • node scripts/pm/dispatch-gates.mjs --commands (122 commands) ran on the first head: every one passes except three that refused on a missing prerequisite (no verdict): check:skill-examples, check:dts-closure and check:dual-build-cjs-loads, which read .d.ts files this container built without (OS_SKIP_DTS=1). On the rework the families its paths touch were re-run, all exit 0: check-changeset-no-major, check-empty-changeset (and --self-test), check-issue-citations, check:changeset-gate-self-tests, check:doc-authoring, check:i18n, check:i18n-stale-fill, check:issue-citations.
  • Package type-checks were not measured locally (the workspace's dependent declarations are not emitted here); CI's TypeScript Type Check and Type Check UI are green on the head.

Human Minimum

  • 1. Schemas start as Zod; packages/spec holds no runtime logic (only describe and JSDoc text moved there).
  • 2. Every name I added uses the casing for its kind.
  • 3. No formatter ran.
  • 4. One issue, one branch off an up-to-date main, one pull request.
  • 5. A changeset with both declaration lines, here and in the changeset.
  • 6. packages/spec generated artifacts regenerated and committed.
  • 7. No hand edits to content/docs/references/, packages/*/CHANGELOG.md or content/docs/releases/.
  • 8. Title, body and comments are in English.

Generated by Claude Code

🤖 Generated with Claude Code

https://claude.ai/code/session_01L6bhgWGbDsK1qEW72jibhi

@github-actions github-actions Bot added size/l 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 27, 2026
@github-actions

github-actions Bot commented Nov 27, 2026 •

Copy link
Copy Markdown
Contributor

📓 Docs Drift Check

This PR changes 3 package(s): @objectstack/mcp, @objectstack/platform-objects, @objectstack/spec, touching 15 documentable anchor(s). ⚠️ 1 changed file(s) yielded no anchor (packages/spec/liveness/field.json), so the pages documenting them are NOT COVERED by this run — this is not a clean bill of health for those files.

11 hand-written doc(s) NAME something this change touched and may need an implementation-accuracy re-verification:

  • content/docs/concepts/metadata-driven.mdx (via FieldSchema (symbol, a top-level const))
  • content/docs/data-modeling/external-datasources.mdx (via FieldSchema (symbol, a top-level const))
  • content/docs/data-modeling/field-types.mdx (via FieldSchema (symbol, a top-level const))
  • content/docs/data-modeling/validation-rules.mdx (via FieldSchema (symbol, a top-level const))
  • content/docs/deployment/troubleshooting.mdx (via FieldSchema (symbol, a top-level const))
  • content/docs/deployment/validating-metadata.mdx (via FieldSchema (symbol, a top-level const))
  • content/docs/getting-started/quick-reference.mdx (via FieldSchema (symbol, a top-level const))
  • content/docs/kernel/contracts/data-engine.mdx (via FieldSchema (symbol, a top-level const))
  • content/docs/protocol/backward-compatibility.mdx (via FieldSchema (symbol, a top-level const))
  • content/docs/protocol/objectql/types.mdx (via FieldSchema (symbol, a top-level const))
  • content/docs/protocol/objectui/concept.mdx (via FieldSchema (symbol, a top-level const))

⛔ 4 release-owned page(s) also name something this change touched. These are read-only:

  • content/docs/releases/v17/17-0.mdx (via FieldSchema (symbol, a top-level const))
  • content/docs/releases/v17/17-1.mdx (via FieldSchema (symbol, a top-level const))
  • content/docs/releases/v18/18-3.mdx (via FieldSchema (symbol, a top-level const))
  • content/docs/releases/v18/18-4.mdx (via FieldSchema (symbol, a top-level const))

content/docs/releases/ is RELEASE-OWNED (AGENTS.md "Documentation Guardrails"): release
notes are written centrally at release time, and a code PR that edits them is the exact PR
that guardrail exists to stop. They are still audited — read-only. If one of them is actually
wrong, file an issue or open a dedicated docs-only PR; do not edit it here.

What this run could not see
  • 1 changed file(s) yielded no anchor (packages/spec/liveness/field.json) — 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 — 182 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 ddc96d8a4280c69305dd541005cacfbe3e58f4c5 → packageMentionDocs.

Which tree this was computed on

This run read content/docs from 829010ad78a87d7b2b40d676f4c8f2c039c3bc23 — the merge of head 1916ae98dbe07ffc95354785e67ac18107c31501 into base ddc96d8a4280c69305dd541005cacfbe3e58f4c5, 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 829010ad78a87d7b2b40d676f4c8f2c039c3bc23 && git checkout 829010ad78a87d7b2b40d676f4c8f2c039c3bc23
# afterwards, rebuild it from the two parents, which stay fetchable
git fetch origin ddc96d8a4280c69305dd541005cacfbe3e58f4c5 1916ae98dbe07ffc95354785e67ac18107c31501 && git checkout -B drift-repro ddc96d8a4280c69305dd541005cacfbe3e58f4c5 && git merge --no-ff 1916ae98dbe07ffc95354785e67ac18107c31501

node scripts/docs-audit/affected-docs.mjs --json ddc96d8a4280c69305dd541005cacfbe3e58f4c5

⚠️ 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 ddc96d8a4280c69305dd541005cacfbe3e58f4c5 → 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#2 · os-sales · session_01L6bhgV6i8jfWwSXjpWJrjA

Contract review

Served-tier: CONTRACT_REVIEW_TIER
Head-sha: 17cf9c93adae9a98dd99a0b29dd58be29f00c82e
Local-runs: none
Scope: packages/spec/src/data/field.metadata-form.ts, packages/spec/src/data/field.zod.ts + packages/mcp/src/mcp-http-tools.ts, packages/spec/liveness/field.json, packages/qa/dogfood/test/expression-conformance.ledger.ts, ui/packages/core/src/evaluator/handLock.ts, ui/packages/plugin-gantt/src/ganttHandLock.ts, ui/packages/plugin-gantt/src/ObjectGantt.tsx, ui/packages/plugin-timesheet/src/timesheetModel.ts, ui/packages/plugin-timesheet/src/ObjectTimesheet.tsx, ui/packages/app-shell/src/chrome/paletteCreate.ts, ui/packages/plugin-list/src/ListView.tsx

Read: card #37448 (body and its five comments), the PR body and file list, the net diff against main, and the check-runs on the head (every one success or skipped; none failed). Code outside the diff was read in the head's tree to judge the texts, not reviewed. The tests, the generated locale bundles, the reference pages and the changeset prose are the lane seat's ACCEPT.

① Derived judgments

  • Accept set: unchanged — right. FieldSchema gains and loses no key and no value; only .describe and JSDoc text moves in field.zod.ts, and two helpText strings in field.metadata-form.ts. The generated bundles and content/docs/references/data/field.mdx follow those strings.
  • Public surface: one additive change — right under Clause-②: no, with a note. cellEditable (exported from @object-ui/plugin-timesheet) takes an optional third parameter whose default keeps the old answer. ganttHandLock.ts is not exported from the package index. PaletteCreateObjectDef.fields reads one more optional key. No caller breaks.
  • Behaviour: the console refuses hand edits it took on main — right, and it is the declared key made real (ADR-0049, ruling 7180466652 as the card cites it): Gantt bar writes and dependency links, the timesheet cell and its create, the palette prefill. No API, import, action or flow write changes; the engine still never reads either key.
  • "Every console surface" as a derived claim: wrong. See M1.

② Semver level

  • Clause-②: no — right: no accept set widens and the one signature change is an optional parameter.
  • Metadata-protocol: semantic where the claim said none — right. What an author's uiReadonly: true / uiReadonlyWhen does changes (more surfaces lock) while nothing an author can write is added or refused: a changed meaning, so semantic, not none, added or narrowed. semantic takes minor, and the changeset gives minor to @objectstack/spec, @objectstack/mcp, @objectstack/platform-objects and the four UI packages whose behaviour or published text moves. Check Changeset is green on the head.
  • N1 below covers the one package left at patch.

③ Boundary flags

  • Open question (the in-app assistant acting for a person): escalated, not answered here. The card's own text says the ruling counts the assistant as a hand surface, so option B (leave it out permanently) contradicts the ruling as the card states it and is the maintainer's to give; option A needs a card where the assistant's writes run, outside this repo. Part of #37448 is the right link and the card stays open. The dev report lists the carrier as "noted, not filed": the seat owes that card, or the surface has no owner.
  • Dev flag, Metadata-protocol changed from the claim: judged in ②, right.
  • N8 (BEHAVIOUR_SEGMENTS): answered with a reason and a pin; the lint source is unchanged and Test Core is green. Accepted as an answer; the pin is the lane seat's.
  • N7 (ledger row): reworded; the new sentence agrees with the head (the edit dialog and the grid cell call resolveFieldRuleState, the other hosts go through fieldReadOnlyByHand).
  • SQL push-down: no new id materialisation and no in-app join. ListView adds the detected lane field's lock operands to the $select it already sends. The Gantt and timesheet reads are unchanged.

④ Design judgment

packages/spec/src/data/field.zod.ts — the uiReadonly describe and JSDoc now say the lock holds on "every console surface" and name the assistant as the one exception. The surfaces the text lists are each true of the head: the Gantt gate sits in handleTaskUpdateDefault and persistDependencies, the only two record writes of the chart (the drawer goes through RecordDetailPanel, which reads the verdict); the timesheet judges the cell at draw and again at commit; the palette reads the static half. The assistant sentence is true. The universal is not:

M1 (must-fix) — the calendar's quick-create dialog writes a hand-locked field, so "every console surface" is false of the head. ui/packages/plugin-calendar/src/ObjectCalendar.tsx submitQuickCreate builds its payload from the title field, quickCreateDateValues (the start and end date fields) and quickCreateFill (a value for each other required field), and sends it with dataSource.create. None of the three reads uiReadonly: the dialog is gated by calendarQuickCreate (the create grant) and by requiredFieldsQuickCreateCannotFill, which exempts readonly only. startFieldLocked / endFieldLocked close the drag and the resize handle, not the day click or the range select. So on an object whose calendar start field (or title field) is uiReadonly: true, a person clicks a day, types a title, and the console create carries the locked field; and a required + uiReadonly select with no defaultValue is written with its first option, where the describe says such a create fails. That contradicts three sentences this PR publishes or keeps: "every console surface", "the create and edit dialogs (it is left off them and out of their payload)" read as the console's creates, and "A console create leaves the field out and the server applies its defaultValue". The PR judges two other creates by the static half (timesheet, palette), so this one is the same class left out. The file is not in the diff; the finding is against the text. Fix either side: judge the quick-create by the static half (leave a locked field out of the payload and out of quickCreateFill, or hand the gesture to the full form) with a pin, or narrow the texts to the surfaces that hold. The same sentence is in the uiReadonly JSDoc, the field.json note ("Honoured on every console surface"), the changeset and the surfaces below.

packages/spec/src/data/field.metadata-form.ts — "anywhere in the console" in both help texts carries M1. The uiReadonlyWhen text is otherwise right: a create is not judged, so M1 does not reach its conditional half.

packages/mcp/src/mcp-http-tools.ts (describe_object) — "a person cannot edit the field on any console surface" carries M1, and:

S1 (should-fix) — describe_object and the two help texts state the universal without the open surface, and the PR body says otherwise. The body says the describe_object guidance "name[s] the assistant as the one that does not yet"; the tree's text does not mention it, and its code comment says "every console surface honours the hand lock". The reader of this text is an agent. "Your write may still set it" is right for an API caller, and is the opposite of the ruling for the in-app assistant acting for a person, which the card counts as a hand surface. While that surface is open the text should say so in one clause, as the uiReadonly describe does; the help texts either gain the same clause or stop at the surfaces they list.

Implementing files, against the contract:

  • ganttHandLock.ts / ObjectGantt.tsx — agree. The verdict is judged over the stored record with the shell's scope; a changed locked field refuses the patch, an echoed one is dropped; the static half only narrows the authored switches. A stored date that is not a string and is echoed back is refused rather than dropped, which fails closed.
  • timesheetModel.ts / ObjectTimesheet.tsx — agree. The create is judged by the static half over the row, date and value fields; the one-record cell by the full verdict, at draw and at commit.
  • paletteCreate.ts, ListView.tsx, handLock.ts header, the ledger row — agree with the head.

N1 (nit) — the changeset leaves @object-ui/core at patch beside a semantic declaration; the rule's letter gives a moved package minor. The diff to that package is a comment and the gate is green.

N2 (nit) — field.json cites timesheetModel.ts#cellEditable as the timesheet reader of uiReadonlyWhen. That function takes the verdict as a callback whose default answers open; the read of the key is valueLockedByHand in ObjectTimesheet.tsx.

Nothing private.

Implemented-by: claude/project-thread-riww1b
Reviewed-by: session_01L6bhgV6i8jfWwSXjpWJrjA

VERDICT: FAIL

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#2 · os-sales · session_01L6bhgV6i8jfWwSXjpWJrjA

Contract review

Served-tier: CONTRACT_REVIEW_TIER
Head-sha: 1916ae98dbe07ffc95354785e67ac18107c31501
Local-runs: none
Scope: packages/spec/src/data/field.metadata-form.ts, packages/spec/src/data/field.zod.ts + ui/packages/plugin-calendar/src/ObjectCalendar.tsx, packages/mcp/src/mcp-http-tools.ts, packages/spec/liveness/field.json, ui/packages/core/src/evaluator/handLock.ts, packages/qa/dogfood/test/expression-conformance.ledger.ts, ui/packages/plugin-gantt/src/ganttHandLock.ts, ui/packages/plugin-gantt/src/ObjectGantt.tsx, ui/packages/plugin-timesheet/src/timesheetModel.ts, ui/packages/plugin-timesheet/src/ObjectTimesheet.tsx, ui/packages/app-shell/src/chrome/paletteCreate.ts, ui/packages/plugin-list/src/ListView.tsx

Delta round on record 7214835610 (FAIL at 17cf9c93). Read: card #37448 (body and its five comments), the PR body and file list, record 7214835610, the net diff against main, the two PR-side commits after 17cf9c93 (fcf111d7ab, f116031585) and the merge commit, and the check-runs on the head (every one success or skipped; none failed). Code outside the diff was read in the head's tree to judge the texts, not reviewed. The tests (the new calendar pin included), the generated locale bundles, the reference pages and the changeset prose are the lane seat's ACCEPT.

The merge brings only main's content. The head is a two-parent merge of f116031585 with ddc96d8a42, which is an ancestor of main. Git's re-merge of the two parents reproduces the merge tree exactly (no conflict resolution and no hand edit in the merge), and the diff from the main parent to the head is byte-identical to the PR's net diff (36 files). Files the gantt, timesheet, palette, list and ledger rows of the scope name are unchanged since 17cf9c93; the earlier record's reading of them stands and is not repeated.

① Derived judgments

  • Accept set: unchanged — right. The delta moves .describe, JSDoc and helpText strings only in the two hits files; FieldSchema gains and loses no key and no value.
  • Public surface: nothing new in the delta — right. ObjectCalendar.tsx gains two module-private helpers and one optional key on a private interface; no export changes.
  • Behaviour: the calendar quick-create no longer writes a statically hand-locked field — right, and it is the declared key made real. Three new effects, each judged right: (a) a title, start or end field that is uiReadonly: true sends the day click and the range drag to the host's full create form, with a locked date field left out of the prefill, and offers nothing when there is no host form; (b) a required + uiReadonly field is left out of the dialog's write, so the server applies its defaultValue; (c) one with no defaultValue counts as unfillable and the gesture is handed off.
  • One effect wider than the card, right: the static half also answers true for readonly: true, so a calendar whose title or date field is server-locked now hands off as well, where main opened the dialog and the server dropped the field on insert. That was a dialog writing a value the server discards; the hand-off is the stricter and more honest answer. See N3.
  • "Every console surface, the assistant excepted" as a derived claim: right on this head, as far as it can be read. Beyond the surfaces the earlier record walked, the record writes under ui/packages reachable by a person were re-read: the console's form renderers (drawer, modal, tabbed, wizard) build their write through the one sanitiser that reads the static half; the calendar and kanban drawers save through the record panel that reads the verdict; the grid's bulk executor runs authored actions, which the ruling keeps. No further hand surface was found writing a locked field; this is a reading of the write call sites, not a proof of the universal.

② Semver level

  • Clause-②: no — right: no accept set widens and no exported signature changes in the delta.
  • Metadata-protocol: semantic where the claim said none — right, as judged in 7214835610: what an author's uiReadonly / uiReadonlyWhen does changes (more surfaces lock) while nothing an author can write is added or refused. The delta adds one more such surface and does not change the level.
  • The changeset now gives @object-ui/plugin-calendar minor, which the calendar change needs. Check Changeset is green on the head.

③ Boundary flags

  • Open question (the in-app assistant acting for a person): escalated, with a carrier. Part of #37448 stays the right link. The seat notes name card uiReadonly hand lock: the in-app assistant acting for a person does not honour it (its writes run in the cloud AI service) #37898 as the carrier of the surface; that card is outside this round's inputs and was not read. Which of the dev's options A or B holds is still the maintainer's to give.
  • Dev flag, Metadata-protocol changed from the claim: judged in ②, right.
  • Dev flag, N1 deliberately left: accepted as a deviation, below.
  • N7, N8: unchanged since 7214835610; answered there.
  • SQL push-down: the delta adds no read at all. No new id materialisation and no in-app join.

④ Design judgment

No must-fix, no should-fix.

M1: closed. submitQuickCreate in ui/packages/plugin-calendar/src/ObjectCalendar.tsx is now reachable only when quickCreateLockedOwnFields is empty, so the title and date keys it writes are never statically locked; its required-field loop skips a statically locked field before quickCreateFill, so the first-option write the earlier record named is gone; and requiredFieldsQuickCreateCannotFill counts a required locked field with no defaultValue as unfillable, so the dialog is not offered for a write the describe says fails. Tried to break it: fields authored as an array (both helpers read through quickCreateFieldEntries, so the lock is found); the default title key name; an end field locked alone (hand-off, end left out of the prefill, start kept); a caller-supplied onDateClick (the caller's own handler, not this component's write); no onEdit (no affordance, never a dialog that writes). Each holds. The three sentences M1 cited are true of the head: "every console surface", "left off them and out of their payload", and "A console create leaves the field out and the server applies its defaultValue".

S1: closed. The describe_object description now reads "a person cannot edit the field on any console surface, though the in-app assistant acting for a person does not honour it yet", and its code comment says the same; both help texts in field.metadata-form.ts end with "The in-app assistant acting for a person does not honour it yet." The universal no longer stands without its exception on any of the three.

packages/spec/src/data/field.zod.ts — holds. The uiReadonly describe and JSDoc list "calendar drag and quick-create" and keep the assistant sentence; each listed surface is true of the head. The uiReadonlyWhen describe correctly does NOT gain quick-create: a create is judged by the static half only, and the text says "A create is not judged". It leaves the assistant exception to uiReadonly by reference ("see uiReadonly"), which is enough.

packages/spec/src/data/field.metadata-form.ts — holds. "Anywhere in the console" is now true of the tree with the trailing exception. The parenthesis says "calendar and Gantt drag" and does not name quick-create; it is an illustration under a universal that holds, not a closed list.

Implementing files in the delta, against the contract:

  • ObjectCalendar.tsx — agrees, sentence by sentence, as under M1.
  • mcp-http-tools.ts — agrees. "Your write may still set it, judged by the validations" stays right for an API caller, and the reader now learns the assistant is the open surface.
  • field.json — agrees. The uiReadonly evidence cites "calendar drag and quick-create"; the uiReadonlyWhen evidence now cites ObjectTimesheet.tsx#valueLockedByHand, which exists on the head and is the read of the key.
  • handLock.ts header — agrees with the head.

N1: left as is by the dev (@object-ui/core at patch beside a semantic declaration; the diff to that package is a comment and the gate is green). Accepted deviation.

N2: fixed on a prose face, as above.

N3 (nit) — the changeset's calendar bullet and the PR body speak of a field "locked by hand" and do not say that a server-locked (readonly: true) title or date field now hands the gesture off too; and the PR body's summary, "What changes" and "Verification" sections predate the delta (no calendar quick-create, head 17cf9c93). Prose only; the PR body can be brought up to date without moving the head.

Nothing private.

Implemented-by: claude/project-thread-riww1b
Reviewed-by: session_01L6bhgV6i8jfWwSXjpWJrjA

VERDICT: PASS

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#2 · os-sales · session_01L6bhgV6i8jfWwSXjpWJrjA

席位核对 — ACCEPT · head 1916ae9 · card #37448 · area s2-data · 2026-11-27T10:39Z

L1 checklist

  • Shape and checks. Every check on the head is green; the one cancelled Check Changeset run was superseded by the rerun after the body edit, which succeeded. The two published packages the diff touches without a changeset entry, @objectstack/lint and @object-ui/plugin-kanban, move a test file each (validate-field-consumers.test.ts, ObjectKanban.handLock-36806.test.tsx), which does not ship.
  • Contract review at CONTRACT_REVIEW_TIER. 7214835610 at 17cf9c93 was FAIL (M1 calendar quick-create wrote hand-locked fields; S1 texts did not name the assistant). The delta record 7215978601 at this head: PASS, No must-fix, no should-fix.; M1: closed in code (the quick-create is offered only when its own title and date fields are not statically locked, a locked required field is skipped or hands off), S1: closed, N2 fixed, N1 an accepted deviation, N3 (PR body) fixed in the body without moving the head. Its transcript passes verify-review-tier. The seat adopts it.
  • Merge of main. Brings only main's own content: the record finds the second parent an ancestor of main and the PR's net diff byte-identical to the head against its main parent.
  • Declarations. Clause-②: no, Metadata-protocol: semantic (the declared lock now locks more surfaces) on the body and the changeset; @object-ui/plugin-calendar at minor. Skills-docs: none — no page under skills/** teaches uiReadonly or the hand lock, read on main.
  • Part of #37448 is right. One surface stays open, the in-app assistant writing for a person, now card uiReadonly hand lock: the in-app assistant acting for a person does not honour it (its writes run in the cloud AI service) #37898. 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 keeps pm:dispatched until the remaining surface lands.
  • Governance. check-governed-merges.mjs --pr 37888 on this file list: NOT governed, 873 changed lines (under the human-merge threshold). The contract face is answered by the at-tier record above.

Tier: S. Landing: ready and auto-merge in this stroke.

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/l tests tooling Fix lands in tooling, not a product package — enters pm:queue only with Unblocks: or a named surface

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants