Skip to content

Setup: Unlock User may be hidden without the admin plugin although its door is mounted unconditionally — measure, then drop the gate if so #34010

Closed

Description

@objectstack-fleet

domain:ui#1 · os-steve · session_01ADHkmT2NE3iyG1o6TDg3sf

Filing gate: ③ an out-of-scope finding of the #33759 dev (os-dev report 6896885009 on PR #33989), confirmed as a real open measurement by contract record 6897296837 (N1), class a (reach not yet measured).
Reader: domain:ui (packages/platform-objects/src/identity/sys-user.object.ts, unlock_user). Grade suggestion: p3 until the door is measured; p2 if it works without the plugin (same reach as #33759).
Dedupe: is:issue is:open unlock_user requiresFeature admin — no open card.

维护者速读

#33759 让「停用 / 恢复用户」在没有 admin 插件时也显示。「解锁用户」(unlock_user) 仍要求 admin 插件才显示,但它调用的 admin/unlock-user 接口看起来是无条件挂载的。如果接口在没有插件时确实可用,这个按钮也该和停用一样放开。

Facts

  • sys_user.unlock_user keeps requiresFeature: 'admin' (PR fix(platform-objects): offer Ban / Unban without the better-auth admin plugin #33989 leaves it, as its card asked).
  • admin/unlock-user is mounted unconditionally in plugin-auth's auth-plugin.ts (read by the contract record on 8631da39); set_user_manager's comment in sys-user.object.ts says the same. Whether the door works end to end without the better-auth admin plugin was NOT measured.
  • After fix(platform-objects): offer Ban / Unban without the better-auth admin plugin #33989 the block header in sys-user.object.ts attaches the "buttons that 404" rationale to unlock_user by name, which this card verifies or corrects (record nit N1); the same header's sentence that better-auth clears an expired banned is stale on plugin-off kernels, where user-session-admission.ts clears it (record nit N2).

Ask

Measure first: with the admin plugin off, does admin/unlock-user unlock a locked user (live pin through the real door)? If yes, drop requiresFeature: 'admin' from unlock_user the way #33759 did for ban/unban (booking in PUBLIC_AUTH_FEATURES.admin.gatedInputs in lockstep, CONTROL roster updated), and fix the header's N1/N2 sentences. If no, keep the gate and correct the header to say why.

Blocked-by: #33759

Activity

  1. added
    finding
    domain:ui
    on Nov 15, 2026
  2. objectstack-fleet commented on Nov 15, 2026

    @objectstack-fleet
    ContributorAuthor

    triage#1 · hotlong · session_01Q4EjjMnyLqJdzuktEmRPXH

    Path: none

    Triage: first touch → domain:ui · p3 · 2026-11-15T16:51Z

    ⛔ Not a claim.

    Setup's Unlock User may be hidden when the admin plugin is absent, though its door is mounted unconditionally. Measure first. If the action works without the plugin, drop the requiresFeature gate and regrade p2 (the same reach as #33759).

  3. added
    pm:queue
    on Nov 15, 2026
  4. objectstack-fleet commented on Nov 15, 2026

    @objectstack-fleet
    ContributorAuthor

    domain:ui#1 · os-steve · session_01ADHkmT2NE3iyG1o6TDg3sf

    Claim: PM loop round 4 · 2026-11-15T19:10Z
    Session: session_01ADHkmPhW5vcfV3ZnYyNhrB (card thread, dev) · seat session_01ADHkmT2NE3iyG1o6TDg3sf
    Account: os-steve
    Branch: claude/project-thread-0lotmu
    Worktree: objectstack-issue-34010
    Domain: domain:ui
    Seat: domain:ui#1
    File surface: packages/platform-objects/src/identity/sys-user.object.ts, the auth feature booking file PR #33989 touched, their tests, root .changeset/. packages/plugins/plugin-auth/src/auth-plugin.ts is READ-ONLY (held by open PR #34050; an edit needed there stops the card with a report). ui/** read-only.
    Container & model: M, mode:thread, model: default tier, effort: high
    Clause-②: no for a gate drop (as #33989's record judged its ban/unban drop; the dev verifies against that record)
    Metadata-protocol: none unless the action's declared shape changes
    Responsibility: sys_user.unlock_user keeps requiresFeature: 'admin' while its door admin/unlock-user is mounted unconditionally | contract record 6897296837 nits N1/N2 on #33989 | every admin of a kernel without the better-auth admin plugin who needs to unlock a locked user
    Thread-read: none
    Premise: whether the door unlocks end to end with the plugin off is NOT measured; the card measures it first through a live pin, then drops the gate (#33989 precedent) or keeps it and corrects the header
    Serial constraints cleared: no other pm:dispatched domain:ui card claims sys-user.object.ts; #33759 (Blocked-by) merged as #33989
    Scope: measure, then drop the gate in lockstep with the booking and CONTROL roster or keep it with a measured reason; fix header nits N1/N2; pins + ablation. Fixes #34010. Order: /mnt/project-files/ui-seat1/standard-order.md + 34010-delta.md. Summons: the maintainer's 「skills ui 车道开放 p3 卡」 (2026-11-15T17:13Z); the lane has no dispatchable p1/p2.

  5. added
    pm:dispatched
    and removed
    pm:queue
    on Nov 15, 2026
  6. objectstack-fleet commented on Nov 15, 2026

    @objectstack-fleet
    ContributorAuthor

    domain:ui#1 · os-steve · session_01ADHkmPhW5vcfV3ZnYyNhrB
    os-dev-report

    {
      "issue": 34010,
      "status": "done",
      "branch": "claude/project-thread-0lotmu",
      "pr": "https://github.com/objectstack-ai/objectstack/pull/34124",
      "session": "session_01ADHkmPhW5vcfV3ZnYyNhrB",
      "head_sha": "f50eb24a2eef47580bafe38fda6f2c71a2eeceb0",
      "premise_still_valid": true,
      "summary": "Measured first at 8ec7d2c7 (gate in place): on a plugin-auth kernel with plugins.admin false, unmanaged and managed, a member locked by lockoutThreshold wrong passwords through the real sign-in is released by POST /api/v1/auth/admin/unlock-user as the platform admin (200, locked_until null, failed_login_count 0, next sign-in 200; a caller without the standing 403 PERMISSION_DENIED); only the offer was hidden by features.admin. So sys_user.unlock_user drops requiresFeature 'admin' as #33989 did for ban/unban, PUBLIC_AUTH_FEATURES.admin.gatedInputs drops it in lockstep, the CONTROL roster and lowering-matrix row follow, and the admin block header's N1/N2 sentences (record 6897296837) are corrected, plus N2's orphaned quote in sys-user-set-manager-action.test.ts. Regrade: by the triage rule (p2 if it works without the plugin) this measured as p2.",
      "tests": "Live pin pending-sso-users.test.ts -t 34010 at f50eb24a's code (665d71a3): 3 passed (unmanaged, managed, CONTROL plugin-on). Before the fix (8ec7d2c7): 2 failed at the offer (expected false to be true), and a measure-only run without the offer assertion: 3 passed. Ablation (re-add requiresFeature 'admin' via ablation-replace, platform-objects rebuilt, dist read shows requiresFeature: \"admin\" on unlock_user): plugin-auth 2 failed; action-state-visibility / platform-objects / feature-gate-guard 4 failed (offer case, CONTROL roster, lowering row, guard forward walk). Restore: blob == HEAD f7a7aac9, git diff HEAD empty, rebuilt, ablation-dist-preflight --absent passes (66 files), re-run 3 + 292 passed. Package suites on 665d71a3: platform-objects 122 files / 2005 passed, plugin-auth 277 / 5527 passed 10 skipped, spec 843 / 26966 passed 1 todo; typecheck green on all three; spec check:generated all 14 up to date.",
      "gates": "dispatch-gates --commands on 665d71a3: 88 derived, all run after a full packages build; 87 exit 0 first round; check-plugin-teardown-shape.mjs --self-test exit 3 (prerequisite: pinned fixture 621a4876 outside the shallow clone), after fetching it exit 0. The 15 changeset/prose gates re-run on f50eb24a (changeset text only changed): all exit 0. --ran: 88 derived, 88 run, 0 NOT-MEASURED, 0 UNRUN. CI check-runs on PR #34124: in_progress at report time.",
      "dogfood_battery": "n/a — no ! in the PR title and no (narrowing) arm",
      "mcp_calls": "4 — reads only: issue_read get (#34010), issue_read get_comments x2 (#34010), pull_request_read get (#34124)",
      "api_writes": "3 — relay pr_create (POST /repos/objectstack-ai/objectstack/pulls, POST /repos/objectstack-ai/objectstack/issues/34124/assignees), post-stamped POST /repos/objectstack-ai/objectstack/issues/34010/comments (this report)",
      "files_changed": [
        ".changeset/34010-unlock-without-admin-plugin.md",
        "packages/platform-objects/src/identity/action-state-visibility.test.ts",
        "packages/platform-objects/src/identity/sys-user-set-manager-action.test.ts",
        "packages/platform-objects/src/identity/sys-user.object.ts",
        "packages/platform-objects/src/platform-objects.test.ts",
        "packages/plugins/plugin-auth/src/pending-sso-users.test.ts",
        "packages/spec/src/kernel/public-auth-features.ts"
      ],
      "line_budget": "169 additions / 64 deletions, 7 files; no governed path",
      "deviations": [
        "The claim's Clause-② / Metadata-protocol lines are copied verbatim into the PR body and changeset, conditional clauses included (they resolve to no / none: record 6897296837 N4 judged the same drop no, and the declared shape did not change); the first changeset commit carried a resolved wording and f50eb24a replaced it.",
        "pending-sso-users.test.ts: the #33759 describe's four helpers moved to module scope unchanged, and stage() gained an optional config, so the new describe shares the harness rather than copying it."
      ],
      "open_questions": [],
      "security_findings": "none",
      "out_of_scope_findings": [
        "carrier: #34008 · AuthPublicConfig.features.admin describe() in packages/spec/src/api/auth-endpoints.zod.ts (generated into content/docs/references/api/auth-endpoints.mdx) still says the admin plugin makes banning and unlocking available; untrue for banning since #33989 and unlocking after this PR; same family as record 6897296837 N3 · noted, not filed"
      ]
    }

    Stamped 2026-11-15T20:18Z.


    Generated by Claude Code

  7. objectstack-fleet commented on Nov 15, 2026

    @objectstack-fleet
    ContributorAuthor

    domain:ui#1 · os-steve · session_01ADHkmT2NE3iyG1o6TDg3sf

    Regrade: p3 → p2 · 2026-11-15T20:19Z

    The card's own grade rule ("p2 if it works without the plugin (same reach as #33759)") is now met by measurement: os-dev report 6900702514 (PR #34124) unlocked a lockout-locked user through admin/unlock-user with the admin plugin off, on unmanaged and managed kernels (200, locked_until cleared, failed_login_count 0, correct-password sign-in 200), and a non-platform-admin caller is refused 403. The only defect was the button hidden by features.admin.

  8. added
    priority:p2
    and removed on Nov 15, 2026
  9. objectstack-fleet commented on Nov 16, 2026

    @objectstack-fleet
    ContributorAuthor

    domain:ui#1 · os-steve · session_01ADHkmT2NE3iyG1o6TDg3sf

    Claim amendment: 2026-11-16T00:24Z · PR #34124, branch unchanged

    #34119 (#34008) merged at 2026-11-16T00:20Z as 41ff7c34, so round 3 starts. File surface adds:

    • packages/spec/src/api/auth-endpoints.zod.ts and packages/spec/src/system/auth-config.zod.ts: only the features.admin / plugins.admin button sentence in their describes, corrected against main as agreed with spec seat 2;
    • packages/plugins/plugin-auth/src/auth-manager-plugin-list.ts: a comment only;
    • content/docs/permissions/authentication.mdx (a heading) and content/docs/protocol/objectui/actions.mdx (the ban_user example).

    Round 3 also folds review#2's nits N1, N2, N4 and N5 from record 6902922670. N3 (an SSO-only user is offered Set Password and then refused) is out of this PR; the seat files it as its own card. The new head gets a delta contract review from review#2 on top of record 6902922670.

  10. objectstack-fleet commented on Nov 16, 2026

    @objectstack-fleet
    ContributorAuthor

    domain:ui#1 · os-steve · session_01ADHkmT2NE3iyG1o6TDg3sf

    Landed · #34010, #34130

    PR #34124 MERGED at 2026-11-16T04:24Z as e0670b954d through the merge queue (Fixes #34010, Fixes #34130). Unlock User and Set Password on sys_user no longer hang on the admin plugin feature: only create_user and impersonate_user keep that gate, and both doors still run the platform-admin gate before any write. review#2's CONTRACT_REVIEW_TIER records are PASS (6902922670, 6905273540, 6907003763). The SSO-only Set Password offer is carried by #34225.

    State change: pm:dispatched and the assignee are taken off both closed cards.

  11. removed
    pm:dispatched
    on Nov 16, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    domain:uifindingpriority:p2

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions