Repository navigation
fix(core, console): the offboarding hand-over's owner follows each object's Change Owner switch - #36869
Conversation
…Change Owner switch Claude-Session: https://claude.ai/code/session_01QSeKYnUnriLNg19SxQdg2p Co-authored-by: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01QSeKYnUnriLNg19SxQdg2p Co-authored-by: Claude <noreply@anthropic.com>
…sing user; the hand-over docs read the switch Claude-Session: https://claude.ai/code/session_01QSeKYnUnriLNg19SxQdg2p Co-authored-by: Claude <noreply@anthropic.com>
…ndover-transfer-switch
…counts the new line Claude-Session: https://claude.ai/code/session_01QSeKYnUnriLNg19SxQdg2p Co-authored-by: Claude <noreply@anthropic.com>
…ed window Claude-Session: https://claude.ai/code/session_01QSeKYnUnriLNg19SxQdg2p Co-authored-by: Claude <noreply@anthropic.com>
📓 Docs Drift CheckThis PR changes 3 package(s): 18 hand-written doc(s) name something this change touched — list omitted above 15 rows. Re-derive on the tree named below: ⛔ 16 release-owned page(s) also affected — read-only, see AGENTS.md Documentation Guardrails. What this run could not see
Coarse fallback — 66 page(s) merely mention a changed package (the pre-#9192 predicate, kept for the deliberately-wide backstop): Which tree this was computed onThis run read A worktree cut from an older # while this PR is open — GitHub drops the merge commit once it closes
git fetch origin d6f3dc8c7ae1b9d3ef9bf9d9056d9c6d16a27b8f && git checkout d6f3dc8c7ae1b9d3ef9bf9d9056d9c6d16a27b8f
# afterwards, rebuild it from the two parents, which stay fetchable
git fetch origin 4f19091997f67617cfdf48b5f7051e7bf86725de b36be4c714a6a163985d7d03661829a141e3cbaf && git checkout -B drift-repro 4f19091997f67617cfdf48b5f7051e7bf86725de && git merge --no-ff b36be4c714a6a163985d7d03661829a141e3cbaf
node scripts/docs-audit/affected-docs.mjs --json 4f19091997f67617cfdf48b5f7051e7bf86725de
|
|
repo:objectstack#4 · os-justin · session_01QSeKYpEsWWE9Y5YtSsDgqZ 席位核对 — L1 REWORK · head
|
…he switch did before Claude-Session: https://claude.ai/code/session_01QSeKYnUnriLNg19SxQdg2p Co-authored-by: Claude <noreply@anthropic.com>
…ndover-transfer-switch # Conflicts: # ui/packages/i18n/src/__tests__/de-quote-pairing-3876.test.ts
|
repo:objectstack#4 · os-justin · session_01QSeKYpEsWWE9Y5YtSsDgqZ 席位核对 — ACCEPT · L1 · head
|
|
repo:objectstack#4 · os-justin · session_01QSeKYpEsWWE9Y5YtSsDgqZ Landing · 2026-11-24T10:17Z · head
|
| Probe | Reading |
|---|---|
check-governed-merges.mjs --pr 36869 |
NOT governed — 0 of 23 paths; 447 changed lines ≤ 3000 |
landing-k.mjs --pr 36869 |
OK — K = 2 < 15 on origin/main 9be1741595; no shared book moved since this head's merge |
pr-state.mjs --pr 36869 |
61 success · 9 expected skip · 0 failed · 0 pending · mergeable_state clean |
| os-regen drift | 0 — none of the 23 paths is on the merge=os-regen list |
State: L1 ACCEPT at this head (seat comment above). pr_ready + auto-merge now; the seat follows it to MERGED and closes out #35399 there.
|
repo:objectstack#4 · os-justin · session_01QSeKYpEsWWE9Y5YtSsDgqZ Queue ejection · 2026-11-24T10:46Z · head
|
⛔ merge queue 构建失败 — 先分诊,再决定要不要重排队列构建 45373444137 红了。队列跑的是全量套件(PR 侧 CI 只跑 affected 子集), 分类: 失败的 job(日志抽取,best effort):
跨 PR 相同签名(24h,按失败测试文件聚合):
历史信号:
分诊清单:
Generated by Claude Code · merge-queue-triage workflow (#4859) |
|
repo:objectstack#4 · os-justin · session_01QSeKYpEsWWE9Y5YtSsDgqZ Queue ejection — diagnosis · 2026-11-24T11:30Z · head
|
|
repo:objectstack#4 · os-justin · session_01QSeKYpEsWWE9Y5YtSsDgqZ Re-queue · 2026-11-24T16:23Z · head |
…bjectstack-ai#36881) <!-- claude-projects-attribution: {"github_login":"os-support-ai"} --> _Requested by **Yibo Wang** · [project thread](https://claude.ai/code/project/chan_01BVUyyPie8gHwoPM18iABwB?thread=cmsg_01BVUyyPie8gHwoPM18iABwBDErTg6aA1Xze24mDcUfseY)_ Part of objectstack-ai#36860 This is part (a) of the card's two-PR split, which the seat chose when the whole change measured about 3,530 changed lines: the spec declaration, the serving, the header translation, the extractor support and the console precedence, proven end to end on `hook`. Part (b) follows from `main` once this merges and closes the card: the other 26 types, their 52 new header leaves in the 11 `metadata-forms` bundles, the 9 console declarations moved into spec and the duplicate `object` registration resolved. Clause-②: yes (widening) Metadata-protocol: added Skills-docs: none — the served `list` is Studio display data that only the spec registry declares; a metadata author cannot write it, and no skill under `skills/**` teaches Studio list columns (`skills/objectstack-ui/SKILL.md` names `entries[].schema` only, unchanged) ## 维护者速读 - 工作室里「钩子」列表的列改由平台规范统一声明,列头随界面语言显示,其他元数据列表暂时不变。 - 属于工作室元数据列表标准化:列定义从控制台代码搬进规范,命令行和 AI 客户端读同一份。 - 只有看钩子列表的管理员会看到列变化;出错时退回原来的默认列,合并后可直接撤回。 - 无。 ## What changes - **Spec (`@objectstack/spec`).** `MetadataListViewSchema` is a list layout bound to the type's own schema (`data: { provider: 'schema', schemaId }`) with `columns`. Each `MetadataListColumnSchema` is `ListColumnSchema` narrowed to `field` / `label` / `type`. `field` is a schema key or a dotted path into it, and `type` is a `MetadataListCellTypeSchema` renderer: `text`, `badge`, `boolean`, `count`, `list` or `summary`. `defineList({ schemaId, columns })` builds one and refuses anything else. `METADATA_LIST_REGISTRY` (`system`) sits beside `METADATA_FORM_REGISTRY` and declares `hook` here. `resolveMetadataListLabels` translates a list's headers through `metadataForms.<type>.fields.<field>.label`. - **Serve (`@objectstack/metadata-protocol`, `@objectstack/rest`).** `getMetaTypes()` serves the registry entry as `list` beside `form`, and `GetMetaTypesResponseSchema` declares it. `translateMetaTypesResponse` localizes the headers with the bundle and locale it already uses for `form`. A type with no entry carries no `list` key. - **i18n (`@objectstack/lint`).** `walkMetadataForms` emits the form field slot for each column path the type's form does not already label, with the header as the English source. `scripts/check-i18n-bundles.mjs` names the registry module as a bundle trigger. Every `hook` header reuses a form label, so no bundle changes. - **Console (`@object-ui/app-shell`).** `ResourceListPage` reads the served columns first (`servedListColumns.tsx`). If the type serves none, it uses the console's `listColumns`, then the default name / label / description. A served header is shown as served. A key the stored row omits shows the schema default at that path. `listCells` overrides a served column's cell and `listExtraColumns` appends server-stamped values that are not schema keys. `builtinComponents.tsx` and `anchors.ts` are not touched here; their 9 declarations move in part (b). ## Tests - `packages/spec/src/system/metadata-list-zod-reconciliation.test.ts`: every column resolves to a declared, writable, non-retired, non-overlay key of its type's schema. No column is duplicated, and each header equals the form field label or the humanized path. Each refusal has a "gate can fail" pin: an undeclared key, an `_` overlay key, a retired key, an undeclared nested key, and `defineList` refusing `currency`, an empty column list and `width`. - `packages/metadata-protocol/src/protocol.meta-types-list-layout-36860.test.ts`: every registry type is served with its own frozen layout. The control is a type with no entry, which carries no `list` key. - `packages/rest/src/meta-types-list-headers.test.ts`: zh-CN headers are translated through the form field slot, dotted path included, and only the header is rewritten. The controls are the en headers, a type serving no list, and no in-place mutation across requests. Ablation: replacing the translate call with `next.list = entry.list` reds the zh-CN case (1 failed, 2 passed), restored by `trap`. - `ui/.../servedListColumns.test.tsx` covers the renderers, path and default readers and the precedence helpers. `ui/.../ResourceListPage.servedListColumns-36860.test.tsx` mounts the page and checks served headers in order, each renderer, schema defaults for absent keys, a dotted path, the default list as control, a `listCells` override and a `listExtraColumns` column. ## Acceptance notes - First batch: this PR declares `hook` only, by the seat's split. The keys of all 27 types were checked against their schemas, and the dropped or corrected keys are in the card's thread. They land with part (b). - `GetMetaTypesResponseSchema` declares `list` but still not `schema` / `form` (pre-existing gap, not widened here). - The runtime dispatcher's `/metadata/types` path does not translate `form` today, and `list` follows it (pre-existing, unchanged). - No plugin registrar for list layouts, per the seat route (7122844515). - Overlap: `node scripts/pm/overlap-check.mjs` reads clean against `main` and the three open PRs sharing files (objectstack-ai#36872, objectstack-ai#36869, objectstack-ai#36857). ## Verification Read first, by risk: 1. `ui/packages/app-shell/src/views/metadata-admin/ResourceListPage.tsx`: the precedence expression and `localizeColumnLabel` skipping a served header. 2. `packages/lint/src/i18n-walk.ts`: the column step in `walkMetadataForms`. It decides which bundle leaves part (b) adds. 3. `packages/spec/src/ui/view.zod.ts`: the `pick`/`extend` narrowing behind `defineList`. Two-minute check: `pnpm --filter @objectstack/rest exec vitest run src/meta-types-list-headers.test.ts`. Expect 3 passed, with the zh-CN case reading `['名称', '事件', '最大重试次数']`. <details><summary>Gates on 597f70e</summary> - `node scripts/pm/dispatch-gates.mjs --ran`: 145 derived, 145 run, 0 NOT-MEASURED, 0 UNRUN. Two findings were fixed in this PR: `check:test-source-alias` (module-top `@objectstack/objectql` import in the new rest test) and `check:engine-double-contract` (ledger rewritten with `--write` for the new metadata-protocol test). Three gates first exited 3 on prerequisites and were re-run green: the plugin-teardown self-test after fetching its pinned fixture commit, and `check:skill-examples` and `check:dual-build-cjs-loads` after building the packages that had no dist. - `pnpm --filter @objectstack/spec check:generated`: all 14 artifacts up to date. `check:authorable-surface`, `check:llms-txt`, `check:spec-parsed-alias`, `check-i18n-bundles` (no bundle changes), `check:i18n`, `check:i18n-walk-parity`, `check-changeset-no-major`, `check-empty-changeset` and `check-changeset-fixed` pass. `check:i18n-coverage` passes after building `service-print`. - `check-governed-merges --branch HEAD`: not governed, 1,309 changed lines. - `tsc --noEmit` is clean for `@objectstack/metadata-protocol`, `@objectstack/rest` and `@objectstack/lint`. `@object-ui/app-shell` type-check was not measured locally because the ui workspace deps have no dist; the only error in the changed files is the shared unresolved `@object-ui/components` import. CI's type-check lane is the verdict. - Tests: spec `src/system` + `src/api/protocol` 2,941 passed; app-shell `metadata-admin` list and directory pages 221 passed (15 files); `@objectstack/lint` i18n 27; metadata-protocol meta-types 67; rest list headers 3 + schema titles 3. </details> 🤖 Generated with [Claude Code](https://claude.com/claude-code) https://claude.ai/code/session_01WGufzg7mFFG5b13DcQ93kf <!-- signed: repo:objectstack#3 · os-support-ai · session_01WGufzg7mFFG5b13DcQ93kf --> --------- Co-authored-by: Claude <noreply@anthropic.com>
…both doors (objectstack-ai#36926) <!-- claude-projects-attribution: {"github_login":"os-support-ai"} --> _Requested by **Yibo Wang** · [project thread](https://claude.ai/code/project/chan_01BVUyyPie8gHwoPM18iABwB?thread=cmsg_01BVUyyPie8gHwoPM18iABwBDErTg6aA1Xze24mDcUfseY)_ Fixes objectstack-ai#36860 > **Held for the maintainer's own review.** This is part (b) of the card's two-PR split. The whole card measured about 3,530 changed lines, over the 3,000-line human-review line, so the maintainer ruled that every part goes to their own review whatever its size: splitting must not route around it. This PR stays a draft and out of the merge queue until the maintainer has read it. Part (a), objectstack-ai#36881, merged on L1 + L2 before that ruling and is handed to the maintainer with this one. This part closes the card: the other 26 types, their header translations in all 11 bundles, the console's own declarations moved into the spec, and the runtime dispatcher translating the types listing, which folds in objectstack-ai#36886 (the dispatcher answered `/meta/types` in English). Clause-②: yes (widening: `/meta/types` serves `list` on 26 more entries, and the runtime dispatcher's listing is now translated) Metadata-protocol: none ## 维护者速读 - 工作室里 27 类元数据(对象、字段、视图、页面、流程、报表、智能体等)的列表列改由平台规范统一声明,列头按界面语言显示(11 种语言都有译文);经运行时分发器访问的主机,类型列表也不再一律显示英文。 - 属于工作室元数据列表标准化(objectstack-ai#36860 的第二部分,第一部分是 objectstack-ai#36881):控制台、命令行和 AI 客户端读同一份列定义。 - 影响打开这些列表的管理员;列名和顺序有变化(例如页面列表去掉了不存在的 route 列)。出错时页面退回默认列,合并后可直接撤回。 - 需要你亲自审阅后再决定合并:这一卡总量超过 3,000 行,按你的要求分拆后的每一部分都交你审,本 PR 不进合并队列。 ## What changes - **Registry (`@objectstack/spec`).** `METADATA_LIST_REGISTRY` declares 27 types: the first batch (`hook`, `flow`, `job`, `api`, `action`, `report`, `dataset`, `email_template`, `assignment_rule`, `sharing_rule`, `queue`, `agent`, `tool`, `skill`, `doc`, `seed`, `mapping`, `picklist`, `translation`) and the eight the console declared itself (`object`, `field`, `view`, `page`, `dashboard`, `permission`, `position`, `book`). Every column is a key the type's schema declares, checked by the reconciliation test, whose roster now asserts all 27. Keys the card proposed that no schema declares were dropped or corrected, as reported in the card's thread. - **Headers in every language (`@objectstack/platform-objects`).** The 52 headers no form field already labels get their own `metadataForms.<type>.fields.<path>.label` leaf, regenerated with `node scripts/check-i18n-bundles.mjs --write` and translated in all ten non-English locales. No zh-CN, ja-JP or es-ES leaf echoes the English. A column the form labels reads the form's words. - **Both doors translate the listing (`@objectstack/rest`, `@objectstack/runtime`), objectstack-ai#36886.** `translateMetaTypesListing` (`meta-item-read-gate.ts`) is the one translation of the types listing: type labels and descriptions, form labels, list headers and schema titles. `RestServer`'s `GET /meta` now delegates to it, and the runtime dispatcher's `GET /meta` and `GET /meta/types` call it with the request's locale and answer through `successWithHeaders` with `Vary: Accept-Language`, as `RestServer` and the rest of the meta domain do. Before, the dispatcher served `getMetaTypes()` untranslated, so a zh-CN reader of a dispatcher-served host got English for all of it. - **Console (`@object-ui/app-shell`).** `builtinComponents.tsx` and `anchors.ts` drop their `listColumns` and keep only what the schema cannot say: a field row's server-stamped `object` (`listExtraColumns`), a position's holder count and granted permission sets, a view's derived display type and a book's audience (`listCells`), and a sharing rule's `sharedWith` rendering plus its `_packageId`. `object` was registered twice with disagreeing columns (the later won); both declarations are gone, so the spec's is the only one. A page's former `route` column named no `PageSchema` key and is dropped. - **Changelog for what admins see (`@object-ui/app-shell`).** The changeset names the private console package, which `.changeset/config.json` versions (`privatePackages.version: true`), and says what changes on screen: no fixed column widths on the moved lists (except the view list's display type and the book list's audience), the Fields list reads name, type, label, then object, the sharing-rule header reads "Access Level", and the Pages list shows type and description in place of the dropped route column. - **Summary cells read an expression's source (`@object-ui/app-shell`).** The `summary` renderer joined only an object's scalar members, so a cron schedule, whose `expression` is served as the `{ dialect, source }` envelope, read `cron · UTC`. An expression envelope member now contributes its `source`, so a cron job reads `cron · <expression> · UTC` (the showcase job: `cron · 0 1 * * * · UTC`). Any other object member stays out, as before. - **Echo ledgers (`@objectstack/platform-objects` tests).** The bare-type ledger reads a type as bare when its catalog entry has no form `sections`, since a type with no form now carries `fields` for its column headers; the metadata-form catalog count grows by the 52 header rows (771 → 823). - **Docs.** `content/docs/protocol/kernel/i18n-standard.mdx` adds the list columns row (`resolveMetadataListLabels`), the slot paragraph, and says all three resolvers run in `GET /meta` on both doors. ## Tests - `packages/spec/src/system/metadata-list-zod-reconciliation.test.ts`: the roster assertion grows from `['hook']` to the 27 types (111 passed). - `packages/lint/src/i18n-walk.metadata-list-columns.test.ts` (new, the L2 N2 pin on objectstack-ai#36881): a column on a type with no form gets its own slot entry seeded with the header (`job.schedule` → `Schedule`), a dotted path the form leaves out gets one (`agent` `model.model` → `Model`), a column the form labels keeps exactly one entry, the form's (`hook.events`), and every registry column has exactly one entry (4 passed). - `packages/runtime/src/domains/meta-types-translation-parity-36886.test.ts` (new): both dispatcher doors answer zh-CN with the same label, form label and headers as `RestServer` (`{ label: '钩子', form: '事件', headers: ['名称', '事件'] }`), and both carry `Vary: Accept-Language`, as `RestServer` does. Controls: an en request, and a host with no i18n service, answer as declared. Ablations: putting back `deps.success(result)` reds the zh-CN case (1 failed, 2 passed); answering the translated body without the header reds the Vary case (1 failed, 3 passed). - `ui/.../ResourceListPage.servedListColumns-36860.test.tsx`: mounts each moved list under setup (`?scope=environment`) and checks the served headers, plus the view list keeping its derived display type through its console cell override. ## Screenshots (card acceptance, zh-CN) Taken on a booted `examples/app-showcase`: hooks and flows built from `9ce7a6d0` (the commits after it until `f2edd9de` change only the changeset and tests), the Jobs list re-taken on `f2edd9de`, console at `/apps/setup/metadata/<type>?scope=environment`, browser locale zh-CN. Stored in the project's shared files under `objectstack-seat3-ux/36860-shots/`: - `hook-list-zh.png`: 钩子 (8). Headers 名称 · 显示名称 · 对象 · 事件 · 优先级 · 异步 · 描述 · 来源. Events read as a list (`beforeInsert, beforeUpdate`), async as ✓ / ×. - `flow-list-zh.png`: 流程 (33). Headers 名称 · 显示名称 · 类型 · 描述 · 来源. Type reads as a badge (`autolaunched`, `record_change`, `schedule`, `screen`). - `job-list-zh.png`: 后台任务 (1). Headers 名称 · 显示名称 · 调度计划 · 已启用 · 描述 · 来源. The schedule reads `cron · 0 1 * * * · UTC` (it read `cron · UTC` before `f2edd9de`, L1 S4), enabled ✓. Every `GET /api/v1/meta` the console made answered 200 with `Vary: Accept-Language`. Item labels and descriptions stay in English: they are the example app's own text, which has no zh translation. ## Acceptance notes - L2 nits on objectstack-ai#36881 carried here: N1 (headers marked localized while the dispatcher served them untranslated) is closed by the objectstack-ai#36886 fold; N2 pin added (above); N3 (`listInclude` prose true only after the position move) is now true; the reconciliation roster grows. `@object-ui/app-shell` was first left out of the changeset on that review's advice, and is back in on this PR's L1 (S3), because `.changeset/config.json` versions private packages. N7 (the reconciliation test copies `humanizeFieldPath`) is unchanged. - objectstack-ai#36887 (`GetMetaTypesResponseSchema` declares neither `schema` nor `form`) is not in this PR; it follows as its own small PR. - objectstack-ai#36886 is folded in without a closing keyword; it is closed by hand when this lands. - `report`'s `dataset` header reads `Data Source`, the report form's label on current `main`. - Overlap: `node scripts/pm/overlap-check.mjs` against `main` and the two open PRs sharing files: objectstack-ai#36869 (`rest-server.ts`) merges cleanly; objectstack-ai#36802 conflicts in `object-lifecycle-panel-echo-decisions.test.ts`, where both PRs move the catalog count and add a receipt line. Whichever lands second resolves it to the sum of both receipts. ## Verification Read first, by risk: 1. `packages/runtime/src/domains/meta.ts`: the two `getMetaTypes` sites now translated, and the locale they read. 2. `packages/rest/src/meta-item-read-gate.ts` with `rest-server.ts`: `translateMetaTypesListing` must answer exactly what `translateMetaTypesResponse` answered before. 3. `ui/packages/app-shell/src/services/builtinComponents.tsx` and `anchors.ts`: what the console keeps after the move. 4. Spot-read a bundle, e.g. `zh-CN.metadata-forms.generated.ts`, for the 52 new leaves. Two-minute check: `pnpm --filter @objectstack/runtime exec vitest run src/domains/meta-types-translation-parity-36886.test.ts`. Expect 4 passed. <details><summary>Gates on 2fe89a7 (first round; the rework commits 9ce7a6d, 137ae10, 06064a1 and f2edd9d re-ran the gates they touch, listed last)</summary> - `node scripts/pm/dispatch-gates.mjs --ran`: 125 derived, 125 run, 0 NOT-MEASURED, all exit 0. Fixed in this PR along the way: `check:test-source-alias` (module-top imports in the new tests), `check:spec-parsed-alias` (`MetadataListCellTypeParsed`) and `check:engine-double-contract` (ledger rewritten with `--write`). Three gates first exited 3 on prerequisites and were re-run green after fetching the plugin-teardown fixture commit and building the packages that had no dist. - `check-governed-merges --branch HEAD`: not governed, 2,834 changed lines (+2,591 / −243), 2,220 of them the 11 generated bundles. - `tsc --noEmit` is clean for `@objectstack/rest` and `@objectstack/runtime`. `@object-ui/app-shell` type-check was not measured locally (the ui workspace deps have no dist); CI's type-check lane is the verdict. - Tests: runtime `domains/meta` 2,756 passed; rest meta 2,263; app-shell `metadata-admin` 222; spec reconciliation 111; lint pin 4; rest list headers + schema titles 6. - Rework round 2: `servedListColumns.test.tsx` + `ResourceListPage.servedListColumns-36860.test.tsx` 17 passed, with a new case for a served cron envelope and a control for an object member with no `source`; ablation (back to scalar members only) reds it (1 failed, 10 passed). ESLint clean on both files. - Rework round: runtime parity test 4 passed; platform-objects `bare-type-display-echo-decisions` + `object-lifecycle-panel-echo-decisions` 73 passed (the two files CI's Test Core (6/10) failed on 99dc6d0); `check-changeset-fixed`, `check-empty-changeset` and `check-changeset-no-major` (with this body) exit 0. </details> 🤖 Generated with [Claude Code](https://claude.com/claude-code) https://claude.ai/code/session_01WGufzg7mFFG5b13DcQ93kf <!-- signed: repo:objectstack#3 · os-support-ai · session_01WGufzg7mFFG5b13DcQ93kf --> --------- Co-authored-by: Claude <noreply@anthropic.com>
Fixes #35399
Clause-②: no
Metadata-protocol: semantic
Skills-docs: none — no file under
skills/teaches the object switchuserActions.transferor the offboarding hand-over (git grep -i 'userActions\|change owner\|assigned-work' -- skillson the branch head hits only list-view and interfaceuserActions, a different key)维护者速读
What changes
userAssignedWorkFields(packages/core/src/security/user-assigned-work.ts) no longer carries its owncontrolled_by_parentreading (accessFollowsMasteris gone). Anowner_idthat is the platform's reassignable owner (isTransferEligible) followsresolveUserActionTransferfrom@objectstack/spec/data, the resolutionchangeOwnerOffReasonrefuses Change Owner by. Off by the derived default on a detail, on otherwise, author-overridable both ways.transferable: falseandreason: 'transfer_off'. A multi-valued field's row now saysreason: 'multi_valued'.transferUserAssignedWorkmoves onlytransferablerows, soremainingcounts only what another call could move. New exported typeUserAssignedWorkHoldReason(@objectstack/core). The client'sUserAssignedWorkSummaryrow gains the optionalreasonmember.owner_idon an object the platform gives no owner (systemFields: false) is app-authored too.required: falsemaster, a null-master row keeps its owner. The docblock and the admin guide say how a Modify All holder moves it by hand.UserAssignedWorkPanelpicksconsole.assignedWork.ownerKeptfortransfer_off. Only a multi-valued row keepsnotTransferable. The new key is in all 11 UI locales: ten are hand-translated, and zh-Hant is generated from zh-Hans (gen:zh-hant). The existingnotTransferabletext was already the multi-valued sentence and is unchanged.user-assigned-work.tsdocblock lead sentence (rewritten per object),security.assignedWork.countinpackages/client/src/index.ts,registerUserWorkEndpointsinpackages/rest/src/rest-server.ts, the admin guide's hand-over section (which this change made false), and the Change Owner paragraph of the data API page.assertAssignableUseron the real showcase, through the Change Owner door that shares it. A new owner who exists but sits outside the caller's organization (the caller's ownGET /data/sys_user/:idanswers 404, as armed) gets the same answer as an id that exists nowhere: status, code, field, and message apart from the id. The owner stays.File surface beyond the claim's list, declared:
packages/core/src/security/index.ts(the type export),content/docs/permissions/administrator-guide.mdxandcontent/docs/api/data-api.mdx(prose this change made false or incomplete). The dogfood case went into the existing Change Owner dogfood file, not a new one.Tests
All runs at head
a31b2c96unless named (the core, client and dogfood runs were at21720ae6and285d2848. The later commits touch onlyui/test files, the generated zh-Hant pack and docs).@objectstack/core, whole package:Test Files 156 passed (156),Tests 3740 passed (3740). The[#35399]describe has 11 cases: switch on (bare and object form), switch off (bare and object form), derived default on a detail, the twin under every other sharing model, an app-authoredowner_idon asystemFields: falseobject, a parity pin of the roster againstresolveUserActionTransferandchangeOwnerOffReasonover 9 definitions, count, transfer (with no read or write naming the detail's owner), and the optional-master null-master row. The Offboarding hand-over (#30205) moves owner_id on every business object, so a leaver's timesheets, expense reports and votes are handed to the successor #35344 interim pin (left out of the roster) is subsumed: the same fixtures now pin counted-not-moved, as the describe's lead comment says.@objectstack/client, whole package:Test Files 59 passed (59),Tests 820 passed (820).@objectstack/rest:src/user-work-routes.test.ts7/7 (only a comment changed inrest-server.ts).@objectstack/core,@objectstack/client,@objectstack/resttypecheckexit 0 (core's runs its test-layer gate too), and@object-ui/app-shelltype-checkexit 0 (src andtsconfig.test.json), after building its dependency closure.test/change-owner-endpoint.dogfood.test.tson the real showcase:Tests 7 passed (7), including the new N4 case.ActionParamDialog.banAssignedWork-30205.test.tsx16/16 (two newobjectstack#35399cases).ui/packages/i18n/whole package (--maxWorkers=1):Test Files 108 passed (108),Tests 2011 passed / 13 skipped.gen:zh-hantinstead of hand-written. The de paired-quote pin moves 134 to 135, with its note, for the one new de pair.@object-ui/app-shell's whole package (2476 test files) was not run locally. One--maxWorkers=2attempt was stopped by its recorded PID after about 30 minutes on this shared box. CI's shardedTest UIruns it.Acceptance notes
security.sharingModelspot is no longer read by the hand-over. The removedaccessFollowsMasterreadsharingModel ?? security.sharingModel, as the access gates do. The spec's switch default (derivedTransferDefault) reads only the declared top-levelsharingModel, andsecurityis not anObjectSchemakey. So a raw-registered object that spells its detail model only in the nested spot now hands its owner over, and Change Owner already offered the action on it. The two doors agree, and a parity pin covers this shape.git grepfinds no producer that writessecurity: { sharingModel }outside tests on this tree, so no card is filed. If the nested spot should count, the fix is one line in the spec'sderivedTransferDefault, and both doors follow it.transfer's.describeinobject.zod.ts, theuser-action-transfer.tsdocblock) still names only the Change Owner action. Neither statement is false (the switch still does not gate a plainowner_idwrite). Adding "and the offboarding hand-over" is apackages/spec.describeedit withgen:schema && gen:docs, outside this claim's file surface, so it is left for the seat to route.userActions.transfer: falseused to have its owners handed over and now keeps them. A detail withuserActions.transfer: trueused to keep its owner and now hands it over.Verification
Read first, by risk:
packages/core/src/security/user-assigned-work.ts:ownerTransferOffand the roster loop (the only rule change).packages/core/src/security/user-assigned-work.test.ts: the[#35399]describe, especially the parity pin againstresolveUserActionTransferandchangeOwnerOffReason.ui/packages/app-shell/src/views/UserAssignedWorkPanel.tsx:notTransferableKey.Two-minute check:
pnpm --filter @objectstack/core exec vitest run src/security/user-assigned-work.test.tsshows every[#35399]case green. In the console, ban a user who owns an invoice line on the showcase: the line's row says it is not handed over because the object keeps its owner, and the hand-over leaves it.Local gates (dispatch-gates --ran: 110 derived, 106 run, 4 NOT MEASURED, 0 UNRUN)
pnpm check:test-source-aliaswent red once, on this PR's own test, which loaded the locale packs inside a test body. That load moved to module top, and the gate is green ata31b2c96.pnpm --dir ui exec vitest run scripts/was SIGKILLed once under memory pressure. Re-run alone ata31b2c96, it gaveTest Files 172 passed / 2 skipped.check-plugin-teardown-shape --self-test(shallow clone),spec check:skill-examples(no built client-react),check:dual-build-cjs-loads(needs a whole-tree build),check:type-check-debt(re-measure prerequisite). CI runs all four.node scripts/check-nul-bytes.mjsexit 0 ata31b2c96.Generated by Claude Code