Repository navigation
Closed
Copy link
Labels
area:identityLogin and identity — sign-up, sessions, organization membership, SSObugSomething isn't workingdomain:uiDomain lane — seat card indexed by label:pm:seatpriority:p1High: required for production / M2
Description
What happened
Reported from an app deployment running 18.6.0. A Setup user, logged in as an organization admin, maintains the reporting lines that a team-visibility rule and the approval routing depend on.
- Setup → Users → open a user → header ⋯ → Set Manager.
- The dialog shows an empty Manager picker.
- It does not say whether this user already has a manager, or who.
- To check, the admin looked through the user's record page:
- Details has three sections: Identity, Account Status, Audit. No Manager.
- The Organizations tab lists organization memberships (org, role, created). This is easy to mistake for "the user's organization structure", but it does not show the manager either.
- The other tabs (Positions, Permission Sets, Business Units, Sessions, Linked Accounts, …) do not show it.
- The admin could not find a place in the Console that answers "who is this person's manager now?", or "who reports to this person?".
Afterwards we read sys_user.manager_id over the data API. The values the admin had set were all there and correct. So the setting works; only the reading back was the problem.
For reference, from source on main (3483407):
manager_idis areadonlyfield in theOrganizationgroup ofsys_user.- The
sys_userrecord page (packages/platform-objects/src/pages/sys-user.page.ts) lists explicit Details sections that do not include it. - The
set_user_managerparam is inline, and its comment notes that clearing the link (managerId: null) is not reachable from the action.
The questions the admin was left with
- Where is a user's current manager meant to be seen in Setup, and the people who report to them?
- Before re-pointing a manager, how is the admin meant to see what it is now, so that a setting is not overwritten by mistake?
- If a manager was set by mistake, how is it removed (not replaced by someone else)?
We are not proposing a particular fix. Please judge whether this is intended, a gap, or a defect, and where the answer belongs.
Metadata
Metadata
Assignees
Labels
area:identityLogin and identity — sign-up, sessions, organization membership, SSObugSomething isn't workingdomain:uiDomain lane — seat card indexed by label:pm:seatpriority:p1High: required for production / M2
Activity
objectstack-fleet commentedon Nov 21, 2026
triage#1 · hotlong · session_01Q4EjjMnyLqJdzuktEmRPXH
Triage: lands in
domain:ui(Setup) ·pm:queue; rationale: area:identity · Bug · in Setup → Users, an org admin who uses "Set Manager" cannot see who a user's manager is: the dialog opens with an empty picker, and no section or tab of the user record shows the manager, although team visibility and approval routing depend on it; reported by an outside builder on 18.6.0 → p2 (UX rule; admins maintaining reporting lines) · size S (show the current manager in the dialog and on the record).objectstack-fleet commentedon Nov 21, 2026
triage#1 · hotlong · session_01Q4EjjMnyLqJdzuktEmRPXH
Ruling-ref: maintainer 2026-11-21T13:1xZ, verbatim: 「同意」, approving triage's non-topic re-grade: p1 = "this week, or someone loses": main or release blocked, data silently wrong or lost, a common function that errors, AI taught wrong, an outside user's report.
2026-11-21T13:17Z · p2 → p1 on the maintainer's word: an outside user's report: an admin cannot see who a user's manager is. Lane and state unchanged.
objectstack-fleet commentedon Nov 21, 2026
repo:objectstack#4 · os-project-manager · session_01FEkQ5okniknzVVR3KTSVr1
Claim: PM loop · area a4-D · 2026-11-21T15:44Z
Session:
session_01FEkQ5okniknzVVR3KTSVr1Account:
os-project-managerBranch:
claude/issue-36017-show-user-managerWorktree:
objectstack-issue-36017Domain:
domain:uiSeat:
repo:objectstack#4Area: a4-D
File surface:
packages/platform-objects/src/pages/sys-user.page.ts, theset_user_manageraction inpackages/platform-objects/src/identity/sys-user.object.ts, their tests and translations;ui/packages/app-shellonly if the action dialog cannot show the current value from metadata (stop on breach; explain in the report)Container & model:
M,mode:subagent,model: opus(default tier;dispatch-gates --tieron the surface: "no path-derived mandate"),effort: high(seat order a4-D)Clause-②: no
Metadata-protocol: none
Responsibility:
sys_userpage and action metadata in objectstack (packages/platform-objects) | none — no Setup surface readsmanager_idback; only the data API does | org admins with platform-admin standing who maintain reporting lines; an outside builder reported it on 18.6.0Thread-read: 7063165416
Premise: holds
Pre-claim lane: repo:objectstack whole-repo lane; the fix paths are
packages/platform-objects/src/pages/sys-user.page.tsandpackages/platform-objects/src/identity/sys-user.object.ts(no other seated area leases them).Pre-claim deps: the card names no
Blocked-by:and no "after #N"; open-PR scan (53 open PRs, their file lists) finds none touching the surface.Prior rulings read: setup,users,manager,admin,find,user → 148 hits; the surface's own: decision batch #127 item 1 (maintainer 2026-09-13, verbatim 「同意 经理 = 管理员在用户上显式设置的 manager_id;部门负责人 = 单元上的 manager_user_id,两者独立。」) and ruling record 6895645364 option A (SCIM-held identity refused at the write); ADR-0092 D2/D4 (
manager_idstaysreadonly, written only by the endpoint). Reading it back on the record does not touch either. thread: none.Serial constraints cleared: none (no open PR or in-flight claim on these files at origin/main 3c06fc5)
objectstack-fleet commentedon Nov 21, 2026
repo:objectstack#4 · os-project-manager · session_01FEkQ5okniknzVVR3KTSVr1
os-dev-report
{ "issue": 36017, "status": "done", "branch": "claude/issue-36017-show-user-manager", "pr": "https://github.com/objectstack-ai/objectstack/pull/36162", "session": "session_01FEkQ5okniknzVVR3KTSVr1", "premise_still_valid": true, "summary": "Setup now reads the reporting line back: the sys_user record page's Details tab gains a 'Reporting Line' section naming manager_id (still readonly, ADR-0092 D4) and a read-only 'Direct Reports' related list (sys_user on relationshipField manager_id, 11 locales). Set Manager opens on the current manager: its managerId param is now field-backed on manager_id with the existing defaultFromRow key (measured: the console resolver and paramToField never carry the field's readonly, so the picker stays editable). A new remove_user_manager action clears the link through the same endpoint with the existing bodyExtra key ({ managerId: null }), same requiredPermissions and standing term as Set Manager plus a row-state term (offered only while a manager is set), confirmText, no ai block, no client copy of any endpoint refusal. Zone 2 measured: #1 the console's record read (populate=manager_id) returns the manager record with its name on a booted showcase; #2 a self-referencing sys_user list filtered on manager_id answers 2 rows (control 0); #3 an existing key exists (defaultFromRow), no spec key added; #4 bodyExtra null survives both doors and the endpoint clears (manager_id reads null afterwards). Section named 'Reporting Line' rather than 'Organization' because the reporter confused the Organizations tab with the org structure; primary_business_unit_id left out because it is plugin-sharing's projection of the Business Units tab's source rows.", "tests": "At head 30de59af under os-verify-lock: `pnpm --filter @objectstack/platform-objects exec vitest run --maxWorkers=2` -> Test Files 125 passed (125), Tests 2126 passed (2126); `pnpm --filter @objectstack/runtime exec vitest run --maxWorkers=2 src/platform-admin-action-gate.test.ts` -> Test Files 1 passed (1), Tests 18 passed (18); `pnpm --filter @objectstack/platform-objects typecheck` and `pnpm --filter @objectstack/runtime typecheck` (incl. check:test-typecheck) -> VERDICT command-exit 0. New pins: sys-user-details-tab.test.ts (new describe: section holds manager_id; Direct Reports list = sys_user/manager_id/parent value id via RecordRelatedListProps; locales), sys-user-set-manager-action.test.ts (param field-backed + defaultFromRow replacing the INLINE pin; remove_user_manager: bodyExtra {managerId:null} key present, no params, confirmText, requiredPermissions == set_user_manager's, visible starts with set_user_manager's standing term, only record column manager_id, CEL offered/hidden verdicts, no ai), runtime platform-admin-action-gate.test.ts (REST door: admin forward to /api/v1/auth/admin/set-user-manager with userId and managerId present+null; member 403, nothing forwarded). Ablation via scripts/ablation-replace.mjs (both suites resolve platform-objects src, no dist leg): deleting the `bodyExtra: { managerId: null },` line -> anchor 1->0, blob 1845ce6f -> c2624ca6; runtime door test red (1 failed | 17 passed), declaration test red (1 failed | 16 passed); restore blob == HEAD 1845ce6f, git diff HEAD empty. Booted showcase (own port 38517, killed by recorded PID, tempdir removed): set via door 200; GET ...?expand=manager_id and list read populate=manager_id -> manager_id = {name: 'Dev Admin', ...}; reports filter 2 rows, control 0; served metadata keeps bodyExtra null, field+defaultFromRow, page sections/list; remove_user_manager door -> managerId null, manager_id null after, reports 1. Browser paint of the Console page NOT MEASURED (Console not built).", "gates": "Local subset at 30de59af (dispatch-gates --commands, 56 + 11 changeset families = 67; --ran reconciliation: '67 derived famil(ies) accounted for'): exit 0 for 64; NOT MEASURED (exit 3, prerequisite refusals, not findings): `node scripts/check-plugin-teardown-shape.mjs --self-test` (shallow clone cannot read pinned fixture 621a4876), `pnpm check:dual-build-cjs-loads` (needs whole workspace dist), `pnpm check:type-check-debt` (verify-lock queue-timeout exit 99 inside). `pnpm check:i18n` exit 0 after --write + hand translations. CI check-runs on 30de59af at report time: Check Changeset, Check PR Size, Governed Surface Queue Guard, Lint (ESLint, CI/release/engine, PM dispatch-gates, docs & code guards, repo & tooling, scoped x3), PR-body guards, Type Check (consumer, debt ledger, source, workspace), filter: in_progress; Test Core / Build Core / UI lanes not yet listed. test:repo not run locally (declared to CI).", "dogfood_battery": "n/a — no `!` in the PR title and no (narrowing) arm", "mcp_calls": "0", "api_writes": "2 — relay pr_create (POST /repos/objectstack-ai/objectstack/pulls, PR #36162, draft forced, body read back identical 8802 bytes) via repository_dispatch run 44928938760; post-stamped os-dev-report comment (POST /repos/objectstack-ai/objectstack/issues/36017/comments). git push x5 not counted (not REST).", "open_questions": [], "security_findings": "none", "out_of_scope_findings": [ "carrier: none · noted, not filed: open PR #36133 also edits sys-user.page.ts; overlap-check reports a clean merge with this branch." ], "files_changed": 17, "net_added_lines": 312, "line_budget": "337 insertions / 25 deletions (282/25 excluding the 11 generated translation bundles)", "deviations": [ "Commit trailers are model-free (Co-Authored-By: Claude) per the order and AGENTS.md, overriding the harness reminder's model-named trailer; the PR footer uses AGENTS.md's session-URL form instead of the reminder's line.", "The backend for measurement was booted with `pnpm -C examples/app-showcase exec objectstack dev --seed-admin` (the dogfood skill's spelling) instead of root `pnpm dev`, because check-dev-prereqs refuses until all 108 workspace packages are built; only the showcase closure was built.", "PM pin 'gate keys equal set_user_manager's': requiredPermissions and locations are equal, but visible is set_user_manager's standing term AND a row-state term (has(record.manager_id) && record.manager_id != null), so Remove is never offered for a user with no manager; pinned as 'starts with the standing term'.", "Order Zone 3 suggested an 'Organization' section; named 'Reporting Line' instead (reason in summary)." ] }objectstack-fleet commentedon Nov 21, 2026
repo:objectstack#4 · os-project-manager · session_01FEkQ5okniknzVVR3KTSVr1
os-dev-report
objectstack-fleet commentedon Nov 21, 2026
repo:objectstack#4 · os-project-manager · session_01FEkQ5okniknzVVR3KTSVr1
Delivered · area a4-D · 2026-11-21T18:50Z
PR #36162 merged (L1-b ACCEPT 7067179337, landing record 7067199440); the card closed through its
Fixesline.pm:dispatchedremoved in this stroke; the assignee stays as the delivery record.Not measured by anyone: the Console dialog and the Details tab painted in a browser. The served metadata and the door were measured on a booted showcase.
fix(platform-objects): show a user's manager and direct reports in Se…