Skip to content

Working calendars ①: ADR for the platform working calendar (objects, resolution, clock key, pushdown) #35354

Description

@os-bill

③ maintainer-directed task · Source: maintainer ruling on #35340 (Bill, 2026-11-19 05:47Z 「同意 p1」, ruling comment #35340 (comment); sub-cards approved 06:03Z 「同意」「都是 p1」).

维护者速读

Scope

Write the ADR recording the #35340 ruling, one decision per item:

  1. Calendars are org-editable runtime data: sys_work_calendar (weekly pattern, HH:mm periods, required timezone in the iana_time_zone domain, is_default) and sys_work_calendar_exception (dated off/on overrides covering holidays, 调休 make-up workdays, shutdowns). Packages reference by code and may seed rows. Precedent sys_exchange_rate (ADR-0144).
  2. Resolution: explicit code at the consumer → org default → refuse. No silent wall-clock fallback. Business-unit inheritance deferred (ADR-0049: sys_business_unit.timezone has no reader).
  3. Holiday data: org-entered + import first; a calendar records a "maintained through" date, and computing past it warns or refuses. CN holiday/调休 data as a marketplace package later, never in core.
  4. Consumers: formula functions (addWorkingDays, workingDaysBetween, addWorkingHours) and approval escalation.clock, shipping in the same release as the objects (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 constraint: no calendar without its formula surface).
  5. Clock key: escalation.clock: 'wall_clock' | 'working_time' + optional calendar code, default wall_clock; only timeoutHours gets it.
  6. Pushdown: working-day functions evaluate in memory only; pushdown refuses them; filter on due time via a write-time datetime column compared with {now}.
  7. Periods crossing midnight are refused in the first cut.

Also record the second source of truth found in ui/packages/types/src/zod/objectql.zod.ts:2956-2957 (gantt skipWeekends / holidays) as a follow-up.

Done when

ADR merged; it names the three implementation cards (②③④ under #35340) as its enforcement.

Non-goals

Shift rostering, finite-capacity scheduling, payroll calendars, fiscal periods.

Analysis: /mnt/project-files/card-35340/design-analysis.md (project files).

Activity

  1. added theissue type on Nov 19, 2026
  2. added
    priority:p1
    pm:queue
    area:workflow
    on Nov 19, 2026
  3. objectstack-fleet commented on Nov 19, 2026

    @objectstack-fleet
    Contributor

    repo:objectstack#5 · os-bill · session_01Utp6Ca1jJvsA1dHsPwMiQb

    Claim: PM loop round 3 · area data-1, p1 family #35340 handed to data-1 by seat 5 (2026-11-19T06:04Z) · the maintainer, verbatim, 2026-11-19T05:47Z on #35340: 「同意 p1」 (ruling comment 7000950747); sub-cards 2026-11-19T06:03Z: 「同意」「都是 p1」 · 2026-11-19T06:06Z
    Area: data-1
    Session: session_01Utp6Ca1jJvsA1dHsPwMiQb
    Account: os-bill
    Branch: claude/issue-35354-work-calendar-adr
    Worktree: objectstack-issue-35354 (os-dev worktree in the data-1 container)
    Domain: domain:server
    Seat: repo:objectstack#5
    File surface: one new ADR docs/adr/0157-*.md (next free number on origin/main at claim time; the dev re-checks open PRs for a 0157 before the first push) and the ADR index row in docs/adr/README.md; nothing else. ⛔ No code, spec, skills or ui path. Stop on breach and report.
    Container & model: M, mode:subagent, model: default — no path-derived mandate, effort: xhigh (ADR / contract text, seat-practice §4)
    Clause-②: no (an ADR records a ruling; the enforcing changes are the three implementation cards)
    Metadata-protocol: none
    Responsibility: platform contract — the ruled seven decisions of #35340 (calendar objects, resolution order, holiday data, consumers, escalation.clock key, pushdown refusal, no midnight-crossing periods) recorded as one ADR that names #35355, #35356 and #35357 as its enforcement.
    Thread-read: none
    Epic-read: #35340 ruling comment 7000950747 (the card itself has no comments)
    Premise: holds — no ADR on origin/main 3819afec covers a working calendar (docs/adr/ ends at 0156); packages/spec/src/automation/approval.zod.ts still says the platform ships no business-hours calendar; no open PR names ADR-0157 or ADR-0158 (search at claim time).
    Serial constraints cleared: none — a new file plus one index row; the dev runs overlap-check.mjs before each push.
    Pre-claim lane: docs/adr/** (governed: Tier H; L1-a, then seat 5 contract-tier L2 and the handoff — the area does not land it)
    Pre-claim deps: none; the ruling on #35340 is recorded.
    Prior rulings read: #35340 ruling 7000950747 (the seven items); #13655 B-half freeze (ruling record 5478756633, cited from #13801) — the maintainer's own order lifts it; #13801 in-seat ruling 5506987580 (clock annotation inert with one clock — reverses with two); ADR-0144 (sys_exchange_rate precedent); ADR-0049 (enforce-or-remove); check-prior-rulings 113 hits — ADR-0029 D8, ADR-0045 §3, ADR-0062 D6/D7, ADR-0086 D5, ADR-0002 §6, ADR-0005 §3/§8/§11, ADR-0027 §13 (dev reads any that rules on time zones, formula pushdown or approval escalation); thread: none

  4. added
    pm:dispatched
    and removed
    pm:queue
    on Nov 19, 2026
  5. objectstack-fleet commented on Nov 19, 2026

    @objectstack-fleet
    Contributor

    repo:objectstack#5 · os-bill · session_01Utp6Ca1jJvsA1dHsPwMiQb
    os-dev-report

    {
      "issue": 35354,
      "status": "done",
      "branch": "claude/issue-35354-work-calendar-adr",
      "pr": "https://github.com/objectstack-ai/objectstack/pull/35364",
      "head": "ba0ab5fd4328a0aa0afaeef0cd9b0b475177fc23",
      "session": "session_01Utp6Ca1jJvsA1dHsPwMiQb",
      "premise_still_valid": true,
      "summary": "Wrote ADR-0157 (Status Proposed, declares and implements nothing): D1-D7 record the seven Scope items of #35354 (ruling 7000950747 on #35340) one each, in the ruling's terms. Enforcement names #35355 (objects, service, Setup), #35356 (three formula functions, pushdown refusal and lint), #35357 (escalation.clock / calendar); the gantt skipWeekends/holidays second source of truth is recorded as a follow-up. Six choices the ruling does not make are listed as open questions Q1-Q6 with options and a recommendation each, none picked by the record. ADR index regenerated by pnpm adr:index. PR opened draft through the relay with assignee os-bill and label skip-changeset.",
      "files_changed": ["docs/adr/0157-working-calendars-are-org-editable-runtime-data-resolved-by-code-or-refused.md (+208)", "docs/adr/README.md (+5/-4, generated)"],
      "line_budget": "no ratchet or budget applies to docs/adr; ADR 208 lines, total diff +213/-4 over 2 files, under the 3000-line human-merge threshold (dispatch-gates reading)",
      "tests": "No code, no tests. Gates only (see gates). Head ba0ab5fd4.",
      "gates": "Derived by node scripts/pm/dispatch-gates.mjs --commands --repo objectstack-ai/objectstack at 3819afeca (21 commands). All 21 run on the tree committed as ba0ab5fd4, exit codes captured before any pipe: 21/21 exit 0. check:doc-formula-expressions first exit 3 (PREREQUISITE: @objectstack/formula and @objectstack/lint dist missing, nothing measured), rerun exit 0 after os-verify-lock build (VERDICT command-exit 0, 5/5 turbo tasks). Verdict lines: check-adr-links 1157 relative link destinations resolve; check:adr-symbol-anchors 3787 anchors across 159 records resolve, 0 line anchors; adr-index --report OK, README current. --ran reconciliation: 21 derived, 21 run, 0 NOT-MEASURED (derived zero, every line carries its exit code). overlap-check --branch=HEAD: VERDICT clean exit 0. CI at report time: Check Changeset success; Governed Surface Queue Guard, Lint *, Type Check *, Check Documentation Links, PR-body guards in_progress (not waited on). NOT MEASURED locally: governed-merges audit argv (workflow-only env), Plan Test Core shards CI step, type-check lanes (no TypeScript touched).",
      "dogfood_battery": "n/a — no ! in the PR title and no (narrowing) arm",
      "A1": "holds: docs/adr ends at 0156 on origin/main 3819afeca; REST list of 46 open PRs, files of each read, none touches docs/adr; 0157 used",
      "A2": "holds: packages/spec/src/automation/approval.zod.ts ApprovalEscalationSchema, JSDoc lines 862-871 and timeoutHours describe line 872 say wall-clock and 'The platform ships no business-hours calendar'; D5 names timeoutHours; cited by symbol (line anchors are refused by check:adr-symbol-anchors)",
      "A3": "holds: ui/packages/types/src/zod/objectql.zod.ts ObjectGanttSchema declares skipWeekends (2956) and holidays (2957); recorded under Follow-ups, unchanged",
      "A4": "partly holds: ADR-0144 / SysExchangeRate is the precedent for org-scoped, admin-written, audited runtime data, but ADR-0144 does not say packages seed rows (grep 'seed' in 0144: 0 hits) — the seed contract is packages/spec/src/data/seed.zod.ts, read in Q6. ADR-0049 carries 'inert' but never mentions #13655; the same-release constraint is the #13655 ruling record 5478756633 (#13655 and that comment answer 404 here), cited as such in the ADR",
      "mcp_calls": "0",
      "api_writes": "2 — relay pr_create (POST /repos/objectstack-ai/objectstack/dispatches, run 44471694628: POST pulls + POST issues/35364/assignees + POST issues/35364/labels), and this os-dev-report comment via post-stamped.mjs on issues/35354/comments; plus git push x2 (empty branch, ba0ab5fd4)",
      "deviations": [
        "PR body 维护者速读 uses the four-line form of the dispatch / seat-practice §1 (#35298, open) rather than os-dev.md's six fixed lines; the two other lines' content (files to read, two-minute check) sits under the English 席位核对 section. Conflict noted, not silently resolved.",
        "Commit trailer is the model-free pair AGENTS.md requires (Co-authored-by: Claude), not the harness reminder's model-named Co-Authored-By; PR footer is the AGENTS.md session-URL form, not the harness emoji form.",
        "README regeneration also refreshes the ADR-0137 row (its status line on main had moved without an index regen); generator-owned, byte-exact output of pnpm adr:index, inside the declared file surface.",
        "Ruling text cites gantt and approval lines as path:line; the ADR cites them by symbol because check:adr-symbol-anchors refuses line anchors."
      ],
      "open_questions": [
        {"question": "Q1 Past a calendar's maintained-through date: warn or refuse, and per consumer?", "options": ["A refuse everywhere with a stable code (a forgotten year-end import stops deadlines)", "B warn everywhere and compute with the weekly pattern alone (wrong deadlines look right)", "C refuse in the service as A, and Setup flags a calendar nearing its date before refusals start"], "recommendation": "C, because it keeps D2's no-silent-wrong-clock rule and gives the administrator notice first"},
        {"question": "Q2 What does a refusal (no resolvable calendar, or Q1 refusal) do in the approval escalation sweep, which has no caller?", "options": ["A skip the request, log at error level with the code, retry next sweep", "B as A, plus refuse at publish a working_time escalation whose calendar code does not resolve in the publishing organization"], "recommendation": "B; wall-clock fallback is excluded by D2, and publish-time refusal catches the misspelled code early while A still covers a calendar deleted later"},
        {"question": "Q3 Exception and period shape: on-without-periods, periods on off, two exceptions on one date, 24:00 as an end?", "options": ["A an exception's periods are the date's complete working periods: off has none (whole day), on must carry periods, half-day holiday = on with shortened periods, one exception per calendar+date, 24:00 legal as an end; the import asks which weekday's hours to copy", "B as A but an on row may name a weekday to copy its periods (shorter rows, extra column, edits to that weekday move past make-up days)"], "recommendation": "A, one rule checkable against the row alone"},
        {"question": "Q4 Daylight-saving transition days in addWorkingHours?", "options": ["A count elapsed time by mapping local periods to instants with the ADR-0053 DST-safe primitive", "B count clock-face length of local periods"], "recommendation": "A with pinned spring-forward and fall-back tests; matches wall_clock counting elapsed ms"},
        {"question": "Q5 Is a working_time escalation deadline fixed when the request opens or recomputed each sweep (#35357 Scope says recompute; the ruling is silent)?", "options": ["A recompute every sweep; a holiday entered later moves open deadlines; the escalation audit row records the value it fired on", "B store at creation; later holidays never move it"], "recommendation": "A as #35357 states; D6 write-time datetime columns carry the same staleness and #35356 should teach it"},
        {"question": "Q6 May a package's calendar seed overwrite an organization's edits on replay?", "options": ["A calendar seeds are mode ignore only (insert if absent; the org owns rows after first load)", "B package's choice; upsert undoes org edits on every replay"], "recommendation": "A, because org-editable means an install never takes an edit back"}
      ],
      "security_findings": "none",
      "out_of_scope_findings": ["class: none filed · noted, not filed: docs/adr/README.md on origin/main 3819afeca was stale for the ADR-0137 row (status line amended without pnpm adr:index); check:adr-index is report-only by design, so this is drift, not a defect; regenerated here · carrier: none"]
    }
  6. objectstack-fleet commented on Nov 19, 2026

    @objectstack-fleet
    Contributor

    repo:objectstack#5 · os-bill · session_01Utp6Ca1jJvsA1dHsPwMiQb

    Maintainer ruling record · ADR-0157 Q1 + Q2 (2026-11-19T08:12Z)

    维护者速读

    • 用户能看到什么变化:日历只维护到某天时,超过这天的到期日不再算,公式里的到期日留空,设置页会提前提醒管理员补日历;审批算不出到期时间时不升级,并在到期时间处写明「日历算不出」。
    • 为什么做:平台工作日历设计里留下的两个开放问题,由维护者裁定。
    • 出错会怎样:只影响按工作时间计时的到期日和审批,撤回改动即可。
    • 要你做什么:无。

    席位核对

    • Card question (seat 5 decision card, 2026-11-19, Q1 + Q2 combined): "When the calendar can't answer, what does the platform do?" covering Q1 (computing past the calendar's maintained-through date: warn or refuse) and Q2 (what the approval escalation sweep does when the due time can't be computed).
    • Pick (Bill, 2026-11-19 08:11Z): 「不算,并提前提醒」, which is the seat's recommendation (Q1 C + Q2 C).
    • Q1 = C. Refuse, with an early notice. A computation whose result or span crosses maintained_through is refused. A formula due date is blank, never a fixed-weekly-pattern guess, and there is no wall-clock fallback (ruling 7000950747 item 2). Setup marks calendars that are nearing maintained_through as needing maintenance, ahead of time. Precedent: ADR-0144 D5 (a missing rate refuses and stores no fallback value).
    • Q2 = C. Skip, retry, and make it visible. When the approval escalation sweep can't compute a working_time due time (calendar missing, or not maintained that far), it does not escalate. It retries on the next sweep and, where the due time is displayed, shows 「日历算不出」 with the reason (calendar not found / not maintained to that date). Once the admin fixes the calendar, the next sweep recovers automatically. The publish-time check covers static authoring errors only (e.g. a calendar code without clock: 'working_time'). It does not check whether a calendar exists, because that is per-org runtime data (the lint is a pure (stack) => Finding[]).
    • Not chosen: Q1 A (refuse, no notice), Q1 B (warn and compute on the weekly pattern), Q2 A (skip plus log only), Q2 B (A plus a publish-time existence check). Refusing at submit time was not offered, because it would block every cross-year approval until next year's holidays are entered.
    • Enforcement: Working calendars ②: sys_work_calendar objects, calendar service and Setup page #35355 (maintained-through refusal + Setup notice), Working calendars ③: formula functions addWorkingDays / workingDaysBetween / addWorkingHours #35356 (formula refusal → blank), Working calendars ④: approval escalation clock key (wall_clock | working_time) #35357 (sweep skip/retry + displayed reason; static lint only). The ADR-0157 draft (PR docs(adr): ADR-0157 working calendars are organization-editable runtime data, resolved by code or refused #35364) is revised to record both picks.
    • Still open, owed to the ADR round: whether a write-time computed due-date column that hits a Q1 refusal fails the write or stores blank. Per the analysis, Working calendars ③: formula functions addWorkingDays / workingDaysBetween / addWorkingHours #35356's contract review settles it. It is not a maintainer question.
    • Q3 and Q4–Q6 are still on their cards. Each gets its own record when ruled.
    • Analysis: /mnt/project-files/objectstack-seat5/area-ux/data-1/decision-adr0157-q1-q6.md (project files).
  7. objectstack-fleet commented on Nov 19, 2026

    @objectstack-fleet
    Contributor

    repo:objectstack#5 · os-bill · session_01Utp6Ca1jJvsA1dHsPwMiQb

    Maintainer ruling record · ADR-0157 Q3, Q4, Q5, Q6 (2026-11-19T08:13Z)

    维护者速读

    • 用户能看到什么变化:管理员录节假日或补班日时,每一条都写清当天的上班时段;夏令时切换那天按实际经过的时间算;补录节假日后,未决审批的到期时间会自动顺延;套件升级默认不会改回管理员改过的日历。
    • 为什么做:平台工作日历设计里剩下的四个开放问题,由维护者裁定。
    • 出错会怎样:只影响按工作时间计时的到期日,撤回改动即可。
    • 要你做什么:无。

    席位核对

  8. objectstack-fleet commented on Nov 19, 2026

    @objectstack-fleet
    Contributor

    repo:objectstack#5 · os-bill · session_01Utp6Ca1jJvsA1dHsPwMiQb
    os-dev-report

    Addendum: ADR-0157 revision round, six open questions ruled.

    {
      "issue": 35354,
      "status": "done",
      "round": "revision 1: the six open questions ruled (records 7003541720, 7003566086)",
      "branch": "claude/issue-35354-work-calendar-adr",
      "pr": "https://github.com/objectstack-ai/objectstack/pull/35364",
      "head": "4479ee7086",
      "previous_head": "ba0ab5fd4",
      "session": "session_01Utp6Ca1jJvsA1dHsPwMiQb",
      "summary": "The draft's Open questions section is replaced. Each question is now a decided D-entry, D8 to D13, each citing its ruling record. D1-D7 keep their numbers and text; each former 'Not ruled, and listed' line now names the D-entry that completes it. The three text points are fixed: (a) D11 says a skipped or repeated local time resolves as the shared primitive already does, to the earlier candidate instant (anchored to the zonedWallClockToUtcMs symbol in packages/core/src/utils/datetime.ts); 'moves forward' is gone. (b) D12 cites the approved #35357 Scope, and 'the ruling does not say' is gone. (c) D8 says a formula read shows blank plus one log line, not an error; whether a write-time computed column fails the write or is stored blank is listed as open implementation point 1, which #35356's contract review settles. Status line, Provenance, Enforcement table, Consequences and References are updated to match. The ADR index was regenerated.",
      "d_entry_map": {
        "D1-D7": "unchanged numbering; the seven items of ruling 7000950747",
        "D8": "Q1 = C, record 7003541720: refuse past maintained_through, a formula due date reads blank, Setup gives notice ahead of time",
        "D9": "Q2 = C, record 7003541720: the sweep skips and retries, the displayed due time shows 「日历算不出」 with the reason, the publish-time lint checks static authoring errors only (no existence check)",
        "D10": "Q3 = A, record 7003566086: off has no periods; on carries full periods; one row per calendar and date; 24:00 legal as an end, validated by the calendar itself",
        "D11": "Q4 = A, record 7003566086: elapsed time; skipped or repeated local times resolve through the shared DST-safe primitive to the earlier candidate instant",
        "D12": "Q5 = A, record 7003566086: recomputed on every sweep, never stored; cites the approved #35357 Scope",
        "D13": "Q6, record 7003566086: no calendar-specific rule; the seed contract of ruling 6631016988 stands"
      },
      "files_changed": ["docs/adr/0157-working-calendars-are-org-editable-runtime-data-resolved-by-code-or-refused.md (204 lines; this round +60/-64)", "docs/adr/README.md (ADR-0157 row regenerated, +1/-1)"],
      "line_budget": "no ratchet applies to docs/adr; branch total vs base 3819afeca: +209/-4 over 2 files, under the 3000-line threshold",
      "gates": "21 commands derived by dispatch-gates --commands at the same base; the list is identical to round 0. All 21 ran at head 4479ee7086, each exit 0, with exit codes captured before any pipe. --ran reconciliation: 21 derived, 21 run, 0 NOT-MEASURED (a derived zero). Verdict lines: check-adr-links 1157 relative link destinations resolve; check:adr-symbol-anchors 3793 anchors across 159 records resolve, 0 line anchors, and the new zonedWallClockToUtcMs anchor resolves; adr-index --report OK, README current. check:doc-formula-expressions ran after the formula+lint build under os-verify-lock (VERDICT command-exit 0). CI on the new head was not waited on.",
      "overlap": "overlap-check --branch=HEAD: VERDICT overlap exit 1. origin/main 0967cbe6a2 merges cleanly. Draft PR #35370 (ADR-0158 units of measure) conflicts with this branch only in the generated docs/adr/README.md. There is no number collision (0157 vs 0158). Whichever PR lands second reruns pnpm adr:index. This branch did not merge main: there is no GitHub conflict and no main-caused red.",
      "mcp_calls": "0",
      "api_writes": "2 this round: git push (ba0ab5fd4..4479ee7086), and this addendum comment via post-stamped.mjs (relay)",
      "deviations": [
        "Added open implementation point 2 (whether a blank maintained-through date is allowed and what it means, owner #35355). Neither the ruling records nor the coordinator's list name it. The decision analysis flags it as an execution detail (Q1 fact 5), and D8's refusal makes a blank ambiguous. It is listed, not decided.",
        "I did not edit the PR body. Its 'What changes' bullet still says six open questions, and it is now stale. os-dev.md reserves PR body edits after pr_create for the seat, so the seat should rewrite that bullet and the 维护者速读 line 4."
      ],
      "open_questions": [],
      "security_findings": "none",
      "out_of_scope_findings": []
    }
  9. objectstack-fleet commented on Nov 19, 2026

    @objectstack-fleet
    Contributor

    repo:objectstack#5 · os-bill · session_01Utp6Ca1jJvsA1dHsPwMiQb
    os-dev-report

    Addendum: ADR-0157 final pre-L2 round.

    {
      "issue": 35354,
      "status": "done",
      "round": "final pre-L2: merge origin/main, D12 single-shot marked as current behaviour, Status Accepted",
      "branch": "claude/issue-35354-work-calendar-adr",
      "pr": "https://github.com/objectstack-ai/objectstack/pull/35364",
      "head": "80b83422b6dcf9f9954721191ed4faaccd4105da",
      "previous_head": "4479ee7086",
      "merge": "f7f997b9d8 merges origin/main adcb9f8e2a into 4479ee7086 with no conflicts; the merge base was 3819afeca and is now adcb9f8e2a. The merge commit carries the model-free trailer pair. #35370 (ADR-0158) has not landed on main, so 0157 is unchanged. pnpm adr:index after the merge left README unchanged; after the Status edit it rewrote the ADR-0157 row and the counts (Accepted 137, Proposed 7).",
      "commits": ["f7f997b9d8 merge origin/main", "d49d37da8e D12 single-shot bullet marked as current behaviour, as today, with an anchor to the sweep", "80b83422b6 Status Accepted (2026-11-19) with citations of ruling 7000950747 on #35340 and records 7003541720 and 7003566086 on #35354; ADR index regenerated"],
      "text_changes": [
        "D12: 'Current behaviour, not a ruling: escalation stays single-shot, as today', anchored to packages/plugins/plugin-approvals/src/approval-service.ts#ApprovalService.runEscalations. That method holds the inline guard (comment 'Single-shot: a prior escalate action means this request is done'); it has no named symbol of its own.",
        "Status line: 'Accepted (2026-11-19) — maintainer ruling on #35340, comment 7000950747, verbatim 「同意 p1」 (D1–D7)', then records 7003541720 and 7003566086 on #35354 (D8–D13), then the Tier H sentence, the 'declares; implements nothing' sentence and the three implementing cards. The shape follows ADR-0156; the Tier H sentence is worded as in ADR-0158 on #35370's branch. The superseded 'until then every decision below is a proposal' is removed."
      ],
      "anchor_proof": "check:adr-symbol-anchors at head: 3794 anchors resolve, up 1 from 3793; symbol anchors 1179, up from 1178. Negative control: misspelling the member as runEscalationsZZ made the gate exit 1 with [unresolved-symbol] at line 153 of the ADR, so the gate does judge this dotted member. The file was restored from a saved copy, the sha256 matched, and 0 occurrences of the misspelling remained; the control was never committed.",
      "gates": "dispatch-gates --commands at merge base adcb9f8e2 derives 21 commands, the same list as earlier rounds. At head 80b83422b6 all 21 exit 0, with exit codes captured before any pipe. --ran reconciliation: 21 derived, 21 run, 0 NOT-MEASURED, a derived zero. check:doc-formula-expressions first exited 3 because the formula and lint dist were not built after the merge (the first lock attempt timed out with VERDICT exit 99). After the second attempt (VERDICT command-exit 0, waited 258s, held 75s) it exited 0. Verdict lines: check-adr-links 1157 destinations resolve; check-adr-anchors OK; adr-index --report OK, README current; check:adr-symbol-anchors 3794 anchors resolve, 0 line anchors. CI on the new head was not waited on.",
      "overlap": "overlap-check --branch=HEAD gives VERDICT overlap exit 1: origin/main merges cleanly, and draft #35370 still conflicts only in the generated docs/adr/README.md. Whichever PR lands second reruns pnpm adr:index.",
      "files_changed": ["docs/adr/0157-working-calendars-are-org-editable-runtime-data-resolved-by-code-or-refused.md (+204 vs merge base)", "docs/adr/README.md (+5/-4 vs merge base, generated)"],
      "mcp_calls": "0",
      "api_writes": "this addendum comment (relay); git push x2 (4479ee7086..d49d37da8e, d49d37da8e..80b83422b6)",
      "deviations": ["Two pushes went out, not one: d49d37da8e was pushed as a WIP before the Status instruction arrived, and 80b83422b6 followed. Both are on the same branch, and the final head carries every change of this round."],
      "security_findings": "none"
    }
  10. objectstack-fleet commented on Nov 19, 2026

    @objectstack-fleet
    Contributor

    repo:objectstack#5 · os-bill · session_01Utp6Ca1jJvsA1dHsPwMiQb
    os-dev-report

    Addendum: ADR-0157 delta round on contract review 7005187995.

    {
     "issue": 35354,
     "status": "done",
     "round": "delta round on the contract review 7005187995 (PASS, S1 and S2 open)",
     "branch": "claude/issue-35354-work-calendar-adr",
     "pr": "https://github.com/objectstack-ai/objectstack/pull/35364",
     "head": "aeac9a1280e28eead8cc1ccbd523d8fd78c8376f",
     "previous_head": "80b83422b6",
     "merge": "none this round: GitHub reported mergeable=true, state clean; overlap-check says origin/main b3247ddbdc merges cleanly. Merge base stays adcb9f8e2a.",
     "S1": "ADR-0042 is cited in Builds on (with §1 and §3) and in References. The Amends line now says ADR-0042 §3 stands as written under wall_clock; under working_time its start at created_at and its no-pause rule stand, and only how the hours are counted gains a second clock (D5, D12). D12's single-shot bullet now reads 'Single-shot escalation is ADR-0042 §1 and is unchanged', with the anchor ApprovalService.runEscalations. ADR-0042 gains a one-line dated pointer note at the end of its §3.",
     "adr0042_line_added": "> **Note (2026-11-19) — a second clock.** [ADR-0157](./0157-working-calendars-are-org-editable-runtime-data-resolved-by-code-or-refused.md) D5 adds `escalation.clock: 'working_time'` beside the default `wall_clock`: the deadline still runs from `created_at` and does not pause, and only how the hours are counted changes; its D9 says what the sweep does when a working-time deadline cannot be computed, and its D12 recomputes that deadline on every sweep while §1's single-shot rule stands.",
     "S2": "Added open implementation point 3, owned by #35355 and #35356: where the working-time arithmetic and the wall-clock conversion live, so there is exactly one DST rule. It names the constraint (formula depends only on spec and the CEL library, cannot depend on core, and already keeps a private calendar-day copy) and two routes that keep D11: move the primitive below formula, as nextUtcCalendarDay moved to @objectstack/spec/data, or have the calendar service hand formula periods already converted to instants. It says a private copy in formula is not a route. The ADR does not decide it. D11 now points to point 3, and the Enforcement row for #35356 names points 1 and 3.",
     "nits_fixed": {
      "N1": "D12: 'the displayed due time and the sweep use one function' is now its own bullet, marked 'Follows from D9, not a ruling of its own'",
      "N2": "D12: 'never stored' now means a stored value is never the source of the deadline; whether the escalate audit row records the fired due time is #35357's to settle",
      "N3": "D13: overwritten only under a mode that writes onto a matched row (upsert, or update)",
      "N4": "D10: anchor added for packages/spec/src/data/field-value.zod.ts#ClockTimeValueSchema beside import-coerce.ts",
      "N5": "added as open implementation point 4 (#35355, carried into #35357's review): in which organization, and under whose authority, the calendar service reads",
      "N6": "two Consequences bullets added (a stored D6 column does not follow calendar edits; a D8 refusal in a field-rule predicate refuses the submit under ADR-0137 D2); ADR-0137 and ADR-0058 added to Builds on and References",
      "N7": "Consequences bullet added: the Console form evaluator (ui/packages/core/src/evaluator/formulaRecord.ts) holds no calendar, so #35356 puts the three functions on its unservable list",
      "N8": "time window corrected to 08:11–08:12Z; the Status line now reads 'by the maintainer's merge or enqueue, or by an authorised approval'; 'answers 404 to this session' is now 'was not readable, HTTP 404, when this record was written'; D9 notes that 「日历算不出」 is the maintainer's wording and the displayed string is localized"
     },
     "not_fixed": "none of N1-N8. Escalated items 1-3 in the review (#35357 Scope wording, the ADR-0042 pointer as a seat decision, past-side calendar bound) are for the seat. The ADR-0042 pointer was added here because the coordinator ordered it.",
     "gates": "dispatch-gates --commands at merge base adcb9f8e2 derives the same 21 commands over 3 paths (ADR-0042 now in the diff). At head aeac9a1280 all 21 exit 0, with exit codes captured before any pipe. --ran reconciliation: 21 derived, 21 run, 0 NOT-MEASURED (a derived zero). Verdict lines: check-adr-links reports 1162 destinations resolve; check-adr-anchors OK; adr-index --report OK, README current; check:adr-symbol-anchors reports 3798 anchors across 159 records resolve and 0 line anchors, with the new ClockTimeValueSchema and nextUtcCalendarDay anchors resolved. check:doc-formula-expressions ran after the build under os-verify-lock: the first attempt timed out (VERDICT 99), the retry reached VERDICT command-exit 0, and the gate then exited 0. The README was unchanged by pnpm adr:index this round. CI on the new head was not waited on.",
     "overlap": "VERDICT overlap exit 1: draft #35370 still conflicts only in the generated docs/adr/README.md",
     "files_changed": [
      "docs/adr/0157-working-calendars-are-org-editable-runtime-data-resolved-by-code-or-refused.md",
      "docs/adr/0042-approval-sla-escalation.md (+2: one note line and a blank line)",
      "docs/adr/README.md (unchanged this round)"
     ],
     "mcp_calls": "0",
     "api_writes": "git push 80b83422b6..aeac9a1280; this addendum comment (relay)",
     "deviations": [
      "The file surface now includes docs/adr/0042-approval-sla-escalation.md, as ordered by the coordinator for S1. It is a second governed path in the same Tier H PR."
     ],
     "security_findings": "none"
    }
  11. objectstack-fleet commented on Nov 19, 2026

    @objectstack-fleet
    Contributor

    repo:objectstack#5 · os-bill · session_01Utp6CbUb7TcZK1XUAddUmQ

    ACCEPT → PR #35364 (ADR-0157) · head aeac9a12 · 2026-11-19T10:10Z. Contract review PASS 7005187995, delta PASS 7005941284 (S1, S2 closed). Seat record on the PR. Tier H (docs/adr/**): awaiting a maintainer merge (reviewers os-zhuang, hotlong; security label); close-out here on MERGED.

  12. objectstack-fleet commented on Nov 19, 2026

    @objectstack-fleet
    Contributor

    repo:objectstack#5 · os-bill · session_01Utp6Ca1jJvsA1dHsPwMiQb

    Close-out 2026-11-19T13:51Z: PR #35364 (ADR-0157, working calendars) merged at f727061b88 by the maintainer (Tier H), and Fixes closed this card.

    The ADR records the #35340 ruling as D1–D7 and the maintainer's Q1–Q6 answers as D8–D13 (records 7003541720, 7003566086).

    #35355, #35356 and #35357 are unblocked now. They are p1, so data-1 dispatches them next on sibling branches and lands them together, as D4 requires (same release). pm:dispatched off.

  13. removed
    pm:dispatched
    on Nov 19, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

area:workflowpriority:p1

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions