You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
approvals: a working-time deadline that fails to compute (not a calendar refusal) fails the request open after the row is written and the approvers are told, and fails the whole inbox list #35953
area:workflowApprovals and automation — the work that runs without a person driving itbugSomething isn't workingdomain:serverDomain lane — seat card indexed by label:pm:seatpriority:p1High: required for production / M2
Filing gate: L1 notes N1/N2 on PR #35929 (verdict 7052291078) and the seat's ask after its contract PASS 7052603635. ⛔ Not a claim.
What (after #35929).ApprovalService.slaDeadline turns a calendar refusal (isWorkCalendarRefusal) into sla_due_refusal and rethrows every other error. projectWorkingTimeDue runs it per row with no per-row guard:
Open (N1).openNodeRequest calls projectWorkingTimeDue([row], [opened]) as its last step, after the sys_approval_request row is inserted and approval.requested has gone to every approver. If the calendar read then throws a non-refusal error (for example, a driver error reading sys_work_calendar), the open throws. The approval node's catch answers the run success: false, so the flow run fails while a pending request it owns exists and its approvers have been notified. The dead-run sweep later recalls it, but until then an approver can act on a request whose run has already failed. Reachable only on a working_time escalation and only when the calendar read itself errors.
Lists. The same throw fails the whole list read (listRequests) and getRequest for every row on the page, not only the row whose deadline failed.
Cost (N2). A refused row costs one calendar read per row per read and per sweep, because refusals are never cached. That is correct by ADR-0157 D9 (retry), but a page of rows on one missing calendar repeats the same read.
Ask.
Never let the deadline projection fail a write that has already happened. In openNodeRequest, compute the deadline guarded: on a non-refusal error, log it, serve the row with no deadline (or a calendar_error refusal code if the served shape admits one under contract review), and return the opened request.
Guard per row in projectWorkingTimeDue, so one bad row leaves the rest of the list intact.
Optional: memoise the refusal within one read or one sweep pass (never across passes, so D9's retry stands).
Pins: a calendar service that throws a non-refusal error → the open returns the request, the row exists, the run is not failed; a list with one such row → the others still carry their deadlines; the sweep → it skips that row and retries next pass (ADR-0042 §1 single shot unchanged).
Blocked-by: #35929.
Suggested-grade: p1 · N1 can leave a request opened and notified under a failed run (the seat's line: a half-opened request in production use is p1). Narrow: only working_time escalations, and only when the calendar read itself errors. Fix size is small.
Related: #35357, ADR-0157 D9/D12.
Dedupe: projectWorkingTimeDue, sla_due_refusal (0 open hits; searched before filing).
Claim: PM loop round 8 · area a4-W · p1 (seat-graded p1 from L1 N1 on PR #35929; dispatch rule p1 only, maintainer 2026-11-20T16:55Z): a working-time deadline that fails to compute must not fail the request open after it is written, nor fail the whole list · 2026-11-20T23:43Z
Session: session_016WV4czKnDE6hsyXQzB9wB2
Account: os-elon-musk
Branch: claude/area-a4W-35953
Worktree: objectstack-issue-35953
Domain: domain:server
Area: a4-W
Seat: repo:objectstack#4
File surface: packages/plugins/plugin-approvals/src/approval-service.ts (slaDeadline, projectWorkingTimeDue and their call sites in openNodeRequest, the list read and getRequest) plus its tests and a changeset. Scope as the seat set it: the half-opened request and the list read. The per-pass refusal memo is in only if it comes for free. No served-shape change unless the contract read rules one in. Stop on breach.
Container & model: S, mode:subagent, model: TIER_DEFAULT, effort: high
Clause-②: no
Metadata-protocol: none
Responsibility: defect introduced by #35929 (merged e6fa510).
Pre-claim deps: #35929 merged; the blocker is clear.
Prior rulings read: ADR-0157 D2 (never a silent wrong clock) and D9 (retry); ADR-0042 §1 (single shot); the seat's scope note (2026-11-20T22:57Z).
Premise: holds on main. openNodeRequest ends with await this.projectWorkingTimeDue([row], [opened]) after the insert and the notices, and slaDeadline rethrows any error that is not a refusal. The dev re-measures with a throwing calendar double first.
Serial constraints cleared: file-disjoint from #34730 step 3 (ui only). Run overlap-check before push.
Triage: pm:dispatched to seat 4 (as set); rationale: area:workflow · Bug · after #35929, a working-time deadline that fails to compute for a reason other than a calendar refusal (e.g. a driver error reading sys_work_calendar) throws after the request row is written and approvers are notified, failing the flow run while a pending request it owns exists, and fails the whole inbox list; found by the L1 of PR #35929 → p1 as filed (a half-applied approval plus an inbox outage for every working-time org on any calendar read error) · size S (a per-row guard on both paths, plus pins).
{
"issue": 35953,
"status": "done",
"branch": "claude/area-a4W-35953",
"pr": "https://github.com/objectstack-ai/objectstack/pull/35969",
"pr_number": 35969,
"head_sha": "dd312c3b9568958f53cb7ac364cf38de75a0cfc4",
"net_added_lines": "143 (+145 / -2, 3 files: approval-service.ts +19/-2, the test file +116, the changeset +10), under the soft size of 250",
"session": "session_016WV4czKnDE6hsyXQzB9wB2",
"premise_still_valid": true,
"summary": "Premise re-measured on origin/main 7de1bad5cb with a calendar double that throws a plain Error: openNodeRequest throws after the insert and notices, the approval node answers the run failed, listRequests and getRequest/listActions throw. Fix: projectWorkingTimeDue guards each row; a non-refusal error from slaDeadline is logged at warn (request id + error) and that row is served with no deadline, so the open returns the request it wrote, the run suspends, and the other rows of a list keep their deadlines. One guard, not two: every openNodeRequest/list/loadRequest path goes through projectWorkingTimeDue, so a second guard in openNodeRequest would be dead code that no ablation could turn red. Refusals still serve sla_due_refusal, no new refusal code, served shape unchanged, no wall-clock fallback (ADR-0157 D2); the sweep keeps its own per-row try, skips the row and retries next pass, single shot unchanged. The per-pass refusal memo is NOT done: it needs a cross-row key and a scope decision, so it was not free.",
"tests": "New top-level describe (4 tests) in packages/plugins/plugin-approvals/src/approval-service-sla-calendar-clock.test.ts. Red on main = the guard ablated once: approval-service.ts restored on disk from 7de1bad5cb under an EXIT/INT/TERM trap (disk hash f1d462d986 == main blob, guard-text grep count 0; subject imported by relative src path, so no dist rebuild between mutation and run) -> 'Tests 4 failed | 12 passed (16)': open throws 'sys_work_calendar read failed: connection reset'; node 'expected failed to be paused'; list throws; sweep test red only at listActions(bad) (the read seam) while its runEscalations assertions passed on main (preservation). Restored with git checkout HEAD -- path; git diff HEAD and git status --porcelain empty. Green on the fix: 'Tests 16 passed (16)'. Final head dd312c3b95: pnpm --filter @objectstack/plugin-approvals test -> 'Test Files 126 passed (126) / Tests 1803 passed (1803)' (lock VERDICT command-exit 0); typecheck exit 0, 'check:test-typecheck: OK'.",
"gates": "Local at dd312c3b95: dispatch-gates --commands --repo objectstack-ai/objectstack -> 72 commands; each run with exit captured before any pipe: 70 exit 0; pnpm check:dual-build-cjs-loads exit 3 and pnpm check:i18n exit 3 (PREREQUISITE NOT MET: whole-workspace dist / built CLI closure) = NOT MEASURED locally, CI runs both in Lint & Repo Gates. --ran reconciliation: '72 derived famil(ies) accounted for — 70 run, 2 NOT-MEASURED (2 DERIVED from a recorded exit 3)', exit 0. overlap-check --branch=claude/area-a4W-35953: 'VERDICT clean exit 0', merges cleanly into origin/main. Control-byte scan of the 3 files: no hits. CI check-runs on PR 35969: in_progress at report time (not waited on, per os-dev). test:repo is CI's (diff touches no repo-project test).",
"dogfood_battery": "n/a — no `!` in the PR title and no (narrowing) arm",
"mcp_calls": "0",
"api_writes": "2 — fleet-write relay repository_dispatch carrying pr_create (POST /repos/objectstack-ai/objectstack/pulls, created #35969 draft, read-back identical 7314 bytes); os-dev-report issue comment via post-stamped.mjs (POST /repos/objectstack-ai/objectstack/issues/35953/comments). git push is not counted. One REST read: GET pulls/35969 (draft true, head dd312c3b95).",
"deviations": "1) One guard instead of an openNodeRequest guard plus a per-row guard (reason in summary); ablated once, it reds the open, node, list and read pins together. 2) Commit trailers use the model-free pair from AGENTS.md (Co-authored-by: Claude) instead of the harness reminder's model-named Co-Authored-By; the pre-push hook refuses a model identifier. 3) One quick `npx tsc --noEmit -p tsconfig.test.json` in plugin-approvals ran outside the verify lock to read a single type error; the authoritative typecheck re-ran under the lock. 4) Two gate families NOT MEASURED locally (prerequisite builds), declared above.",
"open_questions": [],
"security_findings": "none",
"out_of_scope_findings": [
"carrier: the seat on #35953 (contract read on a `calendar_error` refusal code, already named in the card's Ask 1) · an erroring row is served with neither sla_due_at nor sla_due_refusal, so a reader cannot tell it from a node with no SLA; noted in the PR's Acceptance notes, not filed"
]
}
area:workflowApprovals and automation — the work that runs without a person driving itbugSomething isn't workingdomain:serverDomain lane — seat card indexed by label:pm:seatpriority:p1High: required for production / M2
Activity
objectstack-fleet commentedon Nov 20, 2026
repo:objectstack#4 · os-elon-musk · session_016WV4czKnDE6hsyXQzB9wB2
Claim: PM loop round 8 · area a4-W · p1 (seat-graded p1 from L1 N1 on PR #35929; dispatch rule p1 only, maintainer 2026-11-20T16:55Z): a working-time deadline that fails to compute must not fail the request open after it is written, nor fail the whole list · 2026-11-20T23:43Z
Session:
session_016WV4czKnDE6hsyXQzB9wB2Account:
os-elon-muskBranch:
claude/area-a4W-35953Worktree:
objectstack-issue-35953Domain:
domain:serverArea: a4-W
Seat: repo:objectstack#4
File surface:
packages/plugins/plugin-approvals/src/approval-service.ts(slaDeadline,projectWorkingTimeDueand their call sites inopenNodeRequest, the list read andgetRequest) plus its tests and a changeset. Scope as the seat set it: the half-opened request and the list read. The per-pass refusal memo is in only if it comes for free. No served-shape change unless the contract read rules one in. Stop on breach.Container & model: S,
mode:subagent, model: TIER_DEFAULT, effort: highClause-②: no
Metadata-protocol: none
Responsibility: defect introduced by #35929 (merged e6fa510).
Pre-claim deps: #35929 merged; the blocker is clear.
Prior rulings read: ADR-0157 D2 (never a silent wrong clock) and D9 (retry); ADR-0042 §1 (single shot); the seat's scope note (2026-11-20T22:57Z).
Premise: holds on main.
openNodeRequestends withawait this.projectWorkingTimeDue([row], [opened])after the insert and the notices, andslaDeadlinerethrows any error that is not a refusal. The dev re-measures with a throwing calendar double first.Serial constraints cleared: file-disjoint from #34730 step 3 (ui only). Run overlap-check before push.
objectstack-fleet commentedon Nov 20, 2026
triage#1 · hotlong · session_01Q4EjjMnyLqJdzuktEmRPXH
Triage:
pm:dispatchedto seat 4 (as set); rationale: area:workflow · Bug · after #35929, a working-time deadline that fails to compute for a reason other than a calendar refusal (e.g. a driver error readingsys_work_calendar) throws after the request row is written and approvers are notified, failing the flow run while a pending request it owns exists, and fails the whole inbox list; found by the L1 of PR #35929 → p1 as filed (a half-applied approval plus an inbox outage for every working-time org on any calendar read error) · size S (a per-row guard on both paths, plus pins).objectstack-fleet commentedon Nov 21, 2026
repo:objectstack#4 · os-elon-musk · session_016WV4czKnDE6hsyXQzB9wB2
os-dev-report
{ "issue": 35953, "status": "done", "branch": "claude/area-a4W-35953", "pr": "https://github.com/objectstack-ai/objectstack/pull/35969", "pr_number": 35969, "head_sha": "dd312c3b9568958f53cb7ac364cf38de75a0cfc4", "net_added_lines": "143 (+145 / -2, 3 files: approval-service.ts +19/-2, the test file +116, the changeset +10), under the soft size of 250", "session": "session_016WV4czKnDE6hsyXQzB9wB2", "premise_still_valid": true, "summary": "Premise re-measured on origin/main 7de1bad5cb with a calendar double that throws a plain Error: openNodeRequest throws after the insert and notices, the approval node answers the run failed, listRequests and getRequest/listActions throw. Fix: projectWorkingTimeDue guards each row; a non-refusal error from slaDeadline is logged at warn (request id + error) and that row is served with no deadline, so the open returns the request it wrote, the run suspends, and the other rows of a list keep their deadlines. One guard, not two: every openNodeRequest/list/loadRequest path goes through projectWorkingTimeDue, so a second guard in openNodeRequest would be dead code that no ablation could turn red. Refusals still serve sla_due_refusal, no new refusal code, served shape unchanged, no wall-clock fallback (ADR-0157 D2); the sweep keeps its own per-row try, skips the row and retries next pass, single shot unchanged. The per-pass refusal memo is NOT done: it needs a cross-row key and a scope decision, so it was not free.", "tests": "New top-level describe (4 tests) in packages/plugins/plugin-approvals/src/approval-service-sla-calendar-clock.test.ts. Red on main = the guard ablated once: approval-service.ts restored on disk from 7de1bad5cb under an EXIT/INT/TERM trap (disk hash f1d462d986 == main blob, guard-text grep count 0; subject imported by relative src path, so no dist rebuild between mutation and run) -> 'Tests 4 failed | 12 passed (16)': open throws 'sys_work_calendar read failed: connection reset'; node 'expected failed to be paused'; list throws; sweep test red only at listActions(bad) (the read seam) while its runEscalations assertions passed on main (preservation). Restored with git checkout HEAD -- path; git diff HEAD and git status --porcelain empty. Green on the fix: 'Tests 16 passed (16)'. Final head dd312c3b95: pnpm --filter @objectstack/plugin-approvals test -> 'Test Files 126 passed (126) / Tests 1803 passed (1803)' (lock VERDICT command-exit 0); typecheck exit 0, 'check:test-typecheck: OK'.", "gates": "Local at dd312c3b95: dispatch-gates --commands --repo objectstack-ai/objectstack -> 72 commands; each run with exit captured before any pipe: 70 exit 0; pnpm check:dual-build-cjs-loads exit 3 and pnpm check:i18n exit 3 (PREREQUISITE NOT MET: whole-workspace dist / built CLI closure) = NOT MEASURED locally, CI runs both in Lint & Repo Gates. --ran reconciliation: '72 derived famil(ies) accounted for — 70 run, 2 NOT-MEASURED (2 DERIVED from a recorded exit 3)', exit 0. overlap-check --branch=claude/area-a4W-35953: 'VERDICT clean exit 0', merges cleanly into origin/main. Control-byte scan of the 3 files: no hits. CI check-runs on PR 35969: in_progress at report time (not waited on, per os-dev). test:repo is CI's (diff touches no repo-project test).", "dogfood_battery": "n/a — no `!` in the PR title and no (narrowing) arm", "mcp_calls": "0", "api_writes": "2 — fleet-write relay repository_dispatch carrying pr_create (POST /repos/objectstack-ai/objectstack/pulls, created #35969 draft, read-back identical 7314 bytes); os-dev-report issue comment via post-stamped.mjs (POST /repos/objectstack-ai/objectstack/issues/35953/comments). git push is not counted. One REST read: GET pulls/35969 (draft true, head dd312c3b95).", "deviations": "1) One guard instead of an openNodeRequest guard plus a per-row guard (reason in summary); ablated once, it reds the open, node, list and read pins together. 2) Commit trailers use the model-free pair from AGENTS.md (Co-authored-by: Claude) instead of the harness reminder's model-named Co-Authored-By; the pre-push hook refuses a model identifier. 3) One quick `npx tsc --noEmit -p tsconfig.test.json` in plugin-approvals ran outside the verify lock to read a single type error; the authoritative typecheck re-ran under the lock. 4) Two gate families NOT MEASURED locally (prerequisite builds), declared above.", "open_questions": [], "security_findings": "none", "out_of_scope_findings": [ "carrier: the seat on #35953 (contract read on a `calendar_error` refusal code, already named in the card's Ask 1) · an erroring row is served with neither sla_due_at nor sla_due_refusal, so a reader cannot tell it from a node with no SLA; noted in the PR's Acceptance notes, not filed" ] }