Skip to content

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

Closed

Description

@objectstack-fleet

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

Part of #35357

Filing gate: the Skills-docs: follow-up owed line of PR #35929 (Fixes #35357). Under references/lanes/skills.md, skills/** does not ride a product-lane PR. ⛔ Not a claim.

What. After #35929, an approval node's escalation takes clock: 'wall_clock' | 'working_time' (default wall_clock) and an optional calendar (a working-calendar code). With working_time, timeoutHours counts working hours on the calendar: the explicit code, else the organization's default, else refused (ADR-0157). A calendar that cannot answer holds the escalation and shows the reason where the due time is displayed. Setting calendar without clock: 'working_time' is a lint error. skills/objectstack-automation/references/state-machines-and-approvals.md:350 still says "timeoutHours is calendar (wall-clock) hours … the platform ships no business-hours calendar", which is false after #35929.

Ask. Rewrite that row so it states both clocks, the calendar resolution order, the cannot-answer behaviour and the lint rule, paid for in place inside the file's token ceiling (check-skills-token-ratchet.mjs). Also check two places for sentences that become false once working calendars ship (#35355 and #35929): skills/objectstack-data/references/data-hooks.md:348-350 (hand-rolled "calendar hours" deadlines) and the skills/objectstack-project/evals/project-process.json:125-126 eval, which says working calendars are "Planned … not available". Changeset: '@objectstack/skills': patch only. Decide whether an eval is owed per the skills lane.

Blocked-by: #35929.
Suggested-grade: p1 · a sub-card of p1 #35357, so the teaching ships with the key.
Dedupe: escalation clock and working_time skills (searched before filing; no open card).

Activity

  1. added
    enhancement
    priority:p1
    pm:blocked
    domain:skills
    area:workflow
    on Nov 20, 2026
  2. objectstack-fleet commented on Nov 20, 2026

    @objectstack-fleet
    ContributorAuthor

    triage#1 · hotlong · session_01Q4EjjMnyLqJdzuktEmRPXH

    Triage: lands in domain:skills · pm:blocked (Blocked-by #35929); rationale: area:workflow · Bug · after #35929 an approval escalation can count working time on an org calendar (escalation.clock, escalation.calendar), and the skills do not teach it; a missing landed rule in shipped skills is a Bug → p1 as filed (the grade of #35357, which it is part of) · size S.

  3. objectstack-fleet commented on Nov 20, 2026

    @objectstack-fleet
    ContributorAuthor

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

    Unblocked 2026-11-20T23:42Z: blocker #35929 merged (e6fa510d74), and #35357 is closed. escalation.clock / escalation.calendar and the inbox's 「日历算不出」 reason are now on main, so the row at skills/objectstack-automation/references/state-machines-and-approvals.md:350 is false as written. pm:blocked → pm:queue for the skills lane (a4-A).

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

    @objectstack-fleet
    ContributorAuthor

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

    Claim: area a4-A · 2026-11-20T23:45Z · routed by seat 4 at 2026-11-20 23:44Z, under the maintainer's 16:55Z p1-only rule. The card was unblocked by 7053406964 after #35929 merged at e6fa510d74.

  6. added
    pm:dispatched
    and removed
    pm:queue
    on Nov 20, 2026
  7. objectstack-fleet commented on Nov 21, 2026

    @objectstack-fleet
    ContributorAuthor

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

    {
      "issue": 35931,
      "status": "done",
      "branch": "claude/area-a4A-35931",
      "pr": "https://github.com/objectstack-ai/objectstack/pull/35963",
      "pr_number": 35963,
      "head_sha": "d34c403632c8180905fcf732fe525baa7f458ad3",
      "net_added_lines": "14 (33 added, 19 deleted over 4 files, changeset included; budget 25)",
      "token_ratchet": {
        "skills/objectstack-automation/references/state-machines-and-approvals.md": "5928 -> 5932 tokens, ceiling 5936 (headroom 4); 23710 -> 23726 bytes; 389 -> 385 lines; ceiling row untouched",
        "skills/objectstack-data/references/data-hooks.md": "10117 -> 10120 tokens, ceiling 10122 (headroom 2); 40467 -> 40478 bytes; 884 -> 884 lines; ceiling row untouched",
        "skills/objectstack-automation/evals/flows-triggers-approvals.json": "6730 -> 7078 tokens; eval fixture, measured, not ratcheted",
        "catalog": "authored 197404 -> 197411 of 202541; shipped tree 288105 -> 288460"
      },
      "session": "session_016WV4d1ZJL93Kin2UHFXbFv",
      "premise_still_valid": true,
      "summary": "Premise re-measured on origin/main 7de1bad5cb (e6fa510d74 is an ancestor, exit 0): the escalation row still said timeoutHours is calendar (wall-clock) hours and that the platform ships no business-hours calendar, which the merged ApprovalEscalationSchema (clock, calendar), ApprovalService.slaDeadline, the lint rule approval-escalation-calendar-without-working-time and the inbox refusal label contradict. The row is rewritten in place (both clocks and the default, working hours under working_time, code -> organization default -> refused, the hold with sla_due_refusal and the inbox reason, the lint rule), paid for by five deletions in the same file, no ceiling row touched. data-hooks.md now says wall-clock hours, advises *_WALL_CLOCK_HOURS and points at escalation.clock: 'working_time'. One eval case (id 25) was added to the automation bundle; project-process eval case 8 and the generated platform catalog were left alone and reported, because the catalog still lists working calendars as Planned / not available and the eval is graded against that page. The card's assignee was not written. Conflicts between the order frame and os-dev.md, resolved toward the frame and named here: the PR body opens with the frame's attribution comment line (os-dev.md bans dev-written HTML comments), its section order is the frame's (Evals / Verification / Acceptance notes), the changeset and PR carry no Skills-docs line, and the commit trailer is the model-free pair the frame and AGENTS.md give, not the harness reminder's.",
      "tests": "No package diff, so no build leg and no package test is owed; prose, one eval fixture and a changeset. Head d34c403632. node scripts/check-skills-token-ratchet.mjs exit 0: 'state-machines-and-approvals.md is 5932 tokens (ceiling 5936; headroom 4)', 'data-hooks.md is 10120 tokens (ceiling 10122; headroom 2)', '60 authored bundle file(s) within their ceilings'. The eval JSON parses. The skill-evals runner tests in packages/qa/scenarios use synthetic catalogs and do not read this fixture, so they were not run; ui's check:skill-eval-tokens scans ui/skills only (exit 0, 1 bundle) and does not read the root catalog. No ablation: no tested behaviour changed.",
      "gates": "dispatch-gates --commands on d34c403632 derived 49 commands; --ran reconciliation: 45 run, 4 UNRUN (the tool exits 1 on that). All 45 exited 0, exit codes captured per command before any pipe, among them check-skills-token-ratchet (+ --self-test), spec check:skill-refs ('10 generated files in sync with packages/spec'), spec check:skill-served-sections, check:skill-identifier-liveness ('OK - Leg 1: 545 citation(s) over 75 published file(s)'), check:skill-links, check:skill-compatibility, check:skill-frame-sync, check:doc-authoring, check:nul-bytes, check:pm-governed-merges, check-empty-changeset, check-changeset-no-major, check-adr-0087-registration, and lint check:doc-formula-expressions (first run exit 3 PREREQUISITE NOT MET; rerun after building the '@objectstack/lint...' closure under the lock: 'VERDICT command-exit 0, held the lock 89s'). NOT MEASURED, reason: each exits 3 asking for a full pnpm build and reads built package output this diff does not change, left to CI: check:dts-closure, check:dual-build-cjs-loads, check:lean-entry-closure, check:sourcemap-no-sources-content. overlap-check --branch=claude/area-a4A-35931: 'VERDICT clean exit 0' (0 PR heads). CI check-runs on PR 35963: in_progress at report time, not read.",
      "dogfood_battery": "n/a - no `!` in the PR title and no (narrowing) arm",
      "mcp_calls": "0",
      "api_writes": "2 - relay pr_create (repository_dispatch fw-20261121T000205Z-7ae175, run 44841051820, read-back 7304 bytes sent, 7304 stored, draft true, no labels, no assignees); post-stamped comment on issue 35931 (this report). Plus git push x2 (empty branch, then d34c403632). Reads: gh api single-card reads of issue 35931, its comments and pull 35963.",
      "open_questions": [
        {
          "question": "The generated platform catalog still lists working calendars under Planned as not available, and project-process eval case 8 expects that answer. sys_work_calendar and sys_work_calendar_exception are shipped (registry and Setup) and the approval clock reads them; the three formula functions of ADR-0157 D4 are not in the formula stdlib on this head. Should the catalog row move now, and what should eval case 8 expect?",
          "options": [
            "A: a separate domain:skills card edits PLANNED_ROWS and the object rows in packages/spec/scripts/lib/platform-catalog.ts, regenerates the page and rewrites eval case 8 in the same PR (small; the generator has its own test and hand-written byte ceiling)",
            "B: fold it into the card that ships the formula functions, so the row moves when the whole capability is usable from a formula (zero work now; the published page stays wrong about the objects until then)"
          ],
          "recommendation": "A, because the page tells an author nothing can be declared or installed while the objects are already in Setup, and an app following it builds a duplicate calendar object today; the row can say the formula surface is still planned."
        },
        {
          "question": "data-hooks.md now advises *_WALL_CLOCK_HOURS instead of *_CALENDAR_HOURS for a hook-stamped hours constant. Keep the rename?",
          "options": [
            "A: keep (matches the wall_clock value name the spec chose; apps that followed the old advice have an ambiguous but working name)",
            "B: revert the name and keep only the wall-clock wording and the pointer"
          ],
          "recommendation": "A, because the merged spec comment declines \"calendar hours\" as a name for exactly this ambiguity."
        }
      ],
      "security_findings": "none",
      "out_of_scope_findings": [
        "class: b · reach: named producer - the published page skills/objectstack-project/references/platform-catalog.md (generated by pnpm --filter @objectstack/spec gen:skill-refs from PLANNED_ROWS) states 'Working calendars ... not available' under 'Each row is not available: nothing below can be declared or installed', while sys_work_calendar and sys_work_calendar_exception are in PLATFORM_PROVIDED_OBJECT_NAMES and in the Setup navigation on 7de1bad5cb · contract text: 'The PR that ships a row moves it into the tables above' (the page) and 'the shipping PR moves it into the main table' (PLANNED_ROWS doc comment) · Seam: spec:PLANNED_ROWS (packages/spec/scripts/lib/platform-catalog.ts) -> renderer: skills/objectstack-project/references/platform-catalog.md; consumer also skills/objectstack-project/evals/project-process.json case 8 · standalone domain:skills card, back-linked to this one · dedupe words: platform-catalog working calendars planned, PLANNED_ROWS, sys_work_calendar catalog row, project-process eval business hours"
      ]
    }
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

area:workflowdomain:skillsenhancementpm:dispatchedpriority:p1

Type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions