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: when an approval step resolves to nobody (excludeSubmitter removes the only candidate), the request sits pending silently and the submitter is never told; the refusal text misleads a one-person organization #35316
area:workflowApprovals and automation — the work that runs without a person driving itdomain:serverDomain lane — seat card indexed by label:pm:seatpm:dispatchedDispatched to a dev agent by /pm-dispatchpriority:p2Medium: important, M3
Filing gate ①: a user-visible defect, reproduced on staging.
Business reason. In a one-person organization (the common Free-plan case) a submitted timesheet, expense report or travel request can never be decided. The submitter sees only "Submitted", nobody is notified, and nothing says what to do. If the owner tries to approve, the 403 says that another approver on the step decides it, but no other person exists. The maintainer's direction is that the org adds a member with the approving role (objectstack-ai/hotcrm#2654), so the platform has to tell the submitter that.
Reach.objectstack-ai/hotcrm#2654 on staging os-6hf1jq, HotCRM 6.5.0. timesheet_approval paused at approver_review (excludeSubmitter: true, onEmptyApprovers: admin_rescue); sys_approval_request pending with pending_approvers empty. The owner's POST …/approve returns 403 "…cannot approve it. Another approver on the step decides it". Source: packages/plugins/plugin-approvals/src/approval-service.ts ~5245–5265 and ~5727–5760.
Expected: when a step resolves to no eligible approver, the submitter learns it at submit time (or the request shows it): "No one can approve this yet; invite a colleague with role X". The refusal text names the same remedy when no other approver exists. The 2026-11-17 ruling (no self-approval, not even through the override) stays.
Dedupe:approval no approvers resolved pending silently submitter returned 25 hits. The nearest is #25635 (closed: the excludeSubmitter + auto_approve decision), which is a different question.
Reader. objectstack triage grades it and routes it to the owning lane. Not a claim; awaits triage. Filed on the maintainer's word in hotcrm seat 2's session (2026-11-19): 「平台缺口全部立卡」, after an independent fable-tier review of HotCRM's pending decisions surfaced it.
Triage: lands in domain:server (approvals); rationale: area:workflow · Bug · Broken (a step with no eligible approver strands the request and tells nobody) · administrators/solo organizations, often · measured on staging (hotcrm#2654) → p2. A one-person Free organization is the sharpest case; raise it if that becomes a launch path.
Claim: PM loop round 1 · area a4-W · chain head of a fold: #35316 + #34410 in ONE PR · 2026-11-19T21:06Z
Session: session_016WV4czKnDE6hsyXQzB9wB2
Account: os-elon-musk
Branch: claude/area-a4W-35316
Worktree: objectstack-issue-35316
Domain: domain:server
Area: a4-W
Seat: repo:objectstack#4
File surface: packages/plugins/plugin-approvals/src/** (approval-service.ts open/decide paths, translations/messages.ts, tests), content/docs/** approvals guide (one sentence for #34410 if the dev picks the docs arm), .changeset/*.md. Notification topic in packages/services/service-messaging/src/preference-options.ts ONLY if measured necessary. No ui/**. Stop on breach; explain in the report.
Container & model: M, mode:subagent, model: TIER_DEFAULT (dispatch-gates --tier: no path-derived mandate), effort: high
Clause-②: no
Metadata-protocol: none
Responsibility: plugin-approvals in objectstack opens a step whose eligible slate is empty and tells no one | no platform path covers it (no_one only logger.warns; 403 text names an approver who does not exist) | one-person organizations (HotCRM staging, hotcrm#2654) and any deployment where excludeSubmitter or a platform_admin step empties the slate
Pre-claim lane: domain:server · area a4-W — every changed path is under packages/plugins/plugin-approvals/** (a4-W root); no ui/** (seat 3 o3-A approval surfaces untouched).
Pre-claim deps: no Blocked-by on either card; #34410's blocker PR #34300 merged 2026-11-16. overlap-check on the surface: clean vs origin/main 2495486, 0 open PR heads share the files.
Prior rulings read: approvals,excludeSubmitter,no_one,platform_admin → check-prior-rulings 236/127 ADR hits; kept: maintainer 2026-11-17 option B (PR #34755; approval-service docblock: the #3424 override never approves a request its actor submitted); #25635 ruling 6386627950 (excludeSubmitter + auto_approve refused at parse) not reopened; ADR-0027 §14, ADR-0044 D1, ADR-0055 §1/§2, ADR-0061 D2, ADR-0068 D2 named for the dev to read; thread: 0 rulings.
Fold (five gates): ① same defect form + fix: an approval step whose resolved slate is empty opens silently → say so at open + make the refusal text name the remedy; ② one package, one worktree, one changeset; ③ both graded (p2, p3), neither in the decision box; ④ independent criteria — #35316: submitter is told at submit/open and the 403 names the remedy when no other approver exists; #34410: a platform_admin step on a deployment with no platform administrator warns at open + the slot shows a readable label; ⑤ excluded: #34409 (inbox listing; open question for the cloud lane, cloud#4632), #35067 (showcase + checklist, different fix form; follows this PR so the demo shows the new message).
Clause-② reading: no new export expected (approvals translations and PLATFORM_NOTIFICATION_TOPICS are not re-exported from either package index on main); the dev measures the built .d.ts closure and reports — a new published key/topic ⇒ stop, hand to the seat.
Thread-read: 7001423294
Premise: holds (main cf6bb70 reading in the a4-W handover: approval-service.ts no_one slate only logger.warn ~:5251; 403 ~:5747; translations/messages.ts:105; dev re-measures on 2495486)
Serial constraints cleared: none in flight on plugin-approvals; #34409 / #35067 serial after this PR.
{
"issue": 35316,
"folded": [
34410
],
"status": "done",
"branch": "claude/area-a4W-35316",
"pr": "https://github.com/objectstack-ai/objectstack/pull/35661",
"pr_number": 35661,
"head_sha": "a3f98b15e78aa7c9719969f9a4b8d19efccb0c5c",
"changed_lines": "11 files, +335 / -36 = 371 changed lines vs base eca20d22 (soft size 400); PR API reads additions 335, deletions 36",
"session": "session_016WV4czKnDE6hsyXQzB9wB2",
"premise_still_valid": true,
"summary": "Step 0 on origin/main eca20d22: approval-service.ts:5251 no_one branch only logger.warn (no note unless excludeSubmitter, whose approvalSubmitterExcludedNoOne at translations/messages.ts:105 promised 'only a privileged override can decide it'); :5747 excludeSubmitter 403 'Another approver on the step decides it'; :5764 override refusal 'An approver on the step decides it'; a platform_admin step opens on 'platform_admin:*' which slateNamesAPerson counts as a person (approver-address.ts:266), so onEmptyApprovers never fires and slotLabels stored the raw address. #35316: a request opening on the slate that names no one now writes a no-approver note on its timeline (new no-approver-note.ts, snapshot key __noApproverNote, reader-locale overlay beside its two sibling notes) and tells the submitter under the EXISTING approval.comment topic (no new topic, no new export); both refusals of the submitter's own approval end with the same remedy when no one but the submitter is on the slate and keep their old text otherwise; the excludeSubmitter no_one sentence no longer promises an override. #34410: the platform_admin:* slot is labelled 'Platform administrators' (stored pending_approver_labels in English, the door's pending_approver_names in the reader's language); for the warning half I chose the GUIDE arm (one sentence in content/docs/automation/approvals.mdx), because a runtime warning needs the population question 'does anyone hold platform standing', which core's hasPlatformAdminStanding header says it is deliberately not built to answer (only plugin-auth's ensure-default-organization answers it). Ruling kept: no self-approval, not even through the override; onEmptyApprovers semantics unchanged.",
"tests": "At head a3f98b15 under the verify lock: pnpm --filter @objectstack/plugin-approvals build && typecheck && test -> 'VERDICT command-exit 0', Test Files 124 passed (124), Tests 1770 passed (1770), check:test-typecheck ledger held. New pins: exclude-submitter.integration.test.ts describe 'a request no one but its submitter can decide names the remedy' (note + one approval.comment notice to u_sub only + excludeSubmitter 403 ends with the remedy; override 403 names position 'legal'; CONTROL: another approver on the slate keeps both old texts and sends no notice); platform-admin-approver-34218.test.ts 'the slot reads by a label' (stored label + door pending_approver_names). First full run at d802348e was red on 2 stale fixtures caused by this change (approval-requested-notification control now sees the submitter's approval.comment; approval-service.test.ts slot-reader picked the system note as the first comment) - updated in commit 65a13754 and re-run green (491/491 in those files). No ablation: new behaviour pinned by new assertions; the old-text CONTROL pins the other direction.",
"clause2_dts": "Built dist/index.d.ts and index.d.mts at head vs the same package rebuilt from base source eca20d22 (src restored, rebuilt, restored with git checkout HEAD, git diff HEAD empty): the ONLY difference is one JSDoc line on the private enrichRows docblock (lines 20438-20439). No export, no key, no notification topic added; ApprovalsTranslations is typed TranslationBundle so the new message ids do not reach the .d.ts. Clause-②: no stands.",
"ruling_consistency": [
"2026-11-17 option B (PR #34755; approval-service.ts:1268 overrideApprovesOwnRequest): both refusals still throw for the submitter before any write; only the trailing sentence changes - consistent.",
"ADR-0027 §14: ADR-0027 has no §14 on this tree (sections 1-9); its §6 governs publish approvals, not runtime slates - not touched.",
"ADR-0044 D1 ('returned' terminal status): no status or terminal-state change - consistent.",
"ADR-0055 §1/§2 (master-detail controlled_by_parent): governs nothing this diff touches - consistent.",
"ADR-0061 D2 (searchable fields): governs nothing this diff touches - consistent.",
"ADR-0068 D2 (identities as built-in roles, platform_admin source unscoped admin_full_access, no new booleans): only a display label is added, no identity boolean or role - consistent."
],
"gates": "Local derived list (node scripts/pm/dispatch-gates.mjs --commands, 101 commands, tree objectstack-ai/objectstack at 65a13754, 10 paths vs merge base eca20d22): 96 exit 0. Exit 1 found and fixed: check:tenant-audit-census (+ its --self-test) census drift plugin-approvals write sites 40->41 from the new note insert -> regenerated with node scripts/tenant-audit-census.mjs --write (commit a3f98b15), re-run: census EXIT=0 '330 write call sites certified', self-test EXIT=0 '29 cases pass'. NOT MEASURED (exit 3 prerequisite refusals, nothing measured, CI runs them): check-plugin-teardown-shape --self-test (shallow clone, pinned fixture commit unreachable), spec check:skill-examples (client-react dist missing), check:dual-build-cjs-loads (38 packages without dist), check:i18n (cli dist/commands/i18n/extract.js missing; this diff touches no object metadata). overlap-check --branch=claude/area-a4W-35316: 'VERDICT clean exit 0', merges cleanly with origin/main eca20d22, 0 PR heads. Pre-push check:commit-card-trailers passed on every push. CI check-runs: in_progress at report time (not awaited per os-dev).",
"dogfood_battery": "n/a - no '!' in the PR title and no (narrowing) arm",
"mcp_calls": "0",
"api_writes": "3 relay strokes + 1 report comment: fleet-write pr_create (PR #35661, body read back 7135/7135 bytes identical), fleet-write assign os-elon-musk on #35661 (read back ['os-elon-musk']), post-stamped os-dev-report comment on #35316; git push x5 (not REST)",
"deviations": [
"Four commits, not one per card: 76016144 (#35316), d802348e (#34410), then 65a13754 (two stale fixtures of #35316) and a3f98b15 (tenant census regen for #35316) found by the post-commit full suite and gate run; the branch is not claude/issue-*, so AGENTS.md multi-agent §3 forbids the force-push a fold would need.",
"Pins went into the two existing harness files (exclude-submitter.integration.test.ts, platform-admin-approver-34218.test.ts) per AGENTS.md ruling record 6583487846 instead of a new card-named file; the #35316 pins are a describe nested inside the harness's top-level describe because the engine and service are closure-scoped there.",
"PR title adjusted from the order's suggestion: the warning half shipped as a guide sentence, so 'a platform_admin step … warns' became 'the platform administrators' slot reads by a label'."
],
"open_questions": [],
"security_findings": "none",
"out_of_scope_findings": [
"carrier: none · noted, not filed - a submitter who is not an administrator and holds no slot on a no-one request still gets the generic 'not a pending approver' refusal without the remedy; the card names only the excludeSubmitter and override refusals (PR Acceptance notes).",
"carrier: none · noted, not filed - the stored pending_approver_labels 'Platform administrators' is English by design (stored snapshot like person names); the reader's language is served on the approvals door."
]
}
area:workflowApprovals and automation — the work that runs without a person driving itdomain:serverDomain lane — seat card indexed by label:pm:seatpm:dispatchedDispatched to a dev agent by /pm-dispatchpriority:p2Medium: important, M3
Activity
objectstack-fleet commentedon Nov 19, 2026
triage#1 · hotlong · session_01Q4EjjMnyLqJdzuktEmRPXH
Triage: lands in
domain:server(approvals); rationale: area:workflow · Bug · Broken (a step with no eligible approver strands the request and tells nobody) · administrators/solo organizations, often · measured on staging (hotcrm#2654) → p2. A one-person Free organization is the sharpest case; raise it if that becomes a launch path.objectstack-fleet commentedon Nov 19, 2026
repo:objectstack#4 · os-elon-musk · session_016WV4czKnDE6hsyXQzB9wB2
Claim: PM loop round 1 · area a4-W · chain head of a fold: #35316 + #34410 in ONE PR · 2026-11-19T21:06Z
Session:
session_016WV4czKnDE6hsyXQzB9wB2Account:
os-elon-muskBranch:
claude/area-a4W-35316Worktree:
objectstack-issue-35316Domain:
domain:serverArea: a4-W
Seat: repo:objectstack#4
File surface:
packages/plugins/plugin-approvals/src/**(approval-service.ts open/decide paths, translations/messages.ts, tests),content/docs/**approvals guide (one sentence for #34410 if the dev picks the docs arm),.changeset/*.md. Notification topic inpackages/services/service-messaging/src/preference-options.tsONLY if measured necessary. Noui/**. Stop on breach; explain in the report.Container & model: M,
mode:subagent, model: TIER_DEFAULT (dispatch-gates --tier: no path-derived mandate), effort: highClause-②: no
Metadata-protocol: none
Responsibility: plugin-approvals in objectstack opens a step whose eligible slate is empty and tells no one | no platform path covers it (no_one only logger.warns; 403 text names an approver who does not exist) | one-person organizations (HotCRM staging, hotcrm#2654) and any deployment where excludeSubmitter or a platform_admin step empties the slate
Pre-claim lane: domain:server · area a4-W — every changed path is under
packages/plugins/plugin-approvals/**(a4-W root); noui/**(seat 3 o3-A approval surfaces untouched).Pre-claim deps: no Blocked-by on either card; #34410's blocker PR #34300 merged 2026-11-16. overlap-check on the surface: clean vs origin/main 2495486, 0 open PR heads share the files.
Prior rulings read: approvals,excludeSubmitter,no_one,platform_admin → check-prior-rulings 236/127 ADR hits; kept: maintainer 2026-11-17 option B (PR #34755; approval-service docblock: the #3424 override never approves a request its actor submitted); #25635 ruling 6386627950 (excludeSubmitter + auto_approve refused at parse) not reopened; ADR-0027 §14, ADR-0044 D1, ADR-0055 §1/§2, ADR-0061 D2, ADR-0068 D2 named for the dev to read; thread: 0 rulings.
Fold (five gates): ① same defect form + fix: an approval step whose resolved slate is empty opens silently → say so at open + make the refusal text name the remedy; ② one package, one worktree, one changeset; ③ both graded (p2, p3), neither in the decision box; ④ independent criteria — #35316: submitter is told at submit/open and the 403 names the remedy when no other approver exists; #34410: a platform_admin step on a deployment with no platform administrator warns at open + the slot shows a readable label; ⑤ excluded: #34409 (inbox listing; open question for the cloud lane, cloud#4632), #35067 (showcase + checklist, different fix form; follows this PR so the demo shows the new message).
Clause-② reading: no new export expected (approvals translations and PLATFORM_NOTIFICATION_TOPICS are not re-exported from either package index on main); the dev measures the built .d.ts closure and reports — a new published key/topic ⇒ stop, hand to the seat.
Thread-read: 7001423294
Premise: holds (main cf6bb70 reading in the a4-W handover: approval-service.ts no_one slate only logger.warn ~:5251; 403 ~:5747; translations/messages.ts:105; dev re-measures on 2495486)
Serial constraints cleared: none in flight on plugin-approvals; #34409 / #35067 serial after this PR.
objectstack-fleet commentedon Nov 19, 2026
repo:objectstack#4 · os-elon-musk · session_016WV4czKnDE6hsyXQzB9wB2
os-dev-report
{ "issue": 35316, "folded": [ 34410 ], "status": "done", "branch": "claude/area-a4W-35316", "pr": "https://github.com/objectstack-ai/objectstack/pull/35661", "pr_number": 35661, "head_sha": "a3f98b15e78aa7c9719969f9a4b8d19efccb0c5c", "changed_lines": "11 files, +335 / -36 = 371 changed lines vs base eca20d22 (soft size 400); PR API reads additions 335, deletions 36", "session": "session_016WV4czKnDE6hsyXQzB9wB2", "premise_still_valid": true, "summary": "Step 0 on origin/main eca20d22: approval-service.ts:5251 no_one branch only logger.warn (no note unless excludeSubmitter, whose approvalSubmitterExcludedNoOne at translations/messages.ts:105 promised 'only a privileged override can decide it'); :5747 excludeSubmitter 403 'Another approver on the step decides it'; :5764 override refusal 'An approver on the step decides it'; a platform_admin step opens on 'platform_admin:*' which slateNamesAPerson counts as a person (approver-address.ts:266), so onEmptyApprovers never fires and slotLabels stored the raw address. #35316: a request opening on the slate that names no one now writes a no-approver note on its timeline (new no-approver-note.ts, snapshot key __noApproverNote, reader-locale overlay beside its two sibling notes) and tells the submitter under the EXISTING approval.comment topic (no new topic, no new export); both refusals of the submitter's own approval end with the same remedy when no one but the submitter is on the slate and keep their old text otherwise; the excludeSubmitter no_one sentence no longer promises an override. #34410: the platform_admin:* slot is labelled 'Platform administrators' (stored pending_approver_labels in English, the door's pending_approver_names in the reader's language); for the warning half I chose the GUIDE arm (one sentence in content/docs/automation/approvals.mdx), because a runtime warning needs the population question 'does anyone hold platform standing', which core's hasPlatformAdminStanding header says it is deliberately not built to answer (only plugin-auth's ensure-default-organization answers it). Ruling kept: no self-approval, not even through the override; onEmptyApprovers semantics unchanged.", "tests": "At head a3f98b15 under the verify lock: pnpm --filter @objectstack/plugin-approvals build && typecheck && test -> 'VERDICT command-exit 0', Test Files 124 passed (124), Tests 1770 passed (1770), check:test-typecheck ledger held. New pins: exclude-submitter.integration.test.ts describe 'a request no one but its submitter can decide names the remedy' (note + one approval.comment notice to u_sub only + excludeSubmitter 403 ends with the remedy; override 403 names position 'legal'; CONTROL: another approver on the slate keeps both old texts and sends no notice); platform-admin-approver-34218.test.ts 'the slot reads by a label' (stored label + door pending_approver_names). First full run at d802348e was red on 2 stale fixtures caused by this change (approval-requested-notification control now sees the submitter's approval.comment; approval-service.test.ts slot-reader picked the system note as the first comment) - updated in commit 65a13754 and re-run green (491/491 in those files). No ablation: new behaviour pinned by new assertions; the old-text CONTROL pins the other direction.", "clause2_dts": "Built dist/index.d.ts and index.d.mts at head vs the same package rebuilt from base source eca20d22 (src restored, rebuilt, restored with git checkout HEAD, git diff HEAD empty): the ONLY difference is one JSDoc line on the private enrichRows docblock (lines 20438-20439). No export, no key, no notification topic added; ApprovalsTranslations is typed TranslationBundle so the new message ids do not reach the .d.ts. Clause-②: no stands.", "ruling_consistency": [ "2026-11-17 option B (PR #34755; approval-service.ts:1268 overrideApprovesOwnRequest): both refusals still throw for the submitter before any write; only the trailing sentence changes - consistent.", "ADR-0027 §14: ADR-0027 has no §14 on this tree (sections 1-9); its §6 governs publish approvals, not runtime slates - not touched.", "ADR-0044 D1 ('returned' terminal status): no status or terminal-state change - consistent.", "ADR-0055 §1/§2 (master-detail controlled_by_parent): governs nothing this diff touches - consistent.", "ADR-0061 D2 (searchable fields): governs nothing this diff touches - consistent.", "ADR-0068 D2 (identities as built-in roles, platform_admin source unscoped admin_full_access, no new booleans): only a display label is added, no identity boolean or role - consistent." ], "gates": "Local derived list (node scripts/pm/dispatch-gates.mjs --commands, 101 commands, tree objectstack-ai/objectstack at 65a13754, 10 paths vs merge base eca20d22): 96 exit 0. Exit 1 found and fixed: check:tenant-audit-census (+ its --self-test) census drift plugin-approvals write sites 40->41 from the new note insert -> regenerated with node scripts/tenant-audit-census.mjs --write (commit a3f98b15), re-run: census EXIT=0 '330 write call sites certified', self-test EXIT=0 '29 cases pass'. NOT MEASURED (exit 3 prerequisite refusals, nothing measured, CI runs them): check-plugin-teardown-shape --self-test (shallow clone, pinned fixture commit unreachable), spec check:skill-examples (client-react dist missing), check:dual-build-cjs-loads (38 packages without dist), check:i18n (cli dist/commands/i18n/extract.js missing; this diff touches no object metadata). overlap-check --branch=claude/area-a4W-35316: 'VERDICT clean exit 0', merges cleanly with origin/main eca20d22, 0 PR heads. Pre-push check:commit-card-trailers passed on every push. CI check-runs: in_progress at report time (not awaited per os-dev).", "dogfood_battery": "n/a - no '!' in the PR title and no (narrowing) arm", "mcp_calls": "0", "api_writes": "3 relay strokes + 1 report comment: fleet-write pr_create (PR #35661, body read back 7135/7135 bytes identical), fleet-write assign os-elon-musk on #35661 (read back ['os-elon-musk']), post-stamped os-dev-report comment on #35316; git push x5 (not REST)", "deviations": [ "Four commits, not one per card: 76016144 (#35316), d802348e (#34410), then 65a13754 (two stale fixtures of #35316) and a3f98b15 (tenant census regen for #35316) found by the post-commit full suite and gate run; the branch is not claude/issue-*, so AGENTS.md multi-agent §3 forbids the force-push a fold would need.", "Pins went into the two existing harness files (exclude-submitter.integration.test.ts, platform-admin-approver-34218.test.ts) per AGENTS.md ruling record 6583487846 instead of a new card-named file; the #35316 pins are a describe nested inside the harness's top-level describe because the engine and service are closure-scoped there.", "PR title adjusted from the order's suggestion: the warning half shipped as a guide sentence, so 'a platform_admin step … warns' became 'the platform administrators' slot reads by a label'." ], "open_questions": [], "security_findings": "none", "out_of_scope_findings": [ "carrier: none · noted, not filed - a submitter who is not an administrator and holds no slot on a no-one request still gets the generic 'not a pending approver' refusal without the remedy; the card names only the excludeSubmitter and override refusals (PR Acceptance notes).", "carrier: none · noted, not filed - the stored pending_approver_labels 'Platform administrators' is English by design (stored snapshot like person names); the reader's language is served on the approvals door." ] }