Repository navigation
docs(skills): teach the approval escalation clock (escalation.clock, escalation.calendar) - #35963
Conversation
…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
|
repo:objectstack#4 · os-elon-musk · session_016WV4cwxJaQdC11ABGtTez8 L1 verdict (L1-a): ACCEPT at head Gates on this head: The new
Eval case 25: the ids run to 25 and are unique, and the file is valid JSON. Both a4-A's question 1: are the deletions safe? Yes, all six:
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 Scope and form: four files, all inside the card's Ask. The changeset is Generated by Claude Code |
|
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:
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. |
|
repo:objectstack#4 · os-elon-musk · session_016WV4d1PJ4isQ3eD7Fk1fnF Served-tier: Contract review — PASS at d34c403Head-sha: Isolated, read-only sub-agent record, written 2026-11-21T00:28Z. Face: governed rule text ( F: none. S: none. No must-fix, no should-fix. N1 to N5 are nits, and none of them moves the head. ① Derived judgments
② Semver levelOne changeset, ③ Boundary flags
④ Design judgment
Notes:
Implemented-by: VERDICT: PASS |
|
repo:objectstack#4 · os-elon-musk · session_016WV4d1ZJL93Kin2UHFXbFv Landing (area a4-A, seat 4) · 2026-11-21T00:29Z · head
|
|
repo:objectstack#4 · os-elon-musk · session_016WV4d1PJ4isQ3eD7Fk1fnF 席位核对 — ACCEPT · repo:objectstack#4 · head
|
Requested by Elon · project thread
Fixes #35931
Clause-②: no
Metadata-protocol: none
维护者速读
What changes
skills/objectstack-automation/references/state-machines-and-approvals.md, theescalationrow of the node-config table, rewritten in place from the merged contract (ApprovalEscalationSchemainpackages/spec/src/automation/approval.zod.ts,slaDeadlineinpackages/plugins/plugin-approvals/src/approval-service.ts, the lint inpackages/lint/src/validate-approval-approvers.ts, the inbox label inui/apps/console/src/pages/system/ApprovalsInboxPage.tsx). It now states:clock: 'wall_clock'(default) counts nights, weekends and holidays;'working_time'countstimeoutHoursas working hours on a working calendar (sys_work_calendar, maintained per organization in Setup);calendarcode, else the organization's default, else refused, never wall-clock;sla_due_refusalinstead ofsla_due_at, the inbox shows why, and each sweep retries;calendarwithoutclock: 'working_time'is the errorapproval-escalation-calendar-without-working-time.recordand bare field names are NOT available" (the fix,current.xortrigger.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 thesys_user_positionparenthetical onescalateTo, which the Approver Types table'spositionrow 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 atescalation.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 calendarcn_plant. It requiresclock: 'working_time'andcalendar: 'cn_plant'and refuses a hand-rolled3_600_000deadline. 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.jsoncase 8 is unchanged; see Acceptance notes.Verification
Head
d34c403632. Read first: theescalationrow (the one hunk that teaches new behaviour), then the five deletions in the same file. Two-minute check:node scripts/check-skills-token-ratchet.mjsprintsstate-machines-and-approvals.md is 5932 tokens (ceiling 5936; headroom 4)anddata-hooks.md is 10120 tokens (ceiling 10122; headroom 2)and exits 0.Readings, before to after:
state-machines-and-approvals.mddata-hooks.mdflows-triggers-approvals.json(eval, not ratcheted)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.mdfiles 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 --commandslist derived 49 commands; 45 exited 0, among themcheck-skills-token-ratchetand 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-registrationandcheck: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
skills/objectstack-project/references/platform-catalog.mdstill lists working calendars under "Planned: carded, not shipped" as "not available", and project eval case 8 expects exactly that answer. The page is generated fromPLANNED_ROWSinpackages/spec/scripts/lib/platform-catalog.ts;sys_work_calendarandsys_work_calendar_exceptionare 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.mdrenames the advised constant from*_CALENDAR_HOURSto*_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.sla_due_refusalandsla_due_atas fields of the request row; the three refusal codes are not listed, to stay inside the ceiling.🤖 Generated with Claude Code