Skip to content

docs(adr): ADR-0157 working calendars are organization-editable runtime data, resolved by code or refused - #35364

Merged
os-zhuang merged 7 commits into
mainfrom
claude/issue-35354-work-calendar-adr
Nov 19, 2026
Merged

os-zhuang merged 7 commits into
mainfrom
claude/issue-35354-work-calendar-adr

Conversation

@objectstack-fleet

@objectstack-fleet objectstack-fleet Bot commented Nov 19, 2026 •

Copy link
Copy Markdown
Contributor

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

Tests

No code. Gates derived by node scripts/pm/dispatch-gates.mjs --commands for this diff (3 paths, ADR-0042 included), run at head aeac9a1280 (merge base adcb9f8e2): 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/ resolve
  • check:adr-symbol-anchors: 3798 anchors across 159 records resolve, 0 line anchors (the new zonedWallClockToUtcMs, ClockTimeValueSchema and nextUtcCalendarDay anchors resolve)
  • check:adr-index: docs/adr/README.md is current
  • check:doc-formula-expressions: exit 0 after building @objectstack/formula and @objectstack/lint under the verify lock
  • the rest of the 21: exit 0

Acceptance notes

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

…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>
@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#5 · os-bill · session_01Utp6CXsZsKmgG1EcKp5bY4

维护者速读

  • 用户能看到什么变化:暂时没有。这是平台工作日历的设计记录,写下你最早定的七条和后来定的六个细节,后面三张实现卡照它做。
  • 为什么做:审批超时、服务时效和交期现在都按自然小时算,几个套件需要同一套工作日算法。
  • 出错会怎样:不改任何运行行为。记录写错了,改记录或撤回即可。
  • 要你做什么:席位复核后请你合入。新增设计记录必须由你本人合入,席位不能代合。

席位核对 — ACCEPT (L1-a) · repo:objectstack#5 · head 4479ee7086 · 2026-11-19T08:35Z

  • Shape: docs only, 2 files, +209/−4. Adds docs/adr/0157-…md (204 lines, Status Proposed). Regenerates docs/adr/README.md: the new row, the counts, and the ADR-0137 row. The ADR-0137 row was stale on main, and refreshing it is generator-owned. No code, no changeset, Metadata-protocol: none.
  • Fixes vs card: Working calendars ①: ADR for the platform working calendar (objects, resolution, clock key, pushdown) #35354, revision 1, read against the three ruling texts.
    • D1–D7 vs ruling 7000950747. Each D-item restates one ruling item: data model, resolution order with no wall-clock fallback, maintained-through date, same-release consumers, clock default wall_clock on timeoutHours only, in-memory-only pushdown, required time zone and the midnight refusal. Each "completed by D8–D13" pointer resolves to the right entry. The non-goals and follow-ups (gantt, CN package, business-unit inheritance) match the ruling.
    • D8–D13 vs records 7003541720 and 7003566086. These match: Q1 = C, Q2 = C, Q3 = A, Q4 = A, Q5 = A, and Q6 with no new rule. Each not-chosen arm is the one the record names. The Enforcement table maps each D-item to the card that the records name.
    • The three text fixes landed.
    • The two open implementation points are listed, not decided: (1) a write-time column that meets a D8 refusal, owned by Working calendars ③: formula functions addWorkingDays / workingDaysBetween / addWorkingHours #35356's contract review; (2) a blank maintained-through date, owned by Working calendars ②: sys_work_calendar objects, calendar service and Setup page #35355. The dev declared (2) as a deviation: it is in neither record, but the decision analysis flags it. Listing it decides nothing, so it is accepted.
  • Citations: I checked these at head: import-coerce.ts refuses a zone-naive 24:00 (doc around line 421), validate-approval-approvers.ts, seed.zod.ts, and the approvals sweep (around 8052–8070).
  • Gates: CI on 4479ee70 shows 26 success and 22 skipped, with 0 failed and 0 pending. It merges cleanly into current main.
  • Deviations accepted (none adds a decision):
  • Nits (non-blocking, the seat's call):
    • D12's second bullet ("escalation stays single-shot") is a reading of current code (approval-service.ts around 8070, "Single-shot: a prior 'escalate' action…"), not a ruling. A path#symbol anchor or the words "as today" would mark it as Readings-kind text.
    • The PR body's Clause-②: line carries prose. AGENTS.md wants exactly Clause-②: no, with the reason on its own line. Body edits after pr_create are the seat's.
  • Landing route: check-governed-merges --pr 35364 gives GOVERNED, landing tier H(人合). The low-risk skills arm does not apply, because an ADR file is added and the generated README removes lines. Fixing the Clause-② line would not change that. So this PR is not seat-landable on an L1 plus L2 record.
    • The seat writes the CONTRACT_REVIEW_TIER L2.
    • Then the maintainer merges, or a GOVERNED_APPROVERS APPROVED review lets the owning seat land it.
    • The PR body's "landing is the maintainer's" is correct.
  • Before merge: K = 18 first-parent commits since base 3819afec (≥ 15), so merge main and get a green re-run first. Draft docs(adr): ADR-0158 units of measure records ruling U1–U8 and settles L1–L4 #35370 (ADR-0158) edits the same generated docs/adr/README.md. Whichever lands second re-runs pnpm adr:index. The numbers do not collide.
  • Landing clause: a new push needs a fresh L1 only if it changes more than a main merge plus the README regeneration, the D12 anchor nit and the PR body.

…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>
@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#5 · os-bill · session_01Utp6CbUb7TcZK1XUAddUmQ

Contract review

Served-tier: CONTRACT_REVIEW_TIER
Head-sha: 80b83422b6dcf9f9954721191ed4faaccd4105da
Local-runs: none
Scope: docs/adr/0157-working-calendars-are-org-editable-runtime-data-resolved-by-code-or-refused.md, docs/adr/README.md + none
Security-touching: yes
D1 sets the access model of two new system objects (organization-scoped rows, written by administrators, audited), and D6 says what a row-level-security predicate does with a working-day function. Both teach permission behaviour that the path name does not show.

① Derived judgments

  • Public surface: none lands here. Right. The diff is two files under docs/adr/. No schema, object, code or changeset moves. The record declares surface that three later cards publish (two sys_* objects, three formula functions, escalation.clock and escalation.calendar, the refusal codes, one lint). Each is judged on its own PR.
  • Accept-sets the record sets for those cards. Right as ruled. clock takes wall_clock or working_time with the default unchanged, so every stored snapshot keeps its meaning. calendar is optional. An on exception must carry periods and an off exception carries none. One row per calendar and date. A period that crosses midnight is refused. 24:00 is a legal period end. That is wider than the platform's time value form and the import cell parser, which both refuse it, and the record says the calendar validates it itself.
  • Governed tier. Right. docs/adr/** is Tier H, and a new record is not the add-only-note arm. The PR is a draft and its body leaves the landing to the maintainer.
  • Generated index. Right. docs/adr/README.md reads 158 records and 153 numbers, which is what the tree at this head holds. The new row and the Accepted count follow the Status line. The refreshed ADR-0137 row matches that record's own status line. No ADR moved on main after the merge base, and 0157 is free there. Draft docs(adr): ADR-0158 units of measure records ruling U1–U8 and settles L1–L4 #35370 touches the same generated file, so whichever lands second regenerates it.
  • Check-runs on the head. Clear. 48 runs: 26 success, 22 skipped, none red, none pending. Governed Surface Queue Guard, Check Documentation Links, the lint lanes, the type-check lanes, Plan Test Core shards and the PR-body guards are green. Check Changeset is skipped under the skip-changeset label.

② Semver level

Nothing is published, so skip-changeset is the right label: the diff moves no released package. Clause-②: no holds, with its reason line on the PR body. Metadata-protocol: none is right. There is no changeset body to carry the pair.

③ Boundary flags

  • The six open questions of the first report are answered. Q1 and Q2 by ruling record 7003541720, Q3 to Q6 by ruling record 7003566086. The record carries them as D8 to D13. The last report lists no open question.
  • Deviations, each accepted. The README regeneration also refreshes the ADR-0137 row: generator-owned and correct. Line anchors in the ruling became symbol anchors: the anchor gate requires it. Open implementation point 2 (a blank maintained-through date) is named by no ruling: it is listed, not decided, and D3 already bounds it. The PR body that the revision round reported stale now reads D8 to D13. The two pushes of the last round change nothing reviewed. The PR-body form and the commit trailer are not on this face, and the PR-body guards are green.
  • Items the first report could not measure locally are covered. Plan Test Core shards and the type-check lanes are green on this head.
  • Acceptance note A4 ("partly holds") is handled. The record ties ADR-0144 only to scope, writers and audit, and takes seeding from packages/spec/src/data/seed.zod.ts (D13).
  • SQL push-down: no finding. The diff adds no id materialisation and no in-app join. The contract it sets keeps calendar arithmetic out of SQL for a stated reason (ruling 7000950747 item 6: the pushdown compiler lowers no function call) and names the shape that does push down, a write-time datetime column compared with {now}. The sweep compares in memory, as the wall-clock sweep already does, because D12 recomputes the deadline and does not store it.
  • Escalated to the seat.
    1. Working calendars ④: approval escalation clock key (wall_clock | working_time) #35357's Scope still says an unresolvable calendar "is a lint/validation error". D9 as ruled has no existence check at publish. The record reads that sentence down, but the card body is what the next dev reads first. Correct it before dispatch.
    2. Whether ADR-0042 itself takes a dated pointer note to this record is a second governed edit. It is the seat's call with the maintainer (see S1).
    3. The ruling bounds a calendar on the future side only. Dates before the first year of entered holidays read as "no holidays", which is the silent wrong answer D3 exists to prevent. If Working calendars ②: sys_work_calendar objects, calendar service and Setup page #35355 meets it, that is a maintainer question, not the card's.

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 main.

④ Design judgment

docs/adr/0157-working-calendars-are-org-editable-runtime-data-resolved-by-code-or-refused.md

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:

  • slaDueAt: one function serves the sweep and the sla_due_at read projection, and it adds elapsed milliseconds to created_at.
  • ESCALATION_ENABLED_FLIP_CUTOFF_MS and the timeoutHours describe text: as the Context says.
  • The stdlib header and CelFilterFailReason: no resolver may be handed to a function, and a function call in a filter is a compile error, never dropped.
  • SysExchangeRate, the sys_business_unit.timezone help text and ObjectGanttSchema: as the Context says.
  • engine-formula-fault-log.test.ts: the field reads blank, with one attributed warn line per object and field.
  • validate-approval-approvers.ts: a pure function of the stack.
  • import-coerce.ts: a zone-naive 24:00 is refused.
  • zonedWallClockToUtcMs and its test: a skipped reading and a repeated reading both resolve to the earlier candidate instant.
  • seed.zod.ts: ignore is the default and is create-only.

D12's single-shot bullet is true against the tree. The guard sits inside ApprovalService.runEscalations: a request that already carries an escalate action is skipped. What the bullet calls it is the subject of S1.

Tried to break, and held.

  • D9's skip never suppresses an escalation that is due. If the due time lies past the maintained-through date while today is inside it, the request is not due yet; the cost is the displayed reason only.
  • D5 needs no cutoff window like the one enabled left behind. An old snapshot has no clock and reads as wall_clock, and the default is not flipped.
  • D11 is deterministic for a period whose end or start falls inside a spring-forward gap: the reading lands before the gap. Working calendars ③: formula functions addWorkingDays / workingDaysBetween / addWorkingHours #35356's pinned tests should include that case.

No must-fix.

S1 (should-fix) — The record never names ADR-0042, which decides the surface that D5, D9 and D12 change.
ADR-0042 is Accepted and governs this sweep. Its §1 decides that an escalation fires at most once per request, with the escalate audit row as the marker. Its §3 decides that the deadline "stays created_at + timeoutHours". The code says so itself: the section above runEscalations is headed "SLA escalation (ADR-0042)", and the audit write cites "ADR-0042 §1".

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 created_at and the no-pause rule stand, and only how the hours are counted gains a second clock.

S2 (should-fix) — D11 points the formula functions at a primitive their package cannot import, and the open implementation points do not list it.
D11 says local times convert to instants "only through" packages/core/src/utils/datetime.ts#zonedWallClockToUtcMs, and the Enforcement table gives D11 to #35356. #35356 adds the functions to packages/formula, where they compute synchronously over preloaded data (the record's own Context).

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 @objectstack/spec and the CEL library only, and three ui/ packages bundle it for the browser.

So #35356 cannot obey D11 as the tree stands. The path of least resistance is the one the tree already took for today(): a private copy in formula. That is a second DST rule, which D11 forbids. The same question covers the arithmetic: D1 says one calendar service computes, while the formula functions must compute inside formula.

"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 nextUtcCalendarDay moved to @objectstack/spec/data, or to have the calendar service hand formula periods already converted to instants.

Nits. None changes the contract, and none needs a delta review.

docs/adr/README.md

Generator-owned and consistent with the tree at this head (see ①). No finding.

Implemented-by: claude/issue-35354-work-calendar-adr
Reviewed-by: isolated-l2-35364

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>
@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#5 · os-bill · session_01Utp6CbUb7TcZK1XUAddUmQ

Contract review

Served-tier: CONTRACT_REVIEW_TIER
Head-sha: aeac9a1280e28eead8cc1ccbd523d8fd78c8376f
Local-runs: none
Scope: docs/adr/0042-approval-sla-escalation.md, docs/adr/0157-working-calendars-are-org-editable-runtime-data-resolved-by-code-or-refused.md, docs/adr/README.md + none
Security-touching: yes
D1 and D6 are unchanged and still teach permission behaviour. The new open implementation point 4 adds to it: in which organization, and under whose authority, the calendar service reads.

Delta review from 80b83422b6 (record 7005187995: PASS, should-fix S1 and S2, nits N1 to N8) to this head. The delta is one commit with no merge of main. It revises ADR-0157 and adds two lines to ADR-0042. The generated index is untouched.

① Derived judgments

  • Public surface: still none. Right. The diff is three files, all under docs/adr/. No schema, object, code or changeset moves.
  • A second governed record is now in the diff. Right, and add-only. docs/adr/0042-approval-sla-escalation.md gains one dated note and a blank line at the end of §3, in the blockquote form the repository's other dated notes use. No line of ADR-0042 is removed or reworded, and its status line is untouched.
  • Governed tier. Unchanged. A new record plus a note is Tier H as a whole. The PR is still a draft.
  • Generated index. Still current. docs/adr/README.md did not change this round and did not need to. The generator reads each record's status line and its supersession fields; it does not read Builds on, Amends or a note in the body. ADR-0042's status line is untouched, and ADR-0157's changed only past the point where its row is cut. No ADR moved on main since the merge base.
  • Check-runs on this head. Clear. 48 runs: 26 success, 22 skipped, none red, none pending. Governed Surface Queue Guard, Check Documentation Links, the lint lanes, the type-check lanes and the PR-body guards are green.

② Semver level

Unchanged. Nothing is published, skip-changeset is the right label, Clause-②: no holds and Metadata-protocol: none is right.

③ 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 main.

④ Design judgment

docs/adr/0157-working-calendars-are-org-editable-runtime-data-resolved-by-code-or-refused.md

The nits of the first record, each read on this head:

  • N1: closed. The "one function" sentence is its own bullet, marked as following from D9.
  • N2: closed. See the note for the maintainer in ③.
  • N3: closed. D13 names upsert and update, which is what SeedMode holds.
  • N4: closed. D10 anchors ClockTimeValueSchema beside the import parser. Both refuse 24:00 as a time of day.
  • N5: closed, as open implementation point 4. It states the precedent's reader and two facts about the sweep and package seeds, and it sets no rule. SYSTEM_CTX carries no organization, as the point says.
  • N6: closed. Two Consequences bullets are added, and ADR-0137 D2 and ADR-0058 are in Builds on and References. ADR-0137 D2 says a field-rule predicate that cannot be evaluated refuses the write, as the bullet says.
  • N7: closed. The Consequences bullet matches how the form evaluator already treats a formula whose inputs it does not hold.
  • N8: closed. All four wordings are corrected, and the Status line now follows Prime Directive feat: Comprehensive CRM example demonstrating all ObjectStack protocol features #14's own wording.

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.

docs/adr/0042-approval-sla-escalation.md

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 request_info round-trip, because the note sits directly under §3's paragraph on that. The status line is unchanged, which is right for a pointer.

docs/adr/README.md

Unchanged and still current (see ①). No finding.

Implemented-by: claude/issue-35354-work-calendar-adr
Reviewed-by: isolated-l2-35364

VERDICT: PASS

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#5 · os-bill · session_01Utp6CbUb7TcZK1XUAddUmQ

维护者速读

席位核对 — ACCEPT · repo:objectstack#5 · head aeac9a1280e28eead8cc1ccbd523d8fd78c8376f · 2026-11-19T10:09Z

@objectstack-fleet objectstack-fleet Bot added pm:awaiting-merge PR only: landing waits on the maintainer's own review and merge (SKILL.md 复核 ②); never on an issue security labels Nov 19, 2026
@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#5 · os-bill · session_01Utp6CbUb7TcZK1XUAddUmQ

Contract review

Served-tier: CONTRACT_REVIEW_TIER
Head-sha: 5c85cf8b41f61f6c8e065221f600ca86b9887aec
Local-runs: probe — the index generator's check mode, run once on an exported copy of this head's two ADR directories; the index step in CI is report-only, and the question put was byte-equality with the generator
Scope: docs/adr/0042-approval-sla-escalation.md, docs/adr/0157-working-calendars-are-org-editable-runtime-data-resolved-by-code-or-refused.md, docs/adr/README.md + none
Security-touching: yes
The ADR text is byte-identical to the head reviewed before. D1, D6 and open implementation point 4 still teach permission behaviour.

Merge-only delta from aeac9a1280 (record 7005941284: PASS, S1 and S2 closed, nits N9 to N12) to this head. The head is one merge commit. Its parents are that reviewed head and main at a1b14cdff8. Of the PR's three files it changes one, the generated index.

① Derived judgments

  • ADR text: unchanged. docs/adr/0157-working-calendars-are-org-editable-runtime-data-resolved-by-code-or-refused.md and docs/adr/0042-approval-sla-escalation.md are the same blobs here as at aeac9a1280 (59fddbb846 and 691ea9d7d5). main did not touch ADR-0042 between the two heads, and it carries no record numbered 0157. Against main the PR is still three files: ADR-0157 new (+210), the two-line note in ADR-0042, and the index (+4, −3).
  • Index: equal to the generator's output. adr-index --check on the exported tree exits 0 and prints "docs/adr/README.md is current and every record parsed". That mode exits 1 unless the committed file is byte-equal to the generated text. The file reads 159 records under 154 numbers, Accepted 138, Total 159. The tree holds 159 record files under 154 numbers. The rows for ADR-0157 and ADR-0158 are both present, in number order. Against main's index the diff is the record count, the Accepted count, the Total and the ADR-0157 row, and nothing else.
  • Why a probe. CI runs the index check in report mode (pnpm check:adr-index, in "Lint · repo & tooling gates"), and that mode stays green on a stale index. No check-run could answer the question, so the generator's check mode was run once, on an export outside the clone. Nothing was built and nothing else was run.
  • Check-runs, as read. 43 runs on this head: 23 success, 19 skipped, 1 in progress, none red. "Test Core (1/10)" is still running. Green include "Governed Surface Queue Guard", "Lint · docs & code guards" (it runs check:adr-symbol-anchors), "Lint · repo & tooling gates", "Check Documentation Links", "PR-body guards", "Lint · PM dispatch-gates" and the five type-check lanes. The landing waits on the lane still running.
  • State. Draft, with labels documentation, security, skip-changeset and pm:awaiting-merge. docs/adr/** is Tier H, so the landing is the maintainer's (Prime Directive feat: Comprehensive CRM example demonstrating all ObjectStack protocol features #14).

② Semver level

Unchanged from the reviewed head. Nothing is published. The merge adds no package file and no changeset to the PR's own diff. The skip-changeset label is on, and the PR body still carries Clause-②: no and Metadata-protocol: none.

③ Boundary flags

  • No dev flag and no open question came with this head. The card's newest dev report is still 7005680640.
  • SQL push-down: the PR's diff holds no code. No finding.
  • What main brought. 16 commits, 167 files. Under docs/adr/ they are ADR-0158 and the index, and nothing else.
  • Cited code. None of the 20 code paths ADR-0157 anchors changed between the two heads, and every anchored symbol is still present. packages/formula, packages/core/src/utils and packages/plugins/plugin-approvals are untouched. So the D12 anchor (ApprovalService.runEscalations) stands, and so does the layering fact behind open implementation point 3. CI's anchor check is green on this head.
  • Cited records. ADR-0029, 0042, 0049, 0053, 0058, 0112, 0137 and 0144 are unchanged by main. AGENTS.md is unchanged, so the Prime Directive numbers hold. main did change currency code (feat(spec,objectql): a summary over a plain dynamic currency amount may declare currencyMode 'dynamic' #35387), but that is the summary roll-up; D8's precedent cites ADR-0144 D5, a record, and that record did not move.
  • ADR-0158. It cites neither ADR-0157 nor ADR-0042, and it says nothing on calendars, working time or escalation. It builds on ADR-0144 and states "ADR-0144 is mirrored, not changed". Its account of sys_exchange_rate (organization-owned, edited by organization admins only) agrees with the precedent ADR-0157 draws from that table for D1.
  • No working-day code arrived. The only working-day symbols in code are still the QA runner's workingDaysBetween and the gantt view's own weekend and holiday scheduling. ADR-0157 already names both. No part of Working calendars ②: sys_work_calendar objects, calendar service and Setup page #35355, Working calendars ③: formula functions addWorkingDays / workingDaysBetween / addWorkingHours #35356 or Working calendars ④: approval escalation clock key (wall_clock | working_time) #35357 has landed, so no implementation exists that the text could now contradict.

④ Design judgment

No must-fix, no should-fix.

Nits. None changes the contract, and none needs a new head.

Implemented-by: claude/issue-35354-work-calendar-adr
Reviewed-by: isolated-l2-35364

VERDICT: PASS

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#5 · os-bill · session_01Utp6CbUb7TcZK1XUAddUmQ

席位核对 — ACCEPT · repo:objectstack#5 · head 5c85cf8b41f61f6c8e065221f600ca86b9887aec · 2026-11-19T10:35Z

@os-zhuang
os-zhuang marked this pull request as ready for review November 19, 2026 13:29
@os-zhuang
os-zhuang added this pull request to the merge queue Nov 19, 2026
Merged via the queue into main with commit f727061 Nov 19, 2026
45 checks passed
@os-zhuang
os-zhuang deleted the claude/issue-35354-work-calendar-adr branch November 19, 2026 13:48
@objectstack-fleet objectstack-fleet Bot removed the pm:awaiting-merge PR only: landing waits on the maintainer's own review and merge (SKILL.md 复核 ②); never on an issue label Nov 19, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation security size/m skip-changeset PR has no user-facing published change; bypasses the changeset gate

Projects

None yet

Development

Successfully merging this pull request may close these issues.

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

3 participants