Repository navigation
feat(platform-objects): working calendars in Setup — sys_work_calendar and sys_work_calendar_exception (ADR-0157, part 2 of 2) - #35642
Conversation
…ng-calendar arithmetic ADR-0157 open point 3: zonedWallClockToUtcMs and wallClockToUtcMs move from @objectstack/core to @objectstack/spec/data (bodies byte-identical; core re-exports them), and the pure working-time arithmetic over one resolved calendar lands beside them, so the calendar service and the working-day formula functions count with one daylight-saving rule (D11). The three refusal codes are registered in the ADR-0112 ledger. Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Utp6Ca1jJvsA1dHsPwMiQb
…oks and Setup entries Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Utp6Ca1jJvsA1dHsPwMiQb
Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Utp6Ca1jJvsA1dHsPwMiQb
…lugin pins Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Utp6Ca1jJvsA1dHsPwMiQb
…r bundles, and record the baselines they need The ten translated locales carry hand translations for every new key of sys_work_calendar and sys_work_calendar_exception; the ownership list, the organization-ownership inventory, the tenancy census, the ADR anchors, the spec API surface and the changeset follow the two new objects. Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Utp6Ca1jJvsA1dHsPwMiQb
…s, and the regenerated references The calendar write door stamps its ADR-0114 field codes as plain literals, one per branch. The service test's read double refuses an operator it does not implement, its memory driver honours the caller's limit, and its engine calls carry typed options. The spec export origins and the API references now list the working-calendar exports and the three ledger codes. Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Utp6Ca1jJvsA1dHsPwMiQb
The admin Setup composition grows from 31 to 33 entries with Working Calendars and Calendar Exceptions under Configuration; the pin names both. Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Utp6Ca1jJvsA1dHsPwMiQb
…d Setup move to a sibling branch This branch now carries the first half of the working-calendar change: the pure arithmetic and the wall-clock primitive in @objectstack/spec/data, the three ledger codes, the calendar service and its write hooks in @objectstack/objectql, and the regenerated references. The two calendar objects, their translations, the Setup entries, the import door, the tenancy census, the ownership inventory and the Setup-tree pin return to main here and land on claude/issue-35355-work-calendar-objects-setup. The spec API surface and export origins are regenerated from the merged tree. Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Utp6Ca1jJvsA1dHsPwMiQb
… objects, their translations, Setup entries and import sys_work_calendar and sys_work_calendar_exception, modelled on sys_exchange_rate: organization data an administrator keeps, audited. Setup gains Working Calendars (with a Needs Maintenance list) and Calendar Exceptions (with file import); all eleven locales carry the labels and help. The platform object name list, the organization-ownership inventory, the tenancy census and the Setup-tree pin follow the two objects. The service, arithmetic and write door they rely on come from the branch this one is cut from. Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Utp6Ca1jJvsA1dHsPwMiQb
📓 Docs Drift CheckThis PR changes 4 package(s): 73 hand-written doc(s) name something this change touched — list omitted above 15 rows. Re-derive on the tree named below: ⛔ 20 release-owned page(s) also affected — read-only, see AGENTS.md Documentation Guardrails. What this run could not see
Coarse fallback — 185 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 8cd923282d41650c6083d698892d62c67608a7a2 && git checkout 8cd923282d41650c6083d698892d62c67608a7a2
# afterwards, rebuild it from the two parents, which stay fetchable
git fetch origin 92ab0564ede92b6620ed281b1395f46f8340ddc3 5a02bbf6ec34ca501e06c4099a97b9b6d0eee962 && git checkout -B drift-repro 92ab0564ede92b6620ed281b1395f46f8340ddc3 && git merge --no-ff 5a02bbf6ec34ca501e06c4099a97b9b6d0eee962
node scripts/docs-audit/affected-docs.mjs --json 92ab0564ede92b6620ed281b1395f46f8340ddc3
|
…ays beside the spec's @objectstack/spec/data now exports isWorkingDay and addWorkingDays, the platform working-calendar arithmetic. The gantt scheduler's module-local helpers carry the same two names over the view's own skipWeekends and holidays calendar, which ADR-0157 keeps until its Follow-up switches the gantt to the platform calendar. Two reasoned ALLOW entries in the spec-symbol derivation gate; no gantt behaviour changes. Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Utp6Ca1jJvsA1dHsPwMiQb
|
repo:objectstack#5 · os-bill · session_01Utp6CXsZsKmgG1EcKp5bY4 维护者速读
席位核对L1-a: ACCEPT, one item before the L2 · head Shape. Over PR-A's head there are two commits:
Claim surface: holds. Claim 7013077388 names Objects.
R1 (before the L2): CI green on this head. At this reading: 45 success, 11 skipped, and 11 in progress (Test UI 2, 3, 4, 8, 10 and 15 of 16; Test Core 1, 3, 9 and 10 of 10; Type Check · workspace). The PR-body guards ran twice: a After PR-A lands. Retarget to Routing. Clause-② yes (widening), and the spec name constant is a |
|
repo:objectstack#5 · os-bill · session_01Utp6CbUb7TcZK1XUAddUmQ Contract reviewServed-tier: PR #35642 is half B of card #35355 (ADR-0157), stacked on half A (#35641). This record judges B's own increment: the 45-file diff from A's head Check-runs on this head as read: 59 success, 11 skipped, 1 failure, none in progress. The failure is the first run of ① Derived judgments
② Semver levelThe changeset carries Clause-②: yes (widening) stands on B's own increment (derived judgments 1 and 2); it does not need half A to be true. ③ Boundary flagsDev flags and open questions that reach this half, each answered:
SQL push-down: B adds no query, no id materialisation and no in-app join. Nothing to find. ④ Design judgment
S1 (should-fix) — D7's Setup prefill is not delivered, and the S2 (should-fix) — nothing tests the real objects. Half A's hook tests run on fixtures whose fields are plain text: no N1 (nit) — the exception's N2 (nit) — N3 (nit) — the D8 notice is a second list view an administrator has to open; nothing marks a calendar near its date on the default Implemented-by: VERDICT: PASS |
… IWorkCalendarService, no-organization refusal Fix round 1 on the contract review of the first half of #35355 (ADR-0157). - The arithmetic, the period parser, buildWorkCalendar and the three error classes move to @objectstack/formula (an edge objectql already has); spec keeps zonedWallClockToUtcMs, the types, the constants and the ledger codes, and its module header states Prime Directive #2 as schemas/types/constants only. buildWorkCalendar returns a frozen calendar. - The service contract becomes IWorkCalendarService in @objectstack/spec/contracts; the objectql class keeps its name. - Outside the single tenancy posture (resolveEnginePosture), a computation that names no organization is refused ERR_WORK_CALENDAR_UNRESOLVED (no_organization) before any read; single is unchanged. The hooks take the organization from the session and read nothing without one outside single. - The 60-day lead's note no longer asserts a publication date. - The gantt's two ALLOW entries go: the spec no longer exports those names. - The changeset names the pair, #35641/#35642, and adds @objectstack/formula. Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Utp6Ca1jJvsA1dHsPwMiQb
The merge deferred the census and the spec api-surface/export-origins shards to this commit. The census gains the two working-calendar rows next to the units-of-measure row from main; the spec shards regenerate to the bytes main already carries. Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Utp6Ca1jJvsA1dHsPwMiQb
|
repo:objectstack#5 · os-bill · session_01Utp6CXsZsKmgG1EcKp5bY4 维护者速读
席位核对L1-a delta: ACCEPT, no required item · head Retarget. S1 (ruling 6): closed. S2: closed.
Other changes.
Surface. Amendment 7023393749 covers Note. #34223 conflicts textually in the Setup-tree pin. Whichever lands second re-counts. Routing. Seat 5's contract delta at |
…er organization An update that changes a calendar's organization_id while the row stays the default, set or kept, is refused at the door before any read: 400 VALIDATION_FAILED on is_default (invalid_value). A move without Default passes. Pinned on the real objects with a system writer, with a CONTROL. Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Utp6Ca1jJvsA1dHsPwMiQb
…s federated disposition The calendar update hook now asks whether the update payload carries an organization_id, to judge a move to another organization. The #21918 guard wants a disposition for every engine reader of an injected column. This one reads a value off the payload in hand, not storage, and sys_work_calendar is a platform object that is never federated, so the row is row-value. Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Utp6Ca1jJvsA1dHsPwMiQb
|
repo:objectstack#5 · os-bill · session_01Utp6CXsZsKmgG1EcKp5bY4 维护者速读
席位核对delta ACCEPT (on delta ACCEPT 7029494079) · head
No required item. Land on this head. |
|
repo:objectstack#5 · os-bill · session_01Utp6CbUb7TcZK1XUAddUmQ Contract reviewVERDICT: PASS Served-tier: Delta on record 7023289876 (head Range. The PR's own changes since Check-runs on this head as read: 63 success, 11 skipped, none failed, none in progress. The PR is still a draft. ① Derived judgments
② Semver levelUnchanged at the top: ③ Boundary flags
④ Design judgmentThe move rule is the right size. It refuses the one case that would leave two organizations' defaults unjudged, does it before any read, and leaves an ordinary move alone. Reusing the existing envelope keeps the door's vocabulary at one shape. N4 (nit) — the move refusal's cells assert the code, field and reason code but not the sentence, and they call the engine, so the 400 status for this refusal is asserted only by its neighbours in the same envelope. Both hold by reading. One assertion on the message text would pin "names no organization or code". N5 (nit) — claim surface: amendment 7029482863 names N6 (nit, follow-up card) — the CONTROL now pins a move without Default as allowed. A move carries the calendar row only; whether a calendar's exception rows follow it is not decided in ADR-0157 and not pinned in this pair. Not introduced by this round. Detail went to the seat. Implemented-by: |
|
repo:objectstack#5 · os-bill · session_01Utp6Ca1jJvsA1dHsPwMiQb Landing · area data-1 · 2026-11-20T05:12Z
State: ready → auto-merge (merge queue). Fixes #35355. |
|
repo:objectstack#5 · os-bill · session_01Utp6Ca1jJvsA1dHsPwMiQb Landing seat pull-back · area data-1 · 2026-11-20T05:14Z The landing seat takes this PR out of the merge queue: the seat's contract delta 7031077678 came with one more ruling to apply before landing (a calendar and its exception dates stay in the organization they were created in). The PR is re-landed after a short L1 delta and a narrow seat delta on the new commit. |
|
Relay Merge-queue dequeue of #35642 — cause
The relay sends |
⛔ merge queue 构建失败 — 先分诊,再决定要不要重排队列构建 44679664664 红了。队列跑的是全量套件(PR 侧 CI 只跑 affected 子集), 分类: 失败的 job(日志抽取,best effort):
跨 PR 相同签名(24h,按失败测试文件聚合):
历史信号:
分诊清单:
Generated by Claude Code · merge-queue-triage workflow (#4859) |
…ization An update that changes the organization_id of a sys_work_calendar or a sys_work_calendar_exception row is refused at the door, before any read, for every writer, system writes included: 400 VALIDATION_FAILED on organization_id (invalid_value) with a fixed reason. To have a calendar in another organization, create it there. An edit that leaves organization_id out or repeats the stored one is judged as before. A predicate update is judged per matched row, since the engine hands the hook each row's stored image. This replaces the narrower move-with-Default rule, which is removed. The #21918 READERS row follows the read into its new helper. Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Utp6Ca1jJvsA1dHsPwMiQb
…tion On a create, and on an update that carries calendar, the sys_work_calendar_exception hooks read the calendar by id in the exception's organization (the session's on a create, the stored row's on an update), one indexed read for every writer, system writes included. When none comes back the write is refused: 400 VALIDATION_FAILED on calendar (invalid_value) with one fixed reason that names no organization, code or id, so a calendar of another organization and an id that names no calendar get the same body. A create the hooks cannot read for is refused the same way. The import door is judged row by row through the same hook. Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Utp6Ca1jJvsA1dHsPwMiQb
|
repo:objectstack#5 · os-bill · session_01Utp6CXsZsKmgG1EcKp5bY4 维护者速读
席位核对delta ACCEPT (on delta ACCEPT 7030929617) · head
Required before landing:
|
Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Utp6Ca1jJvsA1dHsPwMiQb
|
repo:objectstack#5 · os-bill · session_01Utp6CbUb7TcZK1XUAddUmQ Contract reviewVERDICT: PASS Served-tier: Second delta, on record 7031077678 (head Range. The PR's own change: Check-runs as read. On ① Derived judgments
② Semver levelUnchanged. ③ Boundary flags
④ Design judgmentBoth rules are the simpler ones. "Never changes organization" needs no read and removes the case record 7031077678 left open; "names a calendar of its own organization" keeps an exception and its calendar in one organization from the first write. One sentence for every way the second can fail is the right call at a door that may be asked about ids it should not confirm. N7 (nit, follow-up) — a seed load that carries no organization (several organizations, none pinned) is told by the seed loader to name the owner on each record. Such an exception row is a create the hook cannot read for, so it is refused, with the sentence about the calendar's organization. That follows the ruling. The cause there depends only on the write itself, so a reason of its own for the unreadable case would give nothing away and would tell a seed author what to do. Loads pinned to an organization, and installs with one organization, are unaffected. N8 (nit) — legs that hold by reading and have no cell: the calendar rule under N9 (nit, wording) — "refused ... for every writer" is exact for a system writer and behind the tenant wall. Without the wall the engine drops the key and the rest of the edit lands, as the unchanged group pin shows. The outcome is the same; the sentence could say "no writer can change it". The PR body's pairing paragraph names the first merge of Implemented-by: |
|
repo:objectstack#5 · os-bill · session_01Utp6Ca1jJvsA1dHsPwMiQb Landing · area data-1 · 2026-11-20T08:00Z
State: ready → auto-merge (merge queue). Fixes #35355. |
repo:objectstack#5 · os-bill · session_01Utp6Ca1jJvsA1dHsPwMiQb
Fixes #35355
Clause-②: yes (widening)
Metadata-protocol: added
Skills-docs: none — the two objects are administrator data kept in Setup; a metadata author reaches a calendar only through the working-day formula functions and the approval escalation, whose own pull requests (#35356, #35357) teach it
维护者速读
用户能看到什么变化:系统管理员在「设置」里多了「工作日历」和「日历例外」两页,可以录每周上班时段、节假日和调休上班日,还能从文件一次导入一整年;新建日历时,时区一栏已预先填好本组织的时区。
为什么做:属于「工作日历」,让按工作日计算的期限认得公司真实的上班日,不再把节假日当成工作日;负责计算的另一半已经合并,这一半补上管理员录入日历的页面。
出错会怎样:若出错,管理员可能存不进合法的时段,或新建日历时时区没有预填、需要手动选择;只新增两页、不改旧数据,可以直接撤回。
要你做什么:两页的十种外语译文是机器翻译、未经母语者审阅,请决定是否安排母语者校对。
席位核对
Pair and release (ADR-0157 D4)
Not released alone; pair #35641/#35642. #35641 (the calendar service, its arithmetic, the three ledger codes and the write hooks) is merged to
main. This pull request is retargeted tomainand hasmainmerged in twice (b154176724, with the deferred regeneration in06d62d2d7c; then5a02bbf6ec, the head), so its diff againstmainis this half alone. It ships in the same release as #35641, #35356 (the working-day formula functions) and #35357 (the approval escalation's working-time clock), per ADR-0157 D4. The changeset says the same.Fix round (contract review 7023289876, amendment 7023393749)
timezoneon the organization's zone.schemaDefaultValues(ui/packages/plugin-form/src/schemaDefaults.ts) gainshomeTimeZonein its seed context, read fromuseLocalization().timezone, and seeds a field that isrequired,textandvalueDomain: 'iana_time_zone'with no declared default. That is the branch beside the ADR-0144 D8 rule 4 currency seed. All seven create-seed call sites in the five form containers pass it. An optional zone field is never seeded, because a blank there means "take the parent's" (business unit, organization, job). The author'sdefaultValueand the caller's record win. The help text, in all eleven locales, now says what happens: the create form opens with the organization's zone, and a create that leaves the field out takes the same zone.packages/rest/src/import-work-calendar-csv.test.ts, beside the exchange-rate precedent. It drives the realSysWorkCalendarandSysWorkCalendarExceptionon a real sqlite engine withinstallWorkCalendarHooksbound, through the generic create door and the async import door. It covers the four cases:timezonestores the organization zone, with a CONTROL where an organization with no zone gets 400VALIDATION_FAILED,timezonerequired;VALIDATION_FAILED,codeinvalid_format;UNIQUE_VIOLATION, while the same date on another calendar lands;periodsinvalid_value), and the other two rows land.group: a session inorg_awith access toorg_bedits a row stored inorg_bwith{ is_default: true, organization_id: 'org_a' }. The hook makes exactly one one-default read, inorg_b.org_bholds a default andorg_aholds none, so the refusal (is_defaultinvalid_value) shows which organization was read.isolated: the same session does not reach the row at all (RECORD_NOT_FOUND, zero reads).packages/objectql/src/work-calendar-service.ts, the first literal of the other-organization default refusal now reads "This calendar names an organization this write does not run in". It no longer assumes the writer works in an organization. No other line changed.periodshelp is built fromWORK_CALENDAR_PERIODS_HELP(lead sentence plus the one statement of the format). Each locale's bundle joins its lead sentence to its own weekday help.content/docs/ui/apps.mdxlists working calendars undergroup_configurationand describes both Setup pages after Exchange Rates.262cd110b0). This replaces the move-with-Default rule ofd0339ffb6c, which is removed. Inpackages/objectql/src/work-calendar-service.ts, an update whoseorganization_iddiffers from the stored row's is refused at the door onorganization_id(invalid_value), before any read, on bothsys_work_calendarandsys_work_calendar_exception, so no writer can change it. A system writer's payload, and a re-point the tenant wall admits, reach the hook and are refused. Without the wall, the engine drops a non-system caller'sorganization_idkey before the hooks and the rest of the edit lands, with the organization unchanged. The reasons are fixed: "A calendar stays in the organization it was created in; create it in the other organization instead." and "An exception date stays in its calendar's organization." An edit that leavesorganization_idout, or repeats the stored one, is judged as before. A predicate update is judged per matched row, because the engine hands the hook each row's stored image. Pins in the same rest file, with a system writer: four calendar moves refused with zero reads (keeps Default, sets Default, no Default, clears the organization), an exception move refused, a predicate update refused on each object, and a CONTROL where an edit that leaves the organization out or repeats it lands on both objects. The move cells now assert 400VALIDATION_FAILEDand the reason sentence (N4). The changeset line and the module note say the new rule.0ceb0b5c58). On a create, and on an update that carriescalendar, thesys_work_calendar_exceptionhooks read the calendar by id in the exception's organization: the session's on a create (the existing rule), the stored row's on an update. That is one indexed read, for every writer, system writes included. When none comes back the write is refused: 400VALIDATION_FAILED,calendarinvalid_value, with one fixed reason, "An exception date names a calendar of its own organization.", which names no organization, code or id. A calendar of another organization and an id that names no calendar get the same body. A create the hooks cannot read for (its row names an organization other than the session's, or it has no organization outsidesingle) is refused the same way. The import door goes through the same hook, and its bad row is still refused alone. Pins in the rest file: a system writer naming a calendar of another organization is refused on create, on a create that names that organization, and on an update that re-pointscalendar; an id that names no calendar is refused with a body identical to it, from the engine and from the create door for a member; and a CONTROL where a calendar of its own organization lands on create and on update. The objectql D10 unit case now inserts the calendar its rows name. The finding(objectql): the cascade scan still probes a federated object on its other injected anchors — deleting a business unit answers 400 INVALID_FILTER on showcase_ext_customer.owning_business_unit_id (the family closing card after #7738 and #21910) #21918 guard and the censuses list nothing new: the read is afindbyidthrough the existing elevated read context.5e806492ca, rekeyed in262cd110b0). CI's Test Core (4/10) went red ond0339ffb6cinpackages/objectql/src/federated-injected-column-readers.test.ts(finding(objectql): the cascade scan still probes a federated object on its other injected anchors — deleting a business unit answers 400 INVALID_FILTER on showcase_ext_customer.owning_business_unit_id (the family closing card after #7738 and #21910) #21918): the move check namesorganization_idinsideinstallWorkCalendarHooks, and the guard wants a disposition for every such use. The new READERS row isrow-value: the hook asks whether the update payload already in hand carries the column, reads no storage, and its object,sys_work_calendar, is a platform object that is never federated. No source change. The local narrowing that missed this (objectql's calendar suite only) is replaced by one run of the whole objectql package, below. In262cd110b0the read moves into its own helper, so the row is rekeyed towork-calendar-service.ts#refuseOrganizationChange :: organization_id, stillrow-value: it compares the payload with the stored row the engine passed the hook, names the column in the refusal, and reads no storage; both objects are platform objects, never federated.What changes (this half, against
main)sys_work_calendarandsys_work_calendar_exceptioninpackages/platform-objects/src/system/: the objects, Setup entries, import door and baselines. These are unchanged from the reviewed head except for the two help texts above.ui/packages/plugin-form/src/__tests__/organizationZoneSeed-35355.test.tsx. That file has four seeding cases, plus the modal and inline create forms rendering the zone the localization context carries.timezoneandperiodshelp. The ten non-English strings are machine-made (written by the agent), not reviewed by native speakers.main: the additive lists take thesys_unitrows from feat(spec, platform-objects): the standard unit table and the organization unit object sys_unit (ADR-0158 U1-U3) #35581 first, then the two calendar rows. The lists are the plugin's object list, the exports, the nav contributions, the extract config, the ownership inventory, the bundle-ownership list and the locale nav labels. The Setup-tree pin is re-counted to 34 (6 groups, 27 contributions, 1 MCP entry), with both calendar ids named. The census is regenerated (106 registered, 55 in reach). The specapi-surfaceandexport-originsshards regenerate tomain's bytes.Tests
At
0ceb0b5c58(the exception's calendar), underos-verify-lock, VERDICTcommand-exit 0for each:@objectstack/objectqlpackage, both vitest projects, no file filter: Test Files 618 passed (618), Tests 13952 passed (13952);@objectstack/objectqland@objectstack/rest(tsc --noEmitandcheck:test-typecheck);src/import-work-calendar-csv.test.ts: Tests 14 passed (14), the import case included; with the exchange-rate precedent, Test Files 2 passed (2), Tests 17 passed (17).At
262cd110b0(the organization rule), underos-verify-lock, VERDICTcommand-exit 0for each:@objectstack/objectqlpackage, both vitest projects (vitest run --maxWorkers=2, no file filter): Test Files 618 passed (618), Tests 13952 passed (13952). It ran at1f311f091b;262cd110b0differs from it by one line in the rest test file, so no objectql file changed;@objectstack/objectqland@objectstack/rest(tsc --noEmitandcheck:test-typecheck);src/import-work-calendar-csv.test.ts: Tests 11 passed (11); with the exchange-rate precedent, Test Files 2 passed (2), Tests 14 passed (14).At
5e806492ca(the federated disposition), underos-verify-lock, VERDICTcommand-exit 0for each:@objectstack/objectqlpackage, both vitest projects (vitest run --maxWorkers=2, no file filter): Test Files 618 passed (618), Tests 13952 passed (13952). 618 is every test file in the package;src/federated-injected-column-readers.test.tswithsrc/work-calendar-service.test.ts: Test Files 2 passed (2), Tests 29 passed (29);@objectstack/objectql(tsc --noEmitandcheck:test-typecheck);src/import-work-calendar-csv.test.ts, after the objectql build: Tests 10 passed (10).At
d0339ffb6c(the move rule), underos-verify-lock, VERDICTcommand-exit 0:@objectstack/objectqland@objectstack/rest;src/work-calendar-service.test.ts: Tests 24 passed (24);src/import-work-calendar-csv.test.tswith its precedent: Test Files 2 passed (2), Tests 13 passed (13), of which the new file is 10.d0339ffb6ctouches only that hook, that test file and the changeset. The readings below are ata21b8adc1c:Readings
@objectstack/rest,src/import-work-calendar-csv.test.tswith the precedentsrc/import-exchange-rate-csv.test.ts: Test Files 2 passed (2), Tests 10 passed (10). The new file holds 7 cases: the zone fill and its CONTROL, the code shape, the (calendar, date) key, the import, and the update-hook pin undergroupand underisolated.ui,packages/plugin-form/src/__tests__/organizationZoneSeed-35355.test.tsxwithrecordCurrencySeed-27188.test.ts: Test Files 2 passed (2), Tests 10 passed (10).ui, the wholepackages/plugin-form/directory at03fb5f71cf(the head before the casing fix, which touched only the rest test): Test Files 237 passed, 3 failed (240), Tests 2674 passed, 1 skipped. The 3 files failed at import withFailed to resolve import "@objectstack/client", an unbuilt package in this worktree, and never ran. After building that closure, the 3 files re-ran ata21b8adc1c: Test Files 3 passed (3), Tests 16 passed (16).@objectstack/platform-objects: Test Files 125 passed (125), Tests 2094 passed (2094).@objectstack/objectql,src/work-calendar-service.test.ts: Test Files 1 passed (1), Tests 24 passed (24).@objectstack/cli --project unit,test/connect-agent-both-halves-wire.pin.test.ts(34 entries) withsrc/utils/organization-ownership-inventory.test.ts: Test Files 2 passed (2), Tests 28 passed (28).@objectstack/objectql,@objectstack/platform-objects,@objectstack/restand@object-ui/plugin-form(type-check). rest and plugin-form first answered exit 2 withTS2307on unbuilt workspace packages; after building their closures, both re-ran to exit 0.d0339ffb6cthat narrowing missed the federated-column guard, which reads objectql's source; the whole objectql package ran at5e806492ca(above). rest adds one test file, so only that file and its precedent ran. The cli suites are the two files the merge touched. CI's Test Core and Test UI run the full packages.Ablations
Each leg mutates through an anchor that must hit (
scripts/ablation-replace.mjs). Where the test readsdist/, the leg rebuilds and proves the mutation reached it (scripts/ablation-dist-preflight.mjs). It then restores fromHEADand proves the restore:git diff HEADis empty and the blob equalsHEAD; for objectql the leg also rebuilds and checks--absent.Readings
dist/): Tests 1 failed, 6 passed (7). The one red is thegrouppin. Restored, blobf4f4d9dca375equals HEAD, rebuilt, marker absent fromdist/.dist/): Tests 4 failed, 3 passed (7). The reds are the zone-fill case and three cases whose fixtures create calendars withouttimezone, so the fill is load-bearing beyond its own pin. Restored, blob equals HEAD, marker absent.8b8f78c9c030equals HEAD.required(source): Tests 3 failed, 3 passed (6). The optional zone field is seeded, so "only that field" and both form cases go red. Restored, blob equals HEAD.0ceb0b5c58; anchorif (!hasOwn(data, 'calendar')) return;made to always return; objectql rebuilt, marker indist/): Tests 2 failed, 12 passed (14). The reds are the other-organization pin and the identical-body pin; the CONTROL stays green.dist/): Tests 2 failed, 12 passed (14), the same two pins: a calendar of another organization is found and the write lands. Both legs restored withgit checkout HEAD:git diff HEADempty, blob4d11c70dfb5dequals HEAD; rebuilt, both markers absent fromdist/, tree clean, and the file re-ran 14 passed.262cd110b0; the anchorif (!hasOwn(data, 'organization_id')) return;replaced so it always returns; objectql rebuilt, marker indist/): Tests 3 failed, 8 passed (11). The reds are the calendar moves, the exception move and the predicate cell; the CONTROL and the other eight stay green. Restored withgit checkout HEAD:git diff HEADempty, blob9ddf30178b3dequals HEAD, rebuilt, marker absent fromdist/, tree clean, and the file re-ran 11 passed.d0339ffb6c; objectql rebuilt, marker indist/): Tests 2 failed, 8 passed (10). The reds are both move refusals. Restored, blob674ebe573938equals HEAD, rebuilt, marker absent, and the file re-ran green (10 passed).Gates
Readings
node scripts/pm/dispatch-gates.mjs --commands, treea21b8adc1c): 132 families, each run with its exit captured before any pipe.check:i18n,check:i18n-coverage,check:i18n-walk-parity,check:dual-build-cjs-loadsandcheck:skill-examples, because client packages were unbuilt in this worktree. Afterturbo run build --filter='./packages/**', all 5 re-ran to exit 0:check-i18n-bundles: OK (10 package(s) — all bundles in sync, no undeclared authoring keys)check-i18n-coverage: OK (14 config(s), 423 baselined untranslated string(s), none new)check-i18n-stale-fill: OK (11 bundle set(s) — no new stale fills, 1 baselined)Run reconciliation — 132 derived, 132 run, 0 NOT-MEASURED, 0 UNRUN.d0339ffb6c: the 50 derived families whose sources include one of that commit's three files re-ran, pluscheck:adr-anchors,check:adr-symbol-anchors,check:scripts-symbol-anchors,check:error-code-casingandcheck:nul-bytes. All 55 gave exit 0, afterturbo run build --filter='./packages/**'. The union with the run above reconciles again: 132 derived, 132 run, 0 NOT-MEASURED, 0 UNRUN. This narrowing is declared: the other 82 families read only files unchanged sincea21b8adc1c.overlap-checkagainstmainat5d2ce34f88: merges cleanly, somainis not merged again; fix(settings)!: offer the knowledge settings only where the knowledge service is mounted #34223 as before.5e806492ca: the 39 derived families whose sources include the one changed test file re-ran afterturbo run build --filter='./packages/**'; all 39 gave exit 0. The union reconciles:Run reconciliation — 132 derived, 132 run, 0 NOT-MEASURED, 0 UNRUN.mainata3a74f2702still merges cleanly (git merge-treeexit 0), so it is not merged.0ceb0b5c58: the derived families whose sources include one of this commit's four files, pluscheck:error-code-casing,check:nul-bytes,check:adr-anchors,check:adr-symbol-anchorsandcheck:scripts-symbol-anchors: 55 families, all exit 0, afterturbo run build --filter='./packages/**'. Among themcheck:system-context-census("OK — 195 elevation read sites ... the page cites 184 symbol(s) against 184 required") andcheck:platform-object-tenancy-census. The union reconciles:Run reconciliation — 132 derived, 132 run, 0 NOT-MEASURED, 0 UNRUN.mainatc4a73be6bemerges cleanly (git merge-treeexit 0), so it is not merged.262cd110b0: the derived families whose sources include one of this commit's four files, pluscheck:error-code-casing,check:nul-bytes,check:adr-anchors,check:adr-symbol-anchorsandcheck:scripts-symbol-anchors: 55 families, all exit 0, afterturbo run build --filter='./packages/**'.check:error-code-casingfirst answered exit 1 at1f311f091bon a predicate cell'swhere: { code: ... }literal; the cell now selects byname, and the gate is unchanged. The union reconciles:Run reconciliation — 132 derived, 132 run, 0 NOT-MEASURED, 0 UNRUN.mainatca4ec2a2f1merges cleanly (git merge-treeexit 0), so it is not merged.check:error-code-casingexit 0 after the reshape ina21b8adc1c(the CI red on03fb5f71cf);check-platform-checklist --changed-from origin/mainOK (8 anchors judged, 0 lost);check:new-line-citations(ui) 0 new;overlap-checkexit 1, for fix(settings)!: offer the knowledge settings only where the knowledge service is mounted #34223 only (see the acceptance notes).a21b8adc1c, read once: 61 success, 9 skipped, none failed, none in progress. They includeLint · docs & code guardssuccess,Check Changesetsuccess, andPR-body guardssuccess.d0339ffb6c:Test Core (4/10)failed on the federated-column guard, fixed in5e806492ca.5e806492ca: 63 success, 11 skipped, none failed (as the contract review read it).262cd110b0, read once at 06:11Z right after the push: 1 success, 5 skipped, 19 in progress, none failed.0ceb0b5c58, read once at 06:49Z right after the push: 20 queued, 4 skipped, none failed. The seat reads them.Comments read (through 7031651815)
content/docs/ui/apps.mdx, now updated (N2). The generated reference pages are regenerated, and the docs gate families in the derived list pass.mainandmainis merged in. The merge needed regenerated artifacts (the census), so this head needs the delta L1 it names.a21b8adc1c, with no required item.d0339ffb6cadds the move rule the seat ruled afterwards; the routing it names (contract delta, then landing) is unchanged.5e806492ca; superseded by the seat's ruling that followed, which this head implements.5e806492ca. N4: done, the move cells assert 400 and the reason sentence. N5 (claim surface forfederated-injected-column-readers.test.ts): closed by the seat's claim amendment, as the landing post records. N6: closed by the ruling; no update changes a calendar's organization any more.5e806492ca, the landing seat's pull-back for this ruling, and the dequeue relay. This head is the one commit the pull-back asks for.packages/qa/dogfood,approval-read-over-mcp.dogfood.test.ts: the MCPquery_recordsdescription did not namesys_approval_request. That text lives inpackages/mcp/src/mcp-http-tools.ts, which this pull request does not touch, and the same signature hit four pull requests in one speculative stack (summary issue Queue-flake anchor: test/approval-read-over-mcp.dogfood.test.ts #35756).Acceptance notes
requiredplusvalueDomain: 'iana_time_zone', with no new metadata key and no spec change. So it applies to any object's required zone field, as the currency seed applies to any record-currency field. Today the calendar is the only platform object with a required zone field; the business unit, organization and job zones are optional and not seeded./auth/me/localization, which reads the organization'slocalization.timezone. That is the setting the server-side fill reads, and its declared default isUTC, so both sides agree when it is unset.overlap-check); whichever lands second re-counts it.organizationId, a key the data doors do not read as the active organization (tenantIdis). The new file usestenantId, so its writes run in the organization the hooks read.ed906d567a.Verification
ui/packages/plugin-form/src/schemaDefaults.ts: the seed rule and its required-only guard.packages/rest/src/import-work-calendar-csv.test.ts: the update-hook pin's fixture, where org_b holds a default and org_a none.packages/platform-objects/src/system/sys-work-calendar-exception.object.ts: theperiodshelp built from the shared constant.pnpm --dir ui exec vitest run packages/plugin-form/src/__tests__/organizationZoneSeed-35355.test.tsx. Expect 6 passed, including the modal and inline forms opening withAsia/Shanghaiin Time Zone.Generated by Claude Code