Repository navigation
docs(adr): ADR-0157 working calendars are organization-editable runtime data, resolved by code or refused - #35364
Conversation
…e data Records the seven ruled design points for platform working calendars: two sys_* objects, resolution by code then org default then refuse, organization-entered holidays with a maintained-through date, formula functions and the approval clock in one release, escalation.clock with a wall_clock default, in-memory-only evaluation, and no midnight-crossing periods. Lists the six choices the ruling does not make as open questions. Regenerates the ADR index. Claude-Session: https://claude.ai/code/session_01Utp6Ca1jJvsA1dHsPwMiQb Co-authored-by: Claude <noreply@anthropic.com>
The maintainer ruled the six questions the first draft left open (records 7003541720 and 7003566086 on #35354). They become D8-D13: refuse past maintained-through with a Setup notice, the approval sweep skips and retries and shows why with a static-only publish lint, an exception row carries its full periods, elapsed-time counting on DST days through the shared primitive, recompute on every sweep, and the existing seed contract for calendar seeds. Two implementation points are left to the implementing cards' contract reviews. Claude-Session: https://claude.ai/code/session_01Utp6Ca1jJvsA1dHsPwMiQb Co-authored-by: Claude <noreply@anthropic.com>
|
repo:objectstack#5 · os-bill · session_01Utp6CXsZsKmgG1EcKp5bY4 维护者速读
席位核对 — ACCEPT (L1-a) · repo:objectstack#5 · head
|
…rk-calendar-adr Claude-Session: https://claude.ai/code/session_01Utp6Ca1jJvsA1dHsPwMiQb Co-authored-by: Claude <noreply@anthropic.com>
…iour The single-shot bullet is today's behaviour, not a ruling; it now says so and anchors the sweep's guard by symbol. Claude-Session: https://claude.ai/code/session_01Utp6Ca1jJvsA1dHsPwMiQb Co-authored-by: Claude <noreply@anthropic.com>
The Status line now reads Accepted (2026-11-19), citing ruling 7000950747 on #35340 and ruling records 7003541720 and 7003566086 on #35354, in the shape of ADR-0156. The ADR index is regenerated. Claude-Session: https://claude.ai/code/session_01Utp6Ca1jJvsA1dHsPwMiQb Co-authored-by: Claude <noreply@anthropic.com>
|
repo:objectstack#5 · os-bill · session_01Utp6CbUb7TcZK1XUAddUmQ Contract reviewServed-tier: ① Derived judgments
② Semver levelNothing is published, so ③ Boundary flags
Beyond the listed inputs I read what the record cites: ruling 7000950747 on #35340, ruling records 6631016988 and 5506987580, the card bodies of #35355, #35356 and #35357, and the cited code at this head. Every cited code file is unchanged on the current tip of ④ Design judgment
The rulings are carried faithfully. D1 to D7 match the seven items of ruling 7000950747 item by item; rationale is added and no item is changed. Every sentence of ruling records 7003541720 and 7003566086 is carried in D8 to D13: Q1 = C, Q2 = C, Q3 = A, Q4 = A, Q5 = A, and Q6 no new rule. The one prescriptive sentence D8 to D13 add beyond the records is N1. What the rulings left open is listed as open, not decided. The Status line follows the repository's convention. It has the shape of ADR-0156 (Accepted, the date, the maintainer ruling with its issue, comment id and verbatim quote) and cites the two later records the way ADR-0155 cites its record. The four quotes are verbatim and untranslated. The cited code holds at this head. Read, each against the sentence that cites it:
D12's single-shot bullet is true against the tree. The guard sits inside Tried to break, and held.
No must-fix. S1 (should-fix) — The record never names ADR-0042, which decides the surface that D5, D9 and D12 change. Three statements in the record are therefore incomplete:
Fix: add ADR-0042 to Builds on and References. In D12, say single-shot is ADR-0042 §1 and is unchanged. In the header, say what happens to §3: the start at S2 (should-fix) — D11 points the formula functions at a primitive their package cannot import, and the open implementation points do not list it. The anchored file states the constraint itself. Formula "keeps its own private copy" of the calendar-day helper "to avoid a layering dependency on core", and further down formula "cannot depend on this package". Formula's manifest depends on So #35356 cannot obey D11 as the tree stands. The path of least resistance is the one the tree already took for "Two implementation points remain" is therefore short by one. Fix: add a third open implementation point, owned by #35355 and #35356: where the working-time arithmetic and the wall-clock conversion live so that formula can call them. Name the two routes that keep D11 and say a private copy is not one of them. The routes are to move the primitive below formula, as Nits. None changes the contract, and none needs a delta review.
Generator-owned and consistent with the tree at this head (see ①). No finding. Implemented-by: VERDICT: PASS |
…, prose nits S1: cite ADR-0042 in Builds on and References, say what stands of its section 3 under working_time, call D12's single-shot bullet ADR-0042 section 1, and add a dated pointer note on ADR-0042. S2: open implementation point 3, where the working-time arithmetic and zone conversion live so formula keeps one DST rule. Prose nits N1-N8 from the contract review. Claude-Session: https://claude.ai/code/session_01Utp6Ca1jJvsA1dHsPwMiQb Co-authored-by: Claude <noreply@anthropic.com>
|
repo:objectstack#5 · os-bill · session_01Utp6CbUb7TcZK1XUAddUmQ Contract reviewServed-tier: Delta review from ① Derived judgments
② Semver levelUnchanged. Nothing is published, ③ Boundary flags
Beyond the listed inputs I read the card body of #35357, comment 7005256800 on #35355, record 7005187995, ADR-0137 D2, the decision headings of ADR-0058, and the cited code at this head. No cited code file has moved on the current tip of ④ Design judgment
The nits of the first record, each read on this head:
No must-fix, no should-fix. New nits on this head. None changes the contract. N10 to N12 stay as they are, because a fix would move the head. N9 moves no head.
The note does not amend ADR-0042. It adds no rule and rewords no sentence. What it reports is ADR-0157's decision, which the maintainer ruled, and each clause matches ADR-0157: D5 adds the second clock beside the default, D9 covers a deadline that cannot be computed, D12 recomputes on every sweep, and §1 stands. "Does not pause" reads in §3's own sense, a
Unchanged and still current (see ①). No finding. Implemented-by: VERDICT: PASS |
|
repo:objectstack#5 · os-bill · session_01Utp6CbUb7TcZK1XUAddUmQ 维护者速读
席位核对 — ACCEPT · repo:objectstack#5 · head
|
…te ADR index Co-Authored-By: Claude <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01Utp6Ca1jJvsA1dHsPwMiQb
|
repo:objectstack#5 · os-bill · session_01Utp6CbUb7TcZK1XUAddUmQ Contract reviewServed-tier: Merge-only delta from ① Derived judgments
② Semver levelUnchanged from the reviewed head. Nothing is published. The merge adds no package file and no changeset to the PR's own diff. The ③ Boundary flags
④ Design judgment
No must-fix, no should-fix. Nits. None changes the contract, and none needs a new head.
Implemented-by: VERDICT: PASS |
|
repo:objectstack#5 · os-bill · session_01Utp6CbUb7TcZK1XUAddUmQ 席位核对 — ACCEPT · repo:objectstack#5 · head
|
repo:objectstack#5 · os-bill · session_01Utp6Ca1jJvsA1dHsPwMiQb
Fixes #35354
Clause-②: no
Clause-② reason: an ADR records a ruling; the enforcing changes are the three implementation cards.
Metadata-protocol: none
维护者速读
席位核对
What changes
docs/adr/0157-working-calendars-are-org-editable-runtime-data-resolved-by-code-or-refused.md, Status Accepted (2026-11-19), citing ruling 7000950747 and records 7003541720 / 7003566086. D1 to D7 record the seven items of ruling 7000950747 on Working calendars on the platform: working days, holidays and make-up workdays that deadlines, escalations and schedules count against #35340, one D-item per Scope item of Working calendars ①: ADR for the platform working calendar (objects, resolution, clock key, pushdown) #35354, in the ruling's own terms. Each item's former "Not ruled" line now names the D-entry that completes it.maintained_through; a formula due date reads blank (plus one log line, not an error); Setup gives notice ahead of time.24:00is legal as an end, validated by the calendar itself.zonedWallClockToUtcMs) to the earlier candidate instant.maintained_throughmay be blank and what blank means, owned by Working calendars ②: sys_work_calendar objects, calendar service and Setup page #35355.escalation.clock/escalation.calendar).skipWeekends/holidays(ObjectGanttSchemainui/packages/types/src/zod/objectql.zod.ts) as a second source of truth.docs/adr/0042-approval-sla-escalation.md: one dated pointer note at the end of §3 (2026-11-19). It names ADR-0157's second clock (D5) and points to D9 and D12; §1 single-shot and §3 still stand. This was the seat's L2 call (7005187995), so the governed edit reaches the maintainer once.aeac9a1280): ADR-0042 is cited in Builds on and References, and D12's single-shot bullet is relabelled ADR-0042 §1. Open implementation point 3 (one DST rule: where the arithmetic and the zone conversion live) and point 4 (which organisation and authority the calendar service reads under) are added. Nits N1–N8 are fixed.docs/adr/README.mdregenerated bypnpm adr:index(generator-owned). Besides the new row and the counts, the regeneration also refreshes the ADR-0137 row, whose status line onmainhad moved without an index regeneration. Draft PR docs(adr): ADR-0158 units of measure records ruling U1–U8 and settles L1–L4 #35370 (ADR-0158) touches the same generated file. Whichever lands second re-runspnpm adr:index; the ADR numbers do not collide.Tests
No code. Gates derived by
node scripts/pm/dispatch-gates.mjs --commandsfor this diff (3 paths, ADR-0042 included), run at headaeac9a1280(merge baseadcb9f8e2): 21 of 21 exit 0, reconciled by--ran(21 derived, 21 run, 0 NOT MEASURED).Gate verdict lines
check-adr-links: 1162 relative link destination(s) under docs/adr/ resolvecheck:adr-symbol-anchors: 3798 anchors across 159 records resolve, 0 line anchors (the newzonedWallClockToUtcMs,ClockTimeValueSchemaandnextUtcCalendarDayanchors resolve)check:adr-index: docs/adr/README.md is currentcheck:doc-formula-expressions: exit 0 after building@objectstack/formulaand@objectstack/lintunder the verify lockAcceptance notes
docs/adr/ended at 0156 onorigin/main, so 0157 is free.timeoutHoursinApprovalEscalationSchemastill say the platform ships no business-hours calendar; D5 names that key.seed.zod.ts(D13). ADR-0049 carries "inert"; the same-release constraint comes from the No business-hours calendar: every authored deadline is CALENDAR hours, and an app can only warn about it in prose — a P1 raised 5pm Friday is due 9pm Friday #13655 ruling record 5478756633, not from ADR-0049.Verification
D12's single-shot bullet is ADR-0042 §1 and is unchanged (anchored at
ApprovalService.runEscalations); it is a ruling, cited, not a reading of code. The ADR-0042 note is add-only and amends nothing.Read the Decision section against ruling 7000950747 (D1–D7) and the two ruling records on #35354 (D8–D13). Each D-item should restate one item and add nothing the ruling did not say.
Governed (Tier H): stays draft; landing is the maintainer's.
Generated by Claude Code