Skip to content

docs(skills): teach the approval escalation clock (escalation.clock, escalation.calendar) - #35963

Merged
objectstack-fleet[bot] merged 1 commit into
mainfrom
claude/area-a4A-35931
Nov 21, 2026
Merged

objectstack-fleet[bot] merged 1 commit into
mainfrom
claude/area-a4A-35931

Conversation

@objectstack-fleet

Copy link
Copy Markdown
Contributor

Requested by Elon · project thread

Fixes #35931
Clause-②: no
Metadata-protocol: none

维护者速读

  • 用户能看到什么变化:用 AI 写审批流程的作者,现在会被教到「审批超时可以按工作日历只算工作时间」,而不是旧的「平台没有工作日历」。
  • 为什么做:属于「工作日历」这条线;超时按工作时间计算的功能已经上线,随包发布的技能文档还在教相反的说法。
  • 出错会怎样:只改文档和一条评测用例,不改运行行为;写错了的后果是 AI 给出错误的配置建议,可直接撤回本次合并。
  • 要你做什么:无(另有一处「平台目录仍写工作日历未提供」的遗留,见验收说明,需另行安排)。

What changes

  • skills/objectstack-automation/references/state-machines-and-approvals.md, the escalation row of the node-config table, rewritten in place from the merged contract (ApprovalEscalationSchema in packages/spec/src/automation/approval.zod.ts, slaDeadline in packages/plugins/plugin-approvals/src/approval-service.ts, the lint in packages/lint/src/validate-approval-approvers.ts, the inbox label in ui/apps/console/src/pages/system/ApprovalsInboxPage.tsx). It now states:
    • both clocks and the default: clock: 'wall_clock' (default) counts nights, weekends and holidays; 'working_time' counts timeoutHours as working hours on a working calendar (sys_work_calendar, maintained per organization in Setup);
    • the resolution order: the calendar code, else the organization's default, else refused, never wall-clock;
    • the cannot-answer hold: the request does not escalate, its row carries sla_due_refusal instead of sla_due_at, the inbox shows why, and each sweep retries;
    • the lint rule: calendar without clock: 'working_time' is the error approval-escalation-calendar-without-working-time.
  • The sentence "the platform ships no business-hours calendar" is gone.
  • Paid for inside the same file's ceiling by deletions (the ceiling row is untouched): the "Analog" column of the expression-roots table (other vendors' names for the three roots), the rationale sentence after "record and bare field names are NOT available" (the fix, current.x or trigger.x, stays), the pointer to a showcase flow in the framework repo (an installed app has no such repo), "the author declares keys, approvers only fill values" (the next sentences state the refusal of an undeclared key), "(do not mix them up)", and the sys_user_position parenthetical on escalateTo, which the Approver Types table's position row already carries.
  • skills/objectstack-data/references/data-hooks.md: the note on a hook-stamped deadline says "wall-clock hours" instead of "calendar hours", names the constant *_WALL_CLOCK_HOURS, and points at escalation.clock: 'working_time' for an approval deadline. Same line count.
  • .changeset/35931-escalation-clock-skill.md: '@objectstack/skills': patch.

Evals

One case added, id 25 in skills/objectstack-automation/evals/flows-triggers-approvals.json: an approval step that must hand over after 8 business hours on the calendar cn_plant. It requires clock: 'working_time' and calendar: 'cn_plant' and refuses a hand-rolled 3_600_000 deadline. The old row would have answered that the platform has no working calendar, so the case separates the two texts.

skills/objectstack-project/evals/project-process.json case 8 is unchanged; see Acceptance notes.

Verification

Head d34c403632. Read first: the escalation row (the one hunk that teaches new behaviour), then the five deletions in the same file. Two-minute check: node scripts/check-skills-token-ratchet.mjs prints state-machines-and-approvals.md is 5932 tokens (ceiling 5936; headroom 4) and data-hooks.md is 10120 tokens (ceiling 10122; headroom 2) and exits 0.

Readings, before to after:

File Lines Bytes Tokens / ceiling
state-machines-and-approvals.md 389 to 385 23710 to 23726 5928 to 5932 / 5936
data-hooks.md 884 to 884 40467 to 40478 10117 to 10120 / 10122
flows-triggers-approvals.json (eval, not ratcheted) 440 to 450 26920 to 28309 6730 to 7078

Whole catalog: authored 197404 to 197411 tokens (ceiling sum 202541 unchanged), shipped tree 288105 to 288460 tokens, of which 348 are the eval fixture; the sum of all SKILL.md files is 4944 lines before and after. Net added lines for the PR, changeset included: 33 added, 19 deleted, net 14 (budget 25).

Gates on this head, local: the dispatch-gates --commands list derived 49 commands; 45 exited 0, among them check-skills-token-ratchet and its self-test, check:skill-refs, check:skill-served-sections, check:skill-identifier-liveness, check:skill-links, check:skill-compatibility, check:doc-authoring, check:nul-bytes, check-empty-changeset, check-adr-0087-registration and check:doc-formula-expressions (after building its closure under the verify lock, VERDICT command-exit 0). NOT MEASURED: check:dts-closure, check:dual-build-cjs-loads, check:lean-entry-closure, check:sourcemap-no-sources-content; each exited 3 asking for a full build, each reads built package output, and this diff changes no package, so they are left to CI. overlap-check: VERDICT clean exit 0.

Acceptance notes

  • The project eval and the platform catalog are left as they are, and the catalog is now stale. skills/objectstack-project/references/platform-catalog.md still lists working calendars under "Planned: carded, not shipped" as "not available", and project eval case 8 expects exactly that answer. The page is generated from PLANNED_ROWS in packages/spec/scripts/lib/platform-catalog.ts; sys_work_calendar and sys_work_calendar_exception are in the platform object registry and in Setup, and the approval clock reads them, but no catalog row names them. Changing the eval alone would make it contradict the page it is graded against, and moving the row is a generator edit with its own test and byte ceiling, which this card's diff does not carry. The three formula functions ADR-0157 D4 names are not in the formula stdlib on this head, so what the eval's "make the SLA formula read them" should now expect is not settled by what merged. Reported to the seat as a finding.
  • data-hooks.md renames the advised constant from *_CALENDAR_HOURS to *_WALL_CLOCK_HOURS. The arithmetic the note teaches is unchanged and still true. The old name is the one the merged spec declined as a clock value because, with a working calendar in the platform, "calendar hours" reads as hours on that calendar. An app that followed the earlier advice has a constant whose name is now ambiguous; nothing refuses it.
  • The row names sla_due_refusal and sla_due_at as fields of the request row; the three refusal codes are not listed, to stay inside the ceiling.
  • No ablation or reverse verification: the diff changes prose, one eval fixture and a changeset, no tested behaviour.

🤖 Generated with Claude Code

…escalation.calendar)

The approval node's escalation row states both clocks and the default, the
working-calendar resolution order, what a calendar that cannot count the
deadline does, and the lint rule for a calendar beside the wall clock. Paid
for inside the file's token ceiling. The data-hooks note calls an hours-table
deadline wall-clock hours. One eval case covers the working-time clock.

Co-Authored-By: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_016WV4d1ZJL93Kin2UHFXbFv
@github-actions github-actions Bot added size/s documentation Improvements or additions to documentation tooling Fix lands in tooling, not a product package — enters pm:queue only with Unblocks: or a named surface labels Nov 21, 2026
@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#4 · os-elon-musk · session_016WV4cwxJaQdC11ABGtTez8

L1 verdict (L1-a): ACCEPT at head d34c403632c8180905fcf732fe525baa7f458ad3 (Fixes #35931: the automation skill teaches the approval escalation clock that #35929 shipped). The row is true to the merged code, and the deletions that pay for it lose nothing an agent needs. One item is owed before landing, and it is a card, not a code change: the catalog follow-up below must be filed under a number.

Gates on this head: l1-face --pr 35963 CLEAN (13 items, none flagged). Check-runs at d34c403: 28 success, 16 expected skip, 0 failed, 0 pending. Lint & Repo Gates and TypeScript Type Check both success. Dogfood battery not owed.

The new escalation row, sentence by sentence, against main after #35929 (merged 23:41Z):

  • The shape { enabled, timeoutHours, clock, calendar?, action, escalateTo?, notifySubmitter } matches ApprovalEscalationSchema. clock carries a default, like enabled, so it is written without ?, as enabled is.
  • "'wall_clock' (default) counts nights, weekends and holidays; 'working_time' counts working hours on a working calendar (sys_work_calendar, maintained per organization in Setup)". This matches the schema default and ApprovalService.slaDeadline. The calendar objects are platform objects (platform-objects, SysWorkCalendar).
  • "the calendar code, else the organization's default, else refused — never wall-clock". This is WorkCalendarService.load (code, else is_default, else WorkCalendarUnresolvedError), and slaDueAt answers nothing under working_time.
  • "While the calendar cannot count the deadline … the request does not escalate: its row carries sla_due_refusal instead of sla_due_at, the inbox shows why, and each sweep retries". These are the sweep's continue on a refusal, the read projection and the inbox label. Refusals are never cached, so the next sweep really does ask again. I verified this in my feat(approvals): an escalation deadline can count working time on an org calendar (clock: working_time) #35929 read (7052291078).
  • "calendar without clock: 'working_time' is lint error approval-escalation-calendar-without-working-time". This is the rule in validate-approval-approvers.ts, at severity error.
  • The removed sentence "the platform ships no business-hours calendar" is gone from all of skills/**. git grep at this head finds it only in ADR-0157's history section.

data-hooks.md: "wall-clock hours", hours * 3_600_000, never "business hours", and the pointer to escalation.clock: 'working_time'. All four are true. The constant rename *_CALENDAR_HOURS to *_WALL_CLOCK_HOURS is the right call: "calendar hours" now reads as hours on a working calendar, which is the reading the spec declined as a clock value name. Nothing else in the repo names either constant (git grep outside this file finds none), so no eval, lint or check pins the old name.

Eval case 25: the ids run to 25 and are unique, and the file is valid JSON. Both must_contain tokens use the single-quote literal form, which the file's other cases already use (1, 3, 5, 7–9, 11, 12 and 16–22). The bare must_not_contain token 3_600_000 does not appear in the case's own expected_output (the #35665 lesson). It separates the two texts: the old row answered "no business-hours calendar".

a4-A's question 1: are the deletions safe? Yes, all six:

  • The showcase_budget_approval pointer. The flow exists in examples/app-showcase on main, but these skills ship to installed apps through @objectstack/skills, where "the framework repo" isn't there to open. The canonical shape is already stated in the paragraph above it. Safe.
  • "the author declares keys, approvers only fill values". The next sentences say it operationally: outputs need the keys declared in decisionOutputs, and a decision carrying an undeclared key is rejected. Safe.
  • The Analog column (ServiceNow, Power Automate, BPMN). The Meaning column fully defines each root. No eval in skills/**/evals names ServiceNow, Power Automate or BPMN as an answer, and the one other BPMN mention (SKILL.md:82) is unrelated. Losing a vendor crib costs a little help for users migrating from those tools, and nothing an agent needs to author correctly. Safe.
  • The record rationale. The rule ("NOT available and fail the node loudly") and the fix ("current.x or trigger.x") both stay, and the cheat-sheet table below still maps record across surfaces. No eval asks the agent to explain why it is ambiguous. Safe.
  • "(do not mix them up)" carried no information. Safe.
  • The sys_user_position parenthetical on escalateTo. The Approver Types position row (line 221) still says "resolved via sys_user_position (ADR-0090 D3)", and the new text points there ("resolved like a position approver"). Safe.

a4-A's question 2: project-process case 8 left as it is. Agreed, under the L1 rule that a published defect this round neither made false nor touched gets a card, not a fix. Case 8 grades against skills/objectstack-project/references/platform-catalog.md, which is generated from PLANNED_ROWS in packages/spec/scripts/lib/platform-catalog.ts. That catalog went stale when #35355 and #35929 merged, not in this round. Changing the eval alone would grade the agent against a page that says the opposite. The fix is a generator edit (move the row, plus its test and byte ceiling), and it has an open question: ADR-0157 D4's working-day formula functions are not in the stdlib on main yet, so what "make the SLA formula read them" should expect depends on #35356. Owed before landing: a numbered card for the catalog row and case 8, so Fixes #35931 does not close over the third item the card asked to check. Put the number in a PR comment. The seat files it, per a4-A's proposal.

Scope and form: four files, all inside the card's Ask. The changeset is '@objectstack/skills': patch, as the card asks. The token ratchet at this head reads state-machines-and-approvals.md 5932 / 5936 and data-hooks.md 10120 / 10122. No ceiling was raised. Clause-②: no and Metadata-protocol: none fit a skills-text PR. The body has one closing keyword. skills/** is governed, so this is Tier H through the seat's contract read.


Generated by Claude Code

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#4 · os-elon-musk · session_016WV4d1ZJL93Kin2UHFXbFv

Follow-up filed · 2026-11-21T00:17Z · for L1's owed item in 7053937242.

This PR leaves two things unchanged:

  • the platform catalog row that lists working calendars as Planned / "not available";
  • skills/objectstack-project/evals/project-process.json case 8, which expects that answer.

Both now ride #35964 (p1, claimed by a4-A as 7053784244, dev in progress). The order is: move the calendar and its exceptions out of Planned, keep the ADR-0157 D4 formula functions planned, regenerate the page, and rewrite case 8. Fixes #35931 therefore closes nothing that this PR leaves open.

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#4 · os-elon-musk · session_016WV4d1PJ4isQ3eD7Fk1fnF

Served-tier: CONTRACT_REVIEW_TIER

Contract review — PASS at d34c403

Head-sha: d34c403632c8180905fcf732fe525baa7f458ad3
Local-runs: none
Scope: skills/objectstack-automation/evals/flows-triggers-approvals.json, skills/objectstack-automation/references/state-machines-and-approvals.md, skills/objectstack-data/references/data-hooks.md + none; widened to the prose face: .changeset/35931-escalation-clock-skill.md; read, not reviewed: packages/spec/src/automation/approval.zod.ts, packages/spec/src/contracts/approval-service.ts, packages/spec/src/data/work-calendar.ts, packages/plugins/plugin-approvals/src/approval-service.ts, packages/plugins/plugin-approvals/src/sys-approval-request.object.ts, packages/objectql/src/work-calendar-service.ts, packages/formula/src/work-calendar.ts, packages/formula/src/index.ts, packages/lint/src/validate-approval-approvers.ts, packages/platform-objects/src/system/sys-work-calendar.object.ts, packages/platform-objects/src/apps/setup-nav.contributions.ts, ui/apps/console/src/pages/system/ApprovalsInboxPage.tsx, content/docs/automation/approvals.mdx, docs/adr/0157-working-calendars-are-org-editable-runtime-data-resolved-by-code-or-refused.md, packages/qa/scenarios/src/skill-evals/grade.ts, packages/spec/scripts/skill-served-sections.json, packages/skills/package.json, scripts/check-skills-token-ratchet.mjs, scripts/pm/check-governed-merges.mjs
Security-touching: no

Isolated, read-only sub-agent record, written 2026-11-21T00:28Z. Face: governed rule text (skills/**), three hits files. Inputs: card #35931 with its thread (triage 7049071712, claim 7053449154, dev report 7053747164), the PR body and file list, the net diff against main, L1 ACCEPT 7053937242 and the follow-up note 7053947537, and the check-runs on this head: 44 runs, 28 success, 16 skipped, none red, none pending. Merge base and main are both 7de1bad, which contains e6fa510 (#35929). The head has not moved. No earlier record and no claim line was on this head, on the PR or on the card. Every statement below was derived from the tree and the check-runs; the PR body and the ACCEPT were read as claims to test.

F: none. S: none. No must-fix, no should-fix. N1 to N5 are nits, and none of them moves the head.

① Derived judgments

  1. Accept set and public surface: unchanged. The diff is two skill references, one eval fixture and a changeset (33 added, 19 deleted). No schema, type, export, route, lint rule or gate moves. Clause-②: no and Metadata-protocol: none are right: the row states what feat(approvals): an escalation deadline can count working time on an org calendar (clock: working_time) #35929 already made real and adds nothing of its own.
  2. The escalation row, clause by clause on main:
    • The shape { enabled, timeoutHours, clock, calendar?, action, escalateTo?, notifySubmitter } is ApprovalEscalationSchema's whole key set, and the schema is a strict object. The calendar key is calendar, a code matching WORK_CALENDAR_CODE_PATTERN (lowercase letters, digits, underscores). clock is the enum wall_clock / working_time with default wall_clock; it is written without ? as enabled and notifySubmitter are, the other two keys that carry a default.
    • "'wall_clock' (default) counts nights, weekends and holidays": slaDueAt adds the hours as elapsed milliseconds to created_at.
    • "'working_time' counts working hours on a working calendar": ApprovalService.slaDeadline calls addWorkingHours on the working-calendar service with the request's organization and the escalation's calendar. escalationCountsWorkingTime is a strict equality on 'working_time', so a snapshot stored before the key existed stays on the wall clock, which is what "default" promises.
    • "(sys_work_calendar, maintained per organization in Setup)": the object is platform schema with organization-administered data, its code is unique per organization, and Setup carries the nav_work_calendars entry.
    • "the calendar code, else the organization's default, else refused — never wall-clock": WorkCalendarService resolves the named code, else the is_default row, else throws WorkCalendarUnresolvedError. slaDueAt answers nothing under working_time, so no wall-clock path is left; a kernel with no calendar service refuses as well. ADR-0157 D2 and D5 say the same.
    • "the request does not escalate … and each sweep retries": runEscalations skips a row whose deadline is a refusal, the deadline is recomputed on every sweep, and the service never caches a refusal (ADR-0157 D9, D12).
    • "its row carries sla_due_refusal instead of sla_due_at": projectWorkingTimeDue sets one or the other, never both, on the three approvals reads (open, list, single request); the spec contract says of the refusal "Absent whenever sla_due_at is present". See N1 for which read this is.
    • "the inbox shows why": ApprovalsInboxPage renders slaRefusalLabel in the place of the SLA chip.
    • "calendar without clock: 'working_time' is lint error approval-escalation-calendar-without-working-time": validate-approval-approvers.ts, severity error, the id letter for letter. It fires beside an explicit wall_clock and beside no clock alike.
    • "escalateTo … (resolved like a position approver)": escalateRequest expands the value through expandPositionUsers, the reader a position approver uses, and falls back to the value as written.
  3. data-hooks.md: "wall-clock hours", the hours * 3_600_000 arithmetic and the pointer to escalation.clock: 'working_time' are each true. A hook body still cannot count working time: the working-day formula functions of ADR-0157 D4 are exported as code from packages/formula and are not in the formula function set (Working calendars ③: formula functions addWorkingDays / workingDaysBetween / addWorkingHours #35356 is open). So "stamped from an hours table is wall-clock hours" holds on main. The constant name follows seat ruling Q2; the spec comment on clock declines "calendar hours" as a name for the same reason.
  4. Eval case 25: the file parses, ids run 1 to 25 with no repeat. The expected object { timeoutHours: 8, clock: 'working_time', calendar: 'cn_plant', action: 'reassign', escalateTo: 'procurement_supervisor' } uses only schema keys, cn_plant fits the code pattern, and every sentence of expected_output is one of the clauses checked in 2. The grader is a literal, case-sensitive substring match (grade.ts); both must_contain tokens are spelled as the row spells them, and the old row could not have produced either.
  5. Token ratchet. The gate's own lines on this head, from the Type Check · source gates job: "state-machines-and-approvals.md is 5932 tokens (ceiling 5936; headroom 4)", "data-hooks.md is 10120 tokens (ceiling 10122; headroom 2)", then "60 authored bundle file(s) within their ceilings". By hand from the blob sizes: ceil(23726 / 4) = 5932 against main's ceil(23710 / 4) = 5928, and ceil(40478 / 4) = 10120 against ceil(40467 / 4) = 10117. Neither file carries a release stamp or a body pin. No ceiling row moves: the ratchet script is one blob (58238492) on main and at this head. The eval fixture is measured and not ratcheted. No SKILL.md is touched.
  6. Generated and served copies: none owed. The changed sentences exist in one file each; git grep at this head finds the removed "ships no business-hours calendar" only in this PR's changeset, ADR-0157 and a released CHANGELOG. packages/skills ships skills/** through a build-time sync with no committed copy. The four served sections pinned on the approvals reference keep their headings; no heading changes. On this head the jobs print "249 generated files in sync", "10 generated files in sync" (skill references) and "24 served section(s), each heading exactly once in its file".
  7. The six cuts, each checked for a surviving home, since a cut with no home is a lost rule:
    • the showcase_budget_approval pointer: a pointer, not a rule. The flow still exists under examples/app-showcase, which an installed catalog cannot open; the shape it pointed at is the code block directly above.
    • "the author declares keys, approvers only fill values": the same paragraph keeps "when the node declares the keys in decisionOutputs" and "A decision carrying an undeclared key is rejected", and the Node Config row keeps "enforced at the decision".
    • the Analog column: vendor names for the three roots. The Meaning column defines each root; no eval names ServiceNow, Power Automate or triggerBody, and the one BPMN mention left (SKILL.md) is about gateway forms.
    • the record rationale: the rule and its fix stay in the bold sentence, the trigger.* row still says "what flow conditions call record", and the cheat-sheet table still maps record across surfaces.
    • "(do not mix them up)": no content.
    • the sys_user_position parenthetical on escalateTo: the Approver Types position row keeps "resolved via sys_user_position (ADR-0090 D3)", and the new words point there.
      The roots table keeps two cells in every row after the column cut, the Node Config table is intact, and git diff --check is clean.

② Semver level

One changeset, '@objectstack/skills': patch, the level owed for text under skills/** with kind none, and it releases nothing else. Both declaration lines stand once, at a line start, in the PR body and in the changeset, with nothing after the value. The body has one closing keyword, Fixes #35931. Check Changeset is green. Each sentence of the changeset matches the diff; what it leaves out is N4. No Skills-docs: line is owed: the claim template asks for one only on a kind other than none or a (narrowing) arm.

③ Boundary flags

  • Dev report 7053747164, open question 1 (the platform catalog still lists working calendars as Planned, and project eval case 8 expects that): answered by seat ruling, carded as skills: the platform catalog still lists working calendars as Planned ("not available") although sys_work_calendar ships #35964, and named on this PR in 7053947537. Not counted against this head. Until skills: the platform catalog still lists working calendars as Planned ("not available") although sys_work_calendar ships #35964 lands the catalog carries two answers: this reference teaches the working-time clock while skills/objectstack-project/references/platform-catalog.md still says working calendars are not available. That page is generated from PLANNED_ROWS, so the fix is a generator edit and is rightly not in this diff. No other skill contradicts the new text: the remaining mentions of escalation, SLA and wall-clock under skills/** are case-status examples, a cron time-zone note in the flow examples and two runAs notes, and none says how a timeout counts.
  • Open question 2 (keep the *_WALL_CLOCK_HOURS name): answered by seat ruling Q2, keep.
  • Dev flag, no Skills-docs: line: agreed, see ②.
  • Dev flag, four build-output gates not measured locally (check:dts-closure, check:dual-build-cjs-loads, check:lean-entry-closure, check:sourcemap-no-sources-content): answered by CI. Build Core hosts all four and is green on this head; the diff changes no package.
  • Dev flag, no ablation: agreed. The diff changes no tested behaviour.
  • Other open PRs on the same two references were not re-measured here; the dev's overlap-check reading was clean. The headroom left is 4 and 2 tokens, so whichever PR lands second on either file re-runs node scripts/check-skills-token-ratchet.mjs on its own head.
  • Out of scope, for the seat to weigh: the sibling CRM app followed the earlier advice (CASE_SLA_CALENDAR_HOURS in hotcrm src/service/objects/_case-sla.ts). Nothing refuses the old name; a rename there is that repository's card, not this PR's.
  • Why the security line reads no. The hunks teach how an SLA timeout counts, a lint rule for a misplaced key, two read keys, and a naming rule for a constant; the cuts remove a pointer, a vendor column and restated rationale. No permission, sharing, credential, token or authentication teaching is added, removed or changed in meaning. One sentence about who an escalation hands the request to is reworded: the parenthetical on escalateTo changes from naming the table to "resolved like a position approver". An agent writes the same escalateTo value before and after, and the row it now points at is unchanged. "never a membership tier" and the excludeSubmitter row are untouched. No label on the PR, on skills: teach the approval escalation clock — timeoutHours can count working time on an org calendar (escalation.clock / escalation.calendar) #35931 or on skills: the platform catalog still lists working calendars as Planned ("not available") although sys_work_calendar ships #35964 is security. The seat adds that label if it reads the reworded parenthetical differently.
  • Author is objectstack-fleet[bot]. SQL push-down: the diff adds no query. The commit ends with the model-free trailer pair.
  • Landing tier, stated for the seat and not decided here: before this record check-governed-merges.mjs --pr 35963 read Tier H, and its low-risk skills arm gave one reason, that no record named this head. See N5.
  • State as read while writing: open, draft, mergeable clean, labels documentation, size/s, tooling; no review, no requested reviewer, no auto-merge, and no needs:contract-review label to take off.
  • Instruments read; nothing built, tested or re-run, and no worktree: object ids and sizes, the three-dot diff, check-governed-merges.mjs --pr, the check-runs, the job step lists and one job log. This round posted no separate claim line: the record went in after a second read of both threads showed no record and no claim on this head.

④ Design judgment

  • skills/objectstack-automation/references/state-machines-and-approvals.md: holds against the code and the ADR it teaches. It has a reader: an agent asked for an approval deadline in business hours, which the old row sent to a hand-built calendar object or a hook-stamped deadline, because it said the platform ships no calendar. The row sits in the Node Config table, where that agent reads before writing escalation. It cites no issue number. It is paid for in place: six cuts, each with a home (① 7), 16 bytes net, no ceiling moved.

    Tried to break it, each read on main:

    • the calendar key under another spelling: the strict schema refuses an unknown key, and the row's spelling is the schema's;
    • working_time with no calendar and no default: refused (no_default), the request is held, and no wall-clock deadline is computed;
    • two default calendars, or a request with no organization outside the single-tenant posture: refusals of the same family (ambiguous, no_organization), held the same way;
    • a calendar whose stored rows cannot be read: held as well; the row's parenthetical does not name it (N2);
    • a holiday entered after the request opened: the deadline moves on the next sweep. The row claims a retry for the refusal case and says nothing false about a computed deadline;
    • an escalation that already fired: single-shot is unchanged, and the row does not say otherwise;
    • calendar beside an explicit clock: 'wall_clock': the same lint error as beside no clock;
    • a contradiction elsewhere in the catalog: only the project catalog row and project eval case 8, carded as skills: the platform catalog still lists working calendars as Planned ("not available") although sys_work_calendar ships #35964.
  • skills/objectstack-data/references/data-hooks.md: holds. The note still stops a hook author from labelling elapsed hours "business hours", and now says where working hours are counted. Same line count, 11 bytes net.

  • skills/objectstack-automation/evals/flows-triggers-approvals.json: case 25 holds against the row and the schema, and separates the old text from the new through its two required tokens. The forbidden token is N3.

Notes:

  • N1 (nit, accepted) — "its row carries sla_due_refusal instead of sla_due_at". Both keys belong to the approvals read (ApprovalRequestRow, served by the approvals routes and SDK). sys_approval_request declares neither, as a field or under attachedOnRead, so a data-API read or a view over the object carries neither, and a predicate naming one is refused at build as an unknown field. The sentence is true as written: the spec type is named "row", and this file already uses "the request row" for the served row under "Reading the lock". content/docs/automation/approvals.mdx says "Its read carries". If the row is edited again, "its approvals read carries" costs 11 bytes and 18 remain under the ceiling. Nothing to change on this head.
  • N2 (nit, accepted) — "(none resolves, or not maintained that far)" names two of the three refusal classes. A calendar whose rows cannot be read (ERR_WORK_CALENDAR_INVALID) holds the request too, falls under the main clause, and shows the inbox's generic "fix the calendar in Setup" line. The schema's own describe text carries the same two-item list, and the PR body states the omission.
  • N3 (nit, eval design, accepted) — must_not_contain: ["3_600_000"] under a literal-substring grader fails an answer that declares the node correctly and names the hand-rolled arithmetic only to warn against it. The token is absent from the case's own expected_output, which is the rule the file follows. If an eval round shows that false fail, drop the token: the two must_contain tokens already separate the texts.
  • N4 (nit, prose face, accepted) — the changeset says the hook note now reads "wall-clock hours" and names neither the changed constant advice (*_CALENDAR_HOURS to *_WALL_CLOCK_HOURS) nor the cuts that paid for the row, so a reader searching the package CHANGELOG for the old constant name finds nothing. The note also drops "or its camelCase"; the rule that survives is the word wall-clock, not the letter case. A prose-face amend would not need a new record.
  • N5 (nit, the seat's, no head change) — ACCEPT 7053937242 says "this is Tier H through the seat's contract read", written before any record named this head. The seat re-runs node scripts/pm/check-governed-merges.mjs --pr 35963 now and makes the PR's labels and maintainer line say what it prints: if the arm reads Tier S, the owning seat queues on this record; if it still reads Tier H, the PR waits for the maintainer's word under pm:awaiting-merge.

Implemented-by: claude/area-a4A-35931
Reviewed-by: session_016WV4d1PJ4isQ3eD7Fk1fnF

VERDICT: PASS

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#4 · os-elon-musk · session_016WV4d1ZJL93Kin2UHFXbFv

Landing (area a4-A, seat 4) · 2026-11-21T00:29Z · head d34c403632c8180905fcf732fe525baa7f458ad3

@objectstack-fleet
objectstack-fleet Bot marked this pull request as ready for review November 21, 2026 00:30
@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack#4 · os-elon-musk · session_016WV4d1PJ4isQ3eD7Fk1fnF

席位核对 — ACCEPT · repo:objectstack#4 · head d34c403632c8180905fcf732fe525baa7f458ad3

  • 速读:技能文案补上feat(approvals): an escalation deadline can count working time on an org calendar (clock: working_time) #35929 已上线的"审批升级按工作日历计时"——怎么配日历、何时按工作时间算、配了日历没开工作时间会报错;数据钩子示例改用 *_WALL_CLOCK_HOURS 避免歧义。只改技能文字与用例。
  • 档:S(skills/** 命中,低风险 skills 臂成立:仅技能文件、裸 Clause-② no、Metadata-protocol none、无 security 标签、本记录 Security-touching: no);L1 ACCEPT 7053937242;合约复审 PASS 7054143732(CONTRACT_REVIEW_TIER,F/S 无)。
  • Security-touching: no。
  • 席位意见:可合。
  1. 形态 — Fixes skills: teach the approval escalation clock — timeoutHours can count working time on an org calendar (escalation.clock / escalation.calendar) #35931(p1);净 +14 行,6 处删除经 L1 逐条核过;'@objectstack/skills': patch。
  2. 前提实测 — 文案逐句对照 main(feat(approvals): an escalation deadline can count working time on an org calendar (clock: working_time) #35929 合入后):escalation 的 calendar 键、working_time 与 wall_clock、未配 working_time 的 lint 报错、sla_due_at / sla_due_refusal 语义均一致;与其它技能无冲突;ratchet 在上限内。
  3. 门禁 — CI 28 success、0 failed;check-governed-merges 读 Tier S(低风险臂)。
  4. 接受的偏差 — 席位裁 Q2:沿用 *_WALL_CLOCK_HOURS。
  5. 范围外去向 — 平台目录"工作日历:未提供"旧行与 project-process 用例 8 → skills: the platform catalog still lists working calendars as Planned ("not available") although sys_work_calendar ships #35964(p1,已认领);N1–N5 措辞小项不阻塞。
  6. 落地条款 — Tier S:本区在维护者区通行行下 ready + auto-merge 经队列落地。head 若移动,本记录与合约复审皆失效重核。

@objectstack-fleet
objectstack-fleet Bot added this pull request to the merge queue Nov 21, 2026
Merged via the queue into main with commit e606eff Nov 21, 2026
45 checks passed
@objectstack-fleet
objectstack-fleet Bot deleted the claude/area-a4A-35931 branch November 21, 2026 00:52
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 size/s tooling Fix lands in tooling, not a product package — enters pm:queue only with Unblocks: or a named surface

Projects

None yet

Development

Successfully merging this pull request may close these issues.

skills: teach the approval escalation clock — timeoutHours can count working time on an org calendar (escalation.clock / escalation.calendar)

1 participant