Repository navigation
Upgrade duly to @objectstack 18.6.0 - #191
Merged
Merged
Conversation
Every @objectstack range moves from ^18.3.0 to ^18.5.0 and the lockfile is regenerated. Three platform changes reached the gates; each is fixed at its cause: - field-label-duplicate (18.5, objectstack 3cbf1f2): duly_task, duly_duty and duly_log_entry showed Duly's `owner` and the platform's injected `owner_id` under one label ("Owner", 负责人). The objects now declare `owner_id` from the platform's own OWNER_FIELD_DEF, hidden and labelled "Record owner" (记录所有者); type, reference, insert stamp and `own` scope are unchanged. - A person's data access requires a current organization membership under every tenancy posture (18.4, objectstack e542831, ADR-0093 D8.1). The test fixtures' users are now members of the default organization, as the auto membership policy makes a real user. - A non-system write may name in a user field only a row the caller can read, and a banned user is refused at the write (18.4/18.5, objectstack eb96480). seed-history now names Alice by id rather than by the seed loader's natural key; the fan-out suites ban an assignee after the assignment is saved, the only order in which a ban can now reach the fan-out. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01JQwxbYdNXLejPwk9NRtzyG
Contributor
Author
|
repo:duly#1 · os-warren · session_01JQwxbYdNXLejPwk9NRtzyG 席位核对Verdict: ACCEPT (diff) · landing HELD for the maintainer's call · head
|
This was referenced Nov 15, 2026
Move all 16 @objectstack ranges to ^18.6.0 and regenerate the lockfile. 18.6 makes a named import mapping's label translatable (`mappings.NAME.label`). Re-derived against the pinned set: duly declares no mapping, so no string moves, but the `mappings` skip no longer rests on "machine names". It now rests on the collection being empty, and the pin test holds it there until the walk reads mapping labels. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01JQwxbYdNXLejPwk9NRtzyG
Contributor
Author
|
repo:duly#1 · os-warren · session_01JQwxbYdNXLejPwk9NRtzyG 席位核对Verdict: ACCEPT · round 2 (18.6.0) · head
|
os-warren
marked this pull request as ready for review
November 22, 2026 23:30
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Requested by Warren · project thread
Fixes #190
Clause-②: no
Metadata-protocol: none
维护者速读
owner_id列声明为隐藏,并改名为“记录所有者”;测试夹具补上组织成员身份,并按 18.4/18.5 的新校验调整三处测试的写法;18.6 新增可翻译的 mapping 标签,i18n 测试的平台集合随之更新并加了一条守卫。owner_id都叫 Owner/负责人);18.4 起没有组织成员身份的人读写不到组织数据;18.4/18.5 起 user 字段只能填调用者读得到的、未被封禁的用户。owner_id只改了标签、说明和可见性,类型、引用、新建时的自动赋值和own读取范围都沿用平台定义;演示数据的 13 个账号都有成员身份(实测)。回滚就是还原本 PR。src/objects/task.object.ts(owner_id声明,同样的改动在 duty、log-entry)、test/support/users.ts(夹具成员身份)、test/assignment-fanout.test.ts(封禁改为保存派活之后再生效)。pnpm install && pnpm validate && pnpm test,预期 validate 通过(hierarchy-security 既有警告外加 28 条数据集词表提示),47 个测试文件 1329 个用例全部通过。What changes
@objectstack/*ranges inpackage.jsonmove from^18.3.0to^18.6.0;pnpm-lock.yamlis regenerated and resolves every@objectstack/*package at 18.6.0 (commita13ebaewent to 18.5.0,a4f9e58to 18.6.0).field-label-duplicate(18.5, objectstack 3cbf1f2).duly_task,duly_dutyandduly_log_entryshowed Duly'sownerand the platform's injectedowner_idunder one label ("Owner", and 负责人 for a zh-CN reader). On 18.3 the task record page drew both, naming two different people (Duly's owner in the header, the creating admin under History and in the footer). Each object now declaresowner_idfrom the platform's own exportedOWNER_FIELD_DEF, withhidden: true, label "Record owner" (记录所有者), a Duly help text, and a group so the field-grouping invariant holds. Type, reference, the insert stamp andownread scope stay the platform's;test/task-provenance.test.tsstill readsowner_idstamped to the writer.test/support/users.tsensureUsersnow also makes each fixture user a member of the default organization, as theautomembership policy does for a real account. Without it a context frombuildContextForUsercarried an emptyaccessible_org_idsand every member/manager/admin write in four suites answered403 PERMISSION_DENIED.test/seed-history.test.tsnamed Alice by the seed loader's natural key ('seed_user_alice') in a data write, which the platform now answersreference_not_foundbefore the completion rule under test; it reads Alice's id after the seed.test/assignment-fanout.test.tssaved an assignment naming a banned assignee, which the assignment write now refuses (reference_user_banned); the ban now lands after the save, the only order in which a ban can reach the fan-out. The fan-out's own assertions are unchanged.mappingis translatable (18.6).test/i18n-coverage.test.tspinsmappingin the platform's translatable-type set;COLLECTION_HANDLING.mappingsinsrc/translations/authored-text.tsnow rests on the collection being empty, held by a new assertion that fails on the first declared mapping until the walk reads its label.No workaround is changed in this PR:
duly_member_open,duly_task_duty_readable, thesys_business_unitread and the dispatchhandlerare as onmain.Tests
All four gates on head
a4f9e58(the committed tree is the tree measured):pnpm validate: exit 0,Validation passed, 29 warnings (the existing hierarchy-security one and 28 new 18.6dataset-member-no-vocabularyhints).pnpm typecheck: exit 0.pnpm test: exit 0,Test Files 47 passed (47),Tests 1329 passed (1329).pnpm build: exit 0,Artifact: dist/objectstack.json (272.0 KB).On the bare 18.6 bump from
a13ebae: test exit 1 (1 failed, the translatable-types pin), the other three exit 0. Earlier, on the bare 18.5 bump: validate exit 1 (6field-label-duplicatefindings), typecheck exit 0, test exit 1 (Tests 75 failed | 1236 passed | 18 skipped, 6 files), build exit 1 (same 6 findings).Acceptance notes
owner? #143,ownscope readsowner_id); demo staff hold their membership (13 users, 13sys_memberrows), measured on a livepnpm demo.pnpm demoandpnpm start, and a zh-CN browser with no personal locale gets Chinese ondemo:zhandstart: both 18.5 regressions are fixed upstream (cli(dev):os devon 18.5 runs a job handler andonEnablefrom two evaluations of the app's module, so stateonEnablebinds is absent when the job runs ("Job duly_dispatch has no data engine") objectstack#34179, Console boots in the app's default language for a no-locale user even when the browser language is supported — 18.5.0 makes browser detection unreachable (zh-CN browser now gets English) objectstack#33985).owner_id"Owner" / 负责人, ignoringhiddenand the declared label (platform display, carried by the seat).Verification
Full browser check (en-US and zh-CN, 18.3
ce6fc4bbaseline): project filesduly-18.6-browser-check/REPORT.md(18.6, final) andduly-18.5-browser-check/REPORT.md(18.5 round). Verdict tables and re-measures are in the twoos-dev-reportcomments on #190.🤖 Generated with Claude Code
https://claude.ai/code/session_01JQwxbYdNXLejPwk9NRtzyG