Repository navigation
Closed
Feature
Copy link
Labels
area:workflowApprovals and automation — the work that runs without a person driving itpriority:p1High: required for production / M2
Description
③ 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」).
维护者速读
- 问题: 平台工作日历的设计已裁决,但还没写成 ADR,后面三张实现卡没有合同可依。
- 要做: 写一份 ADR,把 Working calendars on the platform: working days, holidays and make-up workdays that deadlines, escalations and schedules count against #35340 裁决的七条落成合同。
- 不做会怎样: 对象、公式函数、审批时钟三张卡各自理解,口径不一。
- 你要做的: 无(ADR 合入按 Tier 规则走)。
Scope
Write the ADR recording the #35340 ruling, one decision per item:
- Calendars are org-editable runtime data:
sys_work_calendar(weekly pattern,HH:mmperiods, requiredtimezonein theiana_time_zonedomain,is_default) andsys_work_calendar_exception(dated off/on overrides covering holidays, 调休 make-up workdays, shutdowns). Packages reference by code and may seed rows. Precedentsys_exchange_rate(ADR-0144). - Resolution: explicit code at the consumer → org default → refuse. No silent wall-clock fallback. Business-unit inheritance deferred (ADR-0049:
sys_business_unit.timezonehas no reader). - 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.
- Consumers: formula functions (
addWorkingDays,workingDaysBetween,addWorkingHours) and approvalescalation.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). - Clock key:
escalation.clock: 'wall_clock' | 'working_time'+ optionalcalendarcode, defaultwall_clock; onlytimeoutHoursgets it. - Pushdown: working-day functions evaluate in memory only; pushdown refuses them; filter on due time via a write-time datetime column compared with
{now}. - 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).
Metadata
Metadata
Assignees
Labels
area:workflowApprovals and automation — the work that runs without a person driving itpriority:p1High: required for production / M2
Activity
objectstack-fleet commentedon Nov 19, 2026
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_01Utp6Ca1jJvsA1dHsPwMiQbAccount:
os-billBranch:
claude/issue-35354-work-calendar-adrWorktree:
objectstack-issue-35354(os-dev worktree in the data-1 container)Domain:
domain:serverSeat:
repo:objectstack#5File surface: one new ADR
docs/adr/0157-*.md(next free number onorigin/mainat claim time; the dev re-checks open PRs for a 0157 before the first push) and the ADR index row indocs/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.clockkey, 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/main3819afeccovers a working calendar (docs/adr/ends at 0156);packages/spec/src/automation/approval.zod.tsstill 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.mjsbefore 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_rateprecedent); 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: noneobjectstack-fleet commentedon Nov 19, 2026
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"] }objectstack-fleet commentedon Nov 19, 2026
repo:objectstack#5 · os-bill · session_01Utp6Ca1jJvsA1dHsPwMiQb
Maintainer ruling record · ADR-0157 Q1 + Q2 (2026-11-19T08:12Z)
维护者速读
席位核对
maintained_throughis 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 nearingmaintained_throughas needing maintenance, ahead of time. Precedent: ADR-0144 D5 (a missing rate refuses and stores no fallback value).working_timedue 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. acalendarcode withoutclock: 'working_time'). It does not check whether a calendar exists, because that is per-org runtime data (the lint is a pure(stack) => Finding[])./mnt/project-files/objectstack-seat5/area-ux/data-1/decision-adr0157-q1-q6.md(project files).objectstack-fleet commentedon Nov 19, 2026
repo:objectstack#5 · os-bill · session_01Utp6Ca1jJvsA1dHsPwMiQb
Maintainer ruling record · ADR-0157 Q3, Q4, Q5, Q6 (2026-11-19T08:13Z)
维护者速读
席位核对
offrow has no periods and means the whole day is off. Anonrow must carry that date's full working periods, and a half day is anonrow with shortened periods. One row per (calendar, date).24:00is a legal period end; it is validated by the calendar itself, because the platform time parser refuses a bare24:00. Not chosen: B (anonrow borrows a weekday's periods). With B, editing a weekday later would silently rewrite past make-up days.working_timedue time is recomputed on each sweep and never stored. This is already the approved Working calendars ④: approval escalation clock key (wall_clock | working_time) #35357 scope, so it is not "unruled".mode: 'upsert'. No calendar-specific ban. The later CN holiday data package keeps the ability to correct rows it has already landed./mnt/project-files/objectstack-seat5/area-ux/data-1/decision-adr0157-q1-q6.md(project files).docs(adr): ADR-0157 records the rulings on its six open questions
objectstack-fleet commentedon Nov 19, 2026
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": [] }docs(adr): ADR-0157 status Accepted on the maintainer's rulings
objectstack-fleet commentedon Nov 19, 2026
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" }objectstack-fleet commentedon Nov 19, 2026
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" }objectstack-fleet commentedon Nov 19, 2026
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;securitylabel); close-out here on MERGED.objectstack-fleet commentedon Nov 19, 2026
repo:objectstack#5 · os-bill · session_01Utp6Ca1jJvsA1dHsPwMiQb
Close-out 2026-11-19T13:51Z: PR #35364 (ADR-0157, working calendars) merged at
f727061b88by the maintainer (Tier H), andFixesclosed this card.The ADR records the #35340 ruling as D1–D7 and the maintainer's Q1–Q6 answers as D8–D13 (records 7003541720, 7003566086).
Blocked-by: #35354line.maintained_through; past-side coverage goes to the maintainer).#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:dispatchedoff.