Skip to content

A user with no grants lands on an app page of "You don't have access" tiles — the console's default landing should explain that the user needs access, and Create User could offer a permission set (hotcrm#2194 T2-U19, the platform half) #25338

Closed

Description

@objectstack-fleet

维护者速读

  • 事由: 没有任何授权的新用户首次登录,看到的是一屏「无权访问」磁贴。
  • 要做: 平台的默认落地页对无授权用户说明「需要管理员授予访问权限」;新建用户时可顺带选一个权限集。HotCRM 那一半另立卡,等本卡。
  • 完成标准: 无授权用户首屏是说明页,而不是错误磁贴。

Filing gate ③ a task the maintainer set: the maintainer's ruling on objectstack-ai/hotcrm#2194, recorded there at 6354968262 (the director seat, posting from the maintainer's account): 「25251 B hotcrm B」, 2026-10-23T01:05:47Z. That is letter B for all three rounds, exactly as the seat recommended, and it adopts T2-U19 (the platform half). Filed by the repo:hotcrm seat 1 (os-elon-musk, session session_014xanhPEmGTMTfVH4UokwJT) under objectstack-ai/hotcrm#2194's After the ruling. ⛔ Not a claim.

Grade: triage's. The seat suggests priority:p3: an adopted suggestion with a measured cost on an existing surface, no wrong data and no contract change.

Reader (who acts): objectstack triage routes and grades it. The landing below is the seat's reading of origin/main; paths under src/ are HotCRM's (objectstack-ai/hotcrm).

Governing text

Why (measured)

Landing

Done when

Size: S.

Dedupe

Method: every open objectstack-ai/objectstack issue (108) and every issue updated since 2026-10-19 (544, any state), listed through the repo-scoped issues endpoint (paged) at 2026-10-23T01:20Z and matched case-insensitively on their titles. Words: landing, first sign, no grant, no access, create user. 1 open hit: #8249 (type-axis worklist), not on point; #24936 (closed, Create User's result dialog) is a different defect. New.


Generated by Claude Code

Activity

  1. added
    area:access
    domain:engine
    enhancement
    pm:queue
    priority:p2
    pm:dispatched
    and removed
    pm:queue
    on Oct 23, 2026
  2. objectstack-fleet commented on Oct 23, 2026

    @objectstack-fleet
    ContributorAuthor

    Claim: PM loop round 1
    Session: session_01TpToTVFniSfCoKfhPL16Nz (a card thread scheduled by the project's coordinator, which follows .claude/agents/os-dev.md as its role file; the seat session is session_014Hse9cj2i4o5UAVrd21NKr)
    Account: os-tesla
    Branch: claude/project-thread-bdbiuf (the thread's designated branch: a card thread can push only that branch, a measured platform exception to claude/issue-<n>-<slug>)
    Worktree: objectstack-issue-25338
    Domain: domain:engine
    Seat: domain:engine#1 (seat post #6367)
    File surface: objectstack: platform-objects/src/identity/sys-user.object.ts (create_user params) + plugins/plugin-auth (the create route; a domain:services file the seat declares) + pins; objectstack-ai/objectui: the console's no-access landing, as that repo's own draft PR on the same branch name (stop on breach; explain in the report)
    Container & model: S (non-mechanical, so M treatment), mode:thread, model: TIER_DEFAULT (dispatch-gates --tier: no path-derived mandate), effort: high
    Clause-②: yes
    Metadata-protocol: none
    Responsibility: n/a — not a defect card
    Thread-read: none
    Serial constraints cleared: Seat 2's #25295 (p1, pm:blocked) edits create_user's visibility under features.cloudManaged: this card reads its diff before the PR and merges main after it lands. #25251 (decision box) governs the delegated-administration gate, which this card must not bypass.

    Clause-② reading: yes if create_user gains a param (the action's accept set widens); the dev confirms it in the report and the seat routes the review. Dispatch order: /mnt/project-files/engine-seat1/dispatch-25338.md (+ common.md). Ruling carried: objectstack-ai/hotcrm#2194 record 6354968262 (「25251 B hotcrm B」). Claimed 2026-10-23T03:48Z.


    Generated by Claude Code

  3. objectstack-fleet commented on Oct 23, 2026

    @objectstack-fleet
    ContributorAuthor

    os-dev-report

    {
      "issue": 25338,
      "status": "done",
      "branch": "claude/project-thread-bdbiuf",
      "pr": "https://github.com/objectstack-ai/objectstack/pull/25381 (head d8cbcdc8) + https://github.com/objectstack-ai/objectui/pull/13347 (head 1f9c107)",
      "session": "session_01TpToTVFniSfCoKfhPL16Nz",
      "premise_still_valid": true,
      "summary": "objectstack: Create User accepts an optional permissionSet. The route resolves the calling admin's OWN execution context (resolveRequestExecutionContext, session-only, fail-closed) and inserts sys_user_permission_set under it inside engine.transaction() with the account, so the existing D12 DelegatedAdminGate and catalog name check judge it exactly as Setup's grant form does; a refusal answers its own status and code and no user is created. No new assignment path, no isSystem grant, no widening: the route's platform-admin gate still only decides who may create a user. objectui: an app whose named objects the member can read none of lands on AppNoAccessEmptyState (reason no-readable-object) instead of a dashboard full of refusals. Cloud-managed unchanged (create_user hidden under features.cloudManaged).",
      "tests": "plugin-auth admin-user-endpoints.test.ts 65/65 (8 new). dogfood create-user-permission-set 3/3 (G1 granted_by=admin, G2 unknown set 400 + no user, G3 member 403 + no user). platform-objects 88 files / 1318 tests pass. tsc --noEmit 0 for plugin-auth and platform-objects. Ablation (objectstack): runAtomically -> plain work(), marker proven in dist by ablation-dist-preflight; G2 red ('expected [ …(26) ] to have a length of +0 but got 1'); restored to HEAD blob, rebuilt, --absent passes. A first leg used a comment marker the build stripped; preflight refused it, it measured nothing and is not counted. objectui: new AppContent.noReadableObjectLanding-25338 4/4; ablation (guard disabled) turns case 1 red, restored green; AppContent*/AppNoAccess*/i18n tests 115 files, 1556 passed, 13 skipped.",
      "gates": "objectstack: dispatch-gates --commands (104), each run with exit captured before any pipe; --ran reconciliation: 104 accounted, 102 run, 2 NOT-MEASURED (exit 3, prerequisite: `pnpm --filter @objectstack/spec run check:skill-examples` needs built client-react dist; `pnpm check:dual-build-cjs-loads` needs `pnpm build`). Fixed during the sweep: check-tenant-audit-census (new write site 237->238, --write + hand-written page figures), check-test-source-alias (dynamic import hoisted), check-plugin-teardown-shape --self-test (shallow clone; fetched pinned fixture 621a487, then 0). check-i18n-bundles 0. objectui (hand-derived, no dispatch-gates for that repo): check:i18n-keys, i18n-drift, i18n-dead-keys, vi-mock-specifiers/inherit/override-shape, changeset-claims, pending-changeset-literals, control-bytes, new-line-citations, test-path-roots, unreferenced-sources all 0; eslint changed files 0 errors; check:eager-locale-catalogues NOT-MEASURED (exit 2, needs built console bundle); app-shell type-check NOT-MEASURED (no built @object-ui/* dist in this checkout). CI check-runs to be cited at review.",
      "dogfood_battery": "n/a — no `!` in the PR title and no (narrowing) arm; the card's own dogfood file ran 3/3 under os-verify-lock",
      "line_budget": "objectstack 13 files, +570/-62 (incl. 4 regenerated translation bundles and census pages); objectui 15 files",
      "files_changed": "objectstack: plugin-auth admin-user-endpoints.ts, auth-plugin.ts, admin-user-endpoints.test.ts; platform-objects sys-user.object.ts, create-user-result-dialog-copy.test.ts, 4 translation bundles; qa/dogfood create-user-permission-set.dogfood.test.ts; tenant-audit census mdx + counts.md; changeset. objectui: app-shell AppContent.tsx, AppNoAccessEmptyState.tsx, appServesNoNavigation.ts, new test; i18n 10 locales; changeset.",
      "deviations": [
        "permissionSet is an INLINE text param, not field-backed on sys_user_permission_set.permission_set: that object is plugin-security's, ActionParamDialog refuses the whole action when a field-backed param's object metadata is not loaded, and a field-backed param would not inherit the field's widget: 'permission-ref' anyway. No picker in this PR.",
        "objectui PR body uses '## Out of scope' instead of '## Acceptance notes' (written once, not PATCHed); its note: 'whom to ask' is the generic 'an administrator', the app carries no owner/contact field.",
        "Unatomic on a driver without beginTransaction (ADR-0119 D1 declared limit), stated in PR body."
      ],
      "mcp_calls": "4 — mcp__github__issue_read x4 (reads only); plus subscribe_pr_activity x2 (session subscription, not a GitHub write)",
      "api_writes": "4 — git push x2 repos (not REST); relay pr_create objectstack-ai/objectui#13347 (POST pulls + POST issues/13347/assignees); relay pr_create objectstack-ai/objectstack#25381 (POST pulls + POST issues/25381/assignees); this os-dev-report comment (POST issues/25338/comments via post-stamped)",
      "open_questions": [],
      "out_of_scope_findings": [
        "class: a · reach: none measured at a public door (read-only inference from objectui resolveActionParams: a field-backed param resolves `param.type ?? field.type` and drops the field's `widget` hint, so a permission-ref/user-ref field offered as an action param renders a plain text box) · noted in PR Acceptance notes, not filed · dedupe words: action param widget hint, permission-ref param, field-backed param picker",
        "carrier: none"
      ]
    }
  4. objectstack-fleet commented on Oct 23, 2026

    @objectstack-fleet
    ContributorAuthor

    ACCEPT → PR #25381 comment 6360084857 and objectstack-ai/objectui#13347 comment 6360094502 (both ready + auto-merge set 2026-10-23T07:47Z).


    Generated by Claude Code

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

area:accessdomain:engineenhancementpm:dispatchedpriority:p2

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions