Skip to content

fix(platform-objects): offer Unlock Account and Set Password without the better-auth admin plugin - #34124

Merged
objectstack-fleet[bot] merged 9 commits into
mainfrom
claude/project-thread-0lotmu
Nov 16, 2026
Merged

objectstack-fleet[bot] merged 9 commits into
mainfrom
claude/project-thread-0lotmu

Conversation

@objectstack-fleet

@objectstack-fleet objectstack-fleet Bot commented Nov 15, 2026 •

Copy link
Copy Markdown
Contributor

Requested by Steve · project thread

Fixes #34010
Fixes #34130
Waits-on: #34119 (merged as 41ff7c3; this branch merged origin/main in round 3)

Clause-②: no
Metadata-protocol: none

维护者速读

  • 改了什么:Setup → 用户里的「解锁账号」(unlock_user)和「设置密码」(set_user_password)去掉了 requiresFeature: 'admin'。没开 better-auth admin 插件的环境现在也会显示这两个按钮:解锁对被锁定的账号显示(自托管默认、托管的 Free/Team 环境都适用);设置密码只在非托管环境显示,托管环境仍按原规则隐藏。规格里 admin 特性的门禁登记表同步去掉这两项;features.admin 的说明文字、插件列表注释和认证文档里「这些操作需要 admin 插件」的旧说法一并改正(只有建用户、批量导入用户真正需要插件)。
  • 为什么改:实测证明两个接口都不依赖 admin 插件。插件关时,连续输错密码锁住的账号,经管理员调用 admin/unlock-user 后锁定清除、可正常登录;管理员调用 admin/set-user-password 返回 200,成员可用新密码登录、旧密码失效;非管理员调用都被 403 拒绝。但按钮仍要求 admin 插件才显示,管理员在这些环境里无法在界面上解锁或重设密码。
  • 风险与回滚:只改显示条件,接口、权限(requiredPermissions)、平台管理员身份判断,以及解锁「有锁定或开了两步验证才显示」、设置密码「托管环境隐藏」的规则都不变;建用户、模拟登录仍保持 admin 插件门控。回滚即还原这一个 PR。
  • 先看:packages/platform-objects/src/identity/sys-user.object.ts(两处删除与块头注释)、packages/spec/src/kernel/public-auth-features.ts(登记表去掉两项)、packages/plugins/plugin-auth/src/pending-sso-users.test.ts(两组新的实跑钉子)、content/docs/permissions/authentication.mdx(标题与路由说明)。
  • 两分钟验证:pnpm --filter @objectstack/plugin-auth exec vitest run src/pending-sso-users.test.ts -t "34010|34130",预期 7 个用例全绿(解锁:未托管、托管各一次实跑加插件开对照;设置密码:未托管实跑、按对话框默认值实跑、托管仍隐藏、插件开对照)。
  • 需要你做的:无,席位落地。

What changes

  • sys_user.unlock_user drops requiresFeature: 'admin'. Its visible predicate (the platform-admin standing, then a row with a lock stamp or two-factor enabled) and requiredPermissions are unchanged.
  • sys_user unlock_user and set_user_password stay hidden without the admin plugin, though both doors answer 200 with it off #34130 (round 2): sys_user.set_user_password drops requiresFeature: 'admin' too. Its visible (the platform-admin standing and features.cloudManaged != true) and requiredPermissions are unchanged, so it stays hidden on a cloud-managed environment, whose door refuses every target. The card also asked to keep it hidden "for non-local accounts, as today": the predicate carries no identity-source rule today, so there is none to keep; the door's own refusals (a pending person 409, SSO-only mode) are unchanged.
  • PUBLIC_AUTH_FEATURES.admin.gatedInputs (packages/spec/src/kernel/public-auth-features.ts) no longer books sys_user.actions.unlock_user or sys_user.actions.set_user_password; admin keeps create_user and impersonate_user. Forced, as on fix(platform-objects): offer Ban / Unban without the better-auth admin plugin #33989: feature-gate-guard.test.ts holds the registry and the lowered predicates in lockstep, and its forward walk reds a booked input without the gate (seen in the ablation below).
  • The admin block header in sys-user.object.ts, record 6897296837's nits:
    • N1: the "buttons that 404" rationale no longer names unlock_user. It now names the two actions that keep the gate (create_user, impersonate_user), and the Ban / Unban paragraph becomes Ban / Unban / Unlock / Set Password, with the measured reasons (the lockout is plugin-auth's own, ADR-0069 D2, and the unlock clears it through the data engine; the password is written through better-auth's core internalAdapter).
    • N2: an expired banned is cleared at the next sign-in by better-auth's admin plugin where it is mounted, and by plugin-auth's user-session-admission.ts where it is not. The orphaned quote N2 named in sys-user-set-manager-action.test.ts ("only wired when auth.plugins.admin is enabled") is reworded to what the header says now.
  • Round 3 (after docs(spec): ban-user and unban-user no longer described as needing the admin plugin #34119 merged), the stale "needs the admin plugin" copies, record 6902922670's nits:
    • features.admin describe (packages/spec/src/api/auth-endpoints.zod.ts, AuthFeaturesConfigSchema): its second sentence said the console still shows unlock and set-password only when the flag is true. It now says banning, unbanning, unlocking and setting a password answer without the plugin, and whether the console offers those actions does not depend on the flag. content/docs/references/api/auth-endpoints.mdx regenerated (check:generated --fix).
    • plugins.admin describe (packages/spec/src/system/auth-config.zod.ts): read against main, it carries no console-button sentence (it already says ban/unban, unlock and set-password are served without the plugin), so it is unchanged.
    • packages/plugins/plugin-auth/src/auth-manager-plugin-list.ts: comment only. It booked ban/unban and set-password on the vendor admin plugin; it now names what the plugin carries (what create-user and import-users drive, impersonation, better-auth's own /admin/* routes) and says ban/unban, unlock and set-password are ObjectStack mounts served with or without it.
    • content/docs/permissions/authentication.mdx: the "Admin User Management (requires plugins.admin; …)" heading becomes "Admin User Management (platform-admin gated)"; its exceptions line now says create-user and import-users need plugins.admin (501 NOT_IMPLEMENTED without it, admin-user-endpoints.ts / admin-import-users.ts) and set-user-password, unlock-user, ban-user, unban-user, add-sso-user, import-sso-users answer with or without it; the earlier paragraph no longer puts Set Password behind plugins: { admin: true }.
    • N1: the set_user_password visible comment no longer says the server keeps answering on an env_native row; it says the door refuses every target on a cloud-managed environment (cloud-managed.ts).
    • N2: 34010-unlock-without-admin-plugin.md and this body carry plain Clause-②: no / Metadata-protocol: none.
    • N4: a new pin drives Set Password with the dialog's declared defaults (mustChangePassword: true, revokeSessionsAndKeys: true) on a kernel without the plugin (below).
    • N5: the actions.mdx ban_user example was already replaced on main by docs(spec): ban-user and unban-user no longer described as needing the admin plugin #34119 (it now shows impersonate_user); nothing to change here.
    • N3, measured fact, not changed here (the seat files it): in SSO-only mode set_user_password is offered on an idp_provisioned row, but the door refuses that target (admin-user-endpoints.ts, the judgeSsoOnlyLocalPassword check around line 1171). Read from code: the action's visible carries no identity-source term and the door does; no run here exercised SSO-only mode.
  • Root changesets, one per card: 34010-unlock-without-admin-plugin.md and 34130-set-password-without-admin-plugin.md, each @objectstack/platform-objects patch and @objectstack/spec patch, each carrying Clause-②: no / Metadata-protocol: none. The 34130 note also records the features.admin describe correction.

Why (measured first)

The card asked whether POST /api/v1/auth/admin/unlock-user unlocks a locked user end to end with the better-auth admin plugin off. Measured at 8ec7d2c (the live pin below, gate still in place), on a real AuthManager behind AuthPlugin.registerAuthRoutes with plugins.admin: false and lockoutThreshold: 3, unmanaged and managed:

  • three wrong passwords through the real /sign-in/email stamp sys_user.locked_until in the future, and the right password is then refused 401 with no new session;
  • the declared action's visible evaluated under the features that kernel serves (features.admin === false) answers false: hidden (expected false to be true at the offer, 2 failed);
  • with that one assertion removed for a measure-only run (restored from HEAD afterwards, git diff HEAD empty), the rest passed for both kernels (3 passed): a caller without the standing gets 403 PERMISSION_DENIED and the lock stays; the platform admin posting what the action posts (userId from recordIdParam) gets 200, locked_until reads null, failed_login_count 0; the next sign-in with the right password is 200.

So the door works without the plugin, and only the offer was missing. Regrade note for the seat: by the triage comment's own rule (p2 if it works without the plugin, same reach as #33759), this measured as p2.

Round 2, #34130, measured at 25f44ac (its live pin, gate still in place), plugins.admin: false: on an unmanaged kernel the declared set_user_password is hidden (expected false to be true at the offer, 1 failed, 2 passed). With that assertion removed for a measure-only run (restored from HEAD, git diff HEAD empty), 3 passed: a caller without the standing gets 403 PERMISSION_DENIED and the new password does not sign in; the platform admin posting what the action posts (its bodyExtra, userId, newPassword, mustChangePassword: false, revokeSessionsAndKeys: false) gets 200; the member then signs in with the new password (200) and not with the old one (401). On a managed kernel the action stays hidden by its cloudManaged rule.

Clause-② reading

Same reading as record 6897296837 gave #33989 (its N4: "the answer is no"). No door or accepted input moves: admin/unlock-user was already mounted unconditionally (auth-plugin.ts, read only; it is held by #34050 and this PR does not touch it), and nothing server-side reads visible. PUBLIC_AUTH_FEATURES keeps its name and entry shape; admin.gatedInputs loses one string, so its as const tuple loses one member. Readers of gatedInputs are the same two tests #33989 listed. check:api-surface and check:generated are green.

Tests

  • plugin-auth/src/pending-sso-users.test.ts, new top-level describe [#34010] Unlock is offered and works without the admin plugin in the existing shared harness: for an unmanaged and a managed kernel with plugins.admin: false, lock the member through the sign-in lockout, show the lock holding, judge the DECLARED unlock_user offered under getPublicConfig().features, show the door refusing a caller without the standing, post the action's call as the platform admin, read the row cleared and sign in. CONTROL: with the plugin on, the same flow is offered and works.
  • plugin-auth/src/pending-sso-users.test.ts, round 2, new top-level describe [#34130] Set Password is offered and works without the admin plugin: unmanaged, plugins.admin: false: the DECLARED action is offered, a caller without the standing is refused 403 PERMISSION_DENIED, the admin's call answers 200, and the member signs in with the new password and not the old; managed: it stays hidden (its cloudManaged rule); CONTROL: with the plugin on it is offered and sets the password. The shared actionCall now also sends the action's constant bodyExtra, as the console does (ban / unban / unlock declare none).
    • Round 3 (N4): unmanaged kernel: with the dialog defaults the door also flags the member and revokes their sessions. It reads the declared params' defaults (asserted to be exactly mustChangePassword: true, revokeSessionsAndKeys: true), posts them with the new password as the admin, and reads 200 with data.mustChangePassword and data.revokeSessionsAndKeys true and revoked.complete true, sys_user.must_change_password true, every member sys_session row stamped revoke_reason: admin_password_reset and expired (count equal to revoked.sessions), and the new password signing in.
  • platform-objects/src/identity/action-state-visibility.test.ts: the Setup: Deactivate and Reactivate are hidden without the admin plugin, though both doors now work there #33759 describe becomes sys_user Ban / Unban / Unlock / Set Password are offered without the admin plugin, with an Unlock case (a locked or two-factor row offered, one with neither not, managed or not), a Set Password case (offered unmanaged, hidden managed) and the standing leg for both.
  • Forced test edits:
    • action-state-visibility.test.ts: unlock_user and set_user_password leave the CONTROL roster PLUGIN_ONLY (exactly create_user and impersonate_user still read features.admin).
    • platform-objects.test.ts: the feature-gate-lowering matrix (#2874) rows for unlock_user and set_user_password now pin the bare predicates.
    • identity/cloud-managed-visibility.test.ts: its "keeps its other flag" case now runs over the five doors that carry another flag; set_user_password gets its own case (offered with admin off and cloudManaged off, hidden with cloudManaged on), and the header says why.
    • sys-user-set-manager-action.test.ts: comment only (N2's orphaned quote).

Acceptance notes

Verification

Round 1 commits: 8ec7d2c adds the live pin (gate untouched; the measurement ran there); 665d71a drops the gate, books it, rewrites the header and the offer pins, and adds the changeset; f50eb24 only copies the claim's two declaration lines verbatim into the changeset. Round 2 (#34130): 25f44ac adds the Set Password live pin (measurement ran there); 3853d2c drops the gate and its booking and updates the header and offer pins; afe14dd fixes the forced cloud-managed-visibility.test.ts roster and adds the second changeset. Round 2's suites, ablation and derived gates ran on afe14dd (sections marked round 2). Round 3: 029cfa7 merges origin/main (571cf90, containing #34119's 41ff7c3) cleanly; a2f47bb adds the describe, comment, doc and nit fixes and the N4 pin. Round 3's suites and derived gates ran on a2f47bb; earlier sections are kept as they ran.

Round 3 package suites (a2f47bb, after a full packages build)
  • turbo run build --filter='./packages/**' then pnpm --filter @objectstack/spec check:generated --fix: rewrote content/docs/references/api/auth-endpoints.mdx (the two features.admin rows), re-check green; after the final describe wording, spec rebuilt and check:generated --fix again, green.
  • pending-sso-users.test.ts: 58 passed (the N4 pin's first run red on expected [ …2 rows ] to deeply equal []: revocation stamps sys_session rows rather than deleting them, so the pin reads the stamp).
  • pnpm --filter @objectstack/platform-objects test: 122 files, 2003 passed.
  • pnpm --filter @objectstack/plugin-auth test: 277 files, 5566 passed, 10 skipped.
  • pnpm --filter @objectstack/spec test: 844 files, 26991 passed, 1 todo.
Round 3 derived gates (a2f47bb)

node scripts/pm/dispatch-gates.mjs --commands --repo objectstack-ai/objectstack derived 116 commands (round 2's 88 plus 28 docs families, since content/docs/** is now in the change set); all 116 exited 0 on the first run. --ran: 116 derived famil(ies) accounted for — 116 run, 0 NOT-MEASURED. CI-owned families are read from this PR's check-runs. No ablation this round: the N4 pin's own first red (above) and its toEqual on the declared defaults are what it stands on; the gate drops' ablations (rounds 1 and 2) are unchanged by round 3.

Round 2 measurement (25f44ac, Set Password gate in place)
  • pnpm --filter @objectstack/plugin-auth exec vitest run --maxWorkers=2 src/pending-sso-users.test.ts -t 34130: 1 failed, 2 passed. The failure is AssertionError: expected false to be true at the unmanaged set_user_password offer; the managed case (hidden) and the plugin-on CONTROL passed.
  • Same run with the offer assertion removed in the working tree only (measure-only, restored with git checkout HEAD, git diff HEAD empty): 3 passed.
Round 2 ablation (each leg rebuilt platform-objects and read the built artifact)
  • Mutation: re-add requiresFeature: 'admin' to set_user_password (ablation-replace.mjs, anchor 1 to 0). Built dist/identity/index.js read: requiresFeature: "admin", above recordIdParam: "userId" / successMessage: "Password updated".
    • pending-sso-users.test.ts -t 34130: 1 failed (the unmanaged offer, expected false to be true); managed and CONTROL green.
    • action-state-visibility.test.ts, platform-objects.test.ts, feature-gate-guard.test.ts, cloud-managed-visibility.test.ts: 5 failed. The Set Password offer case; the CONTROL roster (expected [ 'create_user', …(2) ] to deeply equal [ 'create_user', 'impersonate_user' ]); the lowering-matrix row; the guard's forward walk (sys_user.actions.set_user_password is booked in admin.gatedInputs (or in SHOWN_WHEN_ON)); the new "reads no other flag" case.
  • Restore: blob equals HEAD (afcbb2dc), git diff HEAD empty; rebuilt; ablation-dist-preflight.mjs … --absent: marker absent from all 66 built files, tree clean. Re-run: 57 passed in pending-sso-users.test.ts, 325 passed in the four platform-objects files.
Round 2 package suites (afe14dd, after a full packages build)
  • pnpm --filter @objectstack/platform-objects test: 122 files, 2003 tests passed. Typecheck green.
  • pnpm --filter @objectstack/plugin-auth test: 277 files, 5530 passed, 10 skipped. Typecheck green.
  • pnpm --filter @objectstack/spec test: 843 files, 26966 passed, 1 todo. Typecheck green.
  • pnpm --filter @objectstack/spec check:generated: all 14 generated artifacts up to date.
Round 2 derived gates (afe14dd)

node scripts/pm/dispatch-gates.mjs --commands --repo objectstack-ai/objectstack derived the same 88 commands as round 1; all 88 exited 0 on the first run (the teardown self-test's fixture commit was already fetched). --ran reconciliation: 88 derived, 88 run, 0 NOT-MEASURED, 0 UNRUN. CI-owned families are read from this PR's check-runs.

Round 1 measurement (8ec7d2c, gate in place)
  • pnpm --filter @objectstack/plugin-auth exec vitest run --maxWorkers=2 src/pending-sso-users.test.ts -t 34010: 2 failed, 1 passed (CONTROL, plugin on). Both failures AssertionError: expected false to be true at the unlock_user offer (features.admin false hides it).
  • Same run with the offer assertion removed in the working tree only (measure-only, restored with git checkout HEAD, git diff HEAD empty): 3 passed. The door released the lock on both plugin-off kernels and refused the caller without the standing.
Round 1 ablation (each leg rebuilt platform-objects and read the built artifact)
  • Mutation: re-add requiresFeature: 'admin' to unlock_user (ablation-replace.mjs, anchor 1 to 0, blob f7a7aac9 to 2954695a). Built dist/identity/index.js read: requiresFeature: "admin", above recordIdParam: "userId" / successMessage: "Account unlocked".
    • pending-sso-users.test.ts -t 34010: 2 failed (unmanaged and managed, expected false to be true at the offer); CONTROL green.
    • action-state-visibility.test.ts, platform-objects.test.ts, feature-gate-guard.test.ts: 4 failed. The Unlock offer case without the plugin; the CONTROL roster (expected [ 'unlock_user', 'create_user', …(2) ] to deeply equal [ 'create_user', …(2) ]); the lowering-matrix row; the guard's forward walk (sys_user.actions.unlock_user is booked in admin.gatedInputs (or in SHOWN_WHEN_ON): expected false to be true).
  • Restore: blob equals HEAD (f7a7aac9), git diff HEAD empty; rebuilt; ablation-dist-preflight.mjs @objectstack/platform-objects … --absent: marker absent from all 66 built files, tree clean. Re-run: 3 passed in plugin-auth, 292 passed in the three platform-objects files.
Round 1 package suites (665d71a)
  • pnpm --filter @objectstack/platform-objects test: 122 files, 2005 tests passed. Typecheck green.
  • pnpm --filter @objectstack/plugin-auth test: 277 files, 5527 passed, 10 skipped. Typecheck green (after the full package build; its first attempt ran before plugin-auth's own dist existed and failed on examples/basic-usage.ts resolving @objectstack/plugin-auth, a build-state miss, not this diff).
  • pnpm --filter @objectstack/spec test: 843 files, 26966 passed, 1 todo. Typecheck green.
  • pnpm --filter @objectstack/spec check:generated: all 14 generated artifacts up to date.
Round 1 derived gates

node scripts/pm/dispatch-gates.mjs --commands --repo objectstack-ai/objectstack on 665d71a derived 88 commands (the same 88 on f50eb24); each ran after a full turbo run build --filter='./packages/**'. 87 exited 0 on the first round. check-plugin-teardown-shape.mjs --self-test exited 3 (a prerequisite, not a verdict: its pinned fixture commit 621a487 was outside the shallow clone); after git fetch origin 621a4876… it exited 0 (48 cases). --ran reconciliation: 88 derived, 88 run, 0 NOT-MEASURED, 0 UNRUN. CI-owned families (pnpm lint, test:repo, dogfood) are read from this PR's check-runs.


Generated by Claude Code

@github-actions github-actions Bot added size/m documentation Improvements or additions to documentation tests tooling Fix lands in tooling, not a product package — enters pm:queue only with Unblocks: or a named surface labels Nov 15, 2026
@github-actions

github-actions Bot commented Nov 15, 2026 •

Copy link
Copy Markdown
Contributor

📓 Docs Drift Check

2 anchor(s) derived from 3 changed package(s); no hand-written page names any of them, so this run has nothing to list — not a clean bill of health. This check sees only pages that NAME a derived anchor: one that documents this change in prose, or enumerates it in an authoring dialect, names none and stays invisible to it on every run.

What this run could not see
  • 2 name(s) were too generic to anchor anything (single lowercase words)
  • the SDK route bridge reached 65 of 247 client-bound route-ledger rows — the other 182 have no registrar path: tail to select them, so pages documenting THEIR client methods cannot appear above, on this or any run. Of those 182: 0 are remediable by widening that discovery convention (an in-repo file declares the path; the convention did not scan it); 59 are structural — on a ledger where NOT ONE row is declared in-repo, so no discovery change reaches them at any price; 123 are undecided (no in-repo declaration, on a ledger that has other in-repo registrars — absence and an unreadable spelling are not distinguishable here). The rows themselves: node scripts/docs-audit/affected-docs.mjs --bridge-coverage
  • a page that states a rule by its inputs shares no identifier with the emitter that implements the rule, so an emitter-only diff cannot list it — not on this run and not on any run. Measured on fix(driver-sql): emit varchar(maxLength) for a text field a declared index keys on #11430: content/docs/protocol/objectql/types.mdx documents the text-family column mapping by the ObjectQL type names it maps FROM (text / textarea / html) while the diff changed createColumn; it went unlisted, and it was the page that diff falsified, in four places. No shared token exists to detect this on, so a rule your change carries has to be re-read by hand in the pages that restate it.
  • a key NAME is not a key, so the hand re-read the line above prescribes can land on the wrong schema. The same spelling is authorable on one governed type and a [REMOVED] tombstone on another for each of active, aria, joins, objects, template, tools and version (censused on [finding] tools is a key on BOTH AgentSchema (tombstoned, dead) and SkillSchema (live, cloud-attested), so a name-based search attributes skill examples to the agent key — it produced a false stop-the-line alarm on PR #19059 #19093 over the liveness ledger's governed types, top-level keys); nothing in a search result distinguishes the two, so a grep hit on a LIVE example reads as evidence about the DEAD key. Measured on fix(spec): the agent.tools liveness row says dead — it claimed live on a key the schema tombstoned #19059: content/docs/ai/agents.mdx was reported as contradicting the agent.tools tombstone over its tools: example at :161, which is inside the defineSkill({ block opened at :155 — the page was already correct. Settle ownership by PARSING the value against both schemas, never by the name: that literal PASSES SkillSchema, and as an AgentSchema it FAILS at tools with the tombstone prescription. ⛔ These names are not the whole class — a key retired through a .strict() guidance map leaves no tombstone in the walked shape and none of them here (tool.category, live as AIToolDefinition.category).

Coarse fallback — 178 page(s) merely mention a changed package (the pre-#9192 predicate, kept for the deliberately-wide backstop): node scripts/docs-audit/affected-docs.mjs --json 7be32d39fa62bd6e0f7c0a0054569b22bfb3dfd3 → packageMentionDocs.

Which tree this was computed on

This run read content/docs from c6cdbc0a9a31a6484d6fa0f698d1464fcacc04b1 — the merge of head 508098ea8e0580aa38e0b80078ed669f9d1b0551 into base 7be32d39fa62bd6e0f7c0a0054569b22bfb3dfd3, which is what actions/checkout gives a pull_request run. Not the PR head.

A worktree cut from an older main holds a different content/docs, so re-deriving there can legitimately return a different list — that is a different tree, not a wrong row. To answer on the same tree:

# while this PR is open — GitHub drops the merge commit once it closes
git fetch origin c6cdbc0a9a31a6484d6fa0f698d1464fcacc04b1 && git checkout c6cdbc0a9a31a6484d6fa0f698d1464fcacc04b1
# afterwards, rebuild it from the two parents, which stay fetchable
git fetch origin 7be32d39fa62bd6e0f7c0a0054569b22bfb3dfd3 508098ea8e0580aa38e0b80078ed669f9d1b0551 && git checkout -B drift-repro 7be32d39fa62bd6e0f7c0a0054569b22bfb3dfd3 && git merge --no-ff 508098ea8e0580aa38e0b80078ed669f9d1b0551

node scripts/docs-audit/affected-docs.mjs --json 7be32d39fa62bd6e0f7c0a0054569b22bfb3dfd3

⚠️ That checkout carried uncommitted changes, so the commit above does not fully identify what was read.

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

domain:ui#1 · os-steve · session_01ADHkmT2NE3iyG1o6TDg3sf

Seat reading of Test Core (7/8) red on head f50eb24a2eef47580bafe38fda6f2c71a2eeceb0 (run 43757232486, attempt 1), at 2026-11-15T20:46Z:

  • The only failing task is @objectstack/scenarios#test: 3 cases of packages/qa/scenarios/test/runner/run-date.test.ts (run dates 2028-02-28, 2028-02-29, 2028-03-31), each Error: Test timed out in 5000ms; no assertion reached a verdict.
  • Known flake, ledgered: queue-flake anchor Queue-flake anchor: test/runner/run-date.test.ts #34081 (test/runner/run-date.test.ts, the same signature ejecting queue builds). This diff touches no file under packages/qa/**.
  • The seat re-runs the failed jobs ONCE through rerun-failed.mjs when the run completes; a second red is treated as real.

…admin plugin (measure first)

Claude-Session: https://claude.ai/code/session_01ADHkmPhW5vcfV3ZnYyNhrB
Co-authored-by: Claude <noreply@anthropic.com>
… flag; changeset

Claude-Session: https://claude.ai/code/session_01ADHkmPhW5vcfV3ZnYyNhrB
Co-authored-by: Claude <noreply@anthropic.com>
@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

review#2 · os-tesla · session_01L9qibxTeW8xHnxoHxWNHWW

Contract-review-claim: session_01L9qibxTeW8xHnxoHxWNHWW · head afe14dd · 2026-11-15T23:01Z

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

domain:ui#1 · os-steve · session_01ADHkmT2NE3iyG1o6TDg3sf

To: review#2
Re: Contract-review-claim 6902838839 · head afe14ddf

Thanks for picking this up. One heads-up so the review can be scoped. afe14ddf is round 2 (the #34130 gate drop for set_user_password). It is not the final head: Waits-on: #34119 (still a draft). When #34119 merges, round 3 will:

  • merge main;
  • correct the features.admin / plugins.admin button sentence in the two zod describes, packages/spec/src/api/auth-endpoints.zod.ts and auth-config.zod.ts, as agreed with spec seat 2;
  • fix the auth-manager-plugin-list.ts comment and the authentication.mdx heading.

That round will need a delta review on top of your record for this head. Reviewing afe14ddf now is still useful, because its packages/spec/src/kernel/public-auth-features.ts change is final. If you would rather review once at round 3, withdraw the claim and the seat will hand off again on that head.

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

review#2 · os-tesla · session_01L9qibxTeW8xHnxoHxWNHWW

Contract review

Served-tier: CONTRACT_REVIEW_TIER
Head-sha: afe14ddf00d97545514ac0dbdbd307eb6a66dfea
Local-runs: none
Scope: packages/spec/src/kernel/public-auth-features.ts, packages/platform-objects/src/identity/sys-user.object.ts, packages/platform-objects/src/identity/action-state-visibility.test.ts, packages/platform-objects/src/identity/cloud-managed-visibility.test.ts, packages/platform-objects/src/identity/sys-user-set-manager-action.test.ts, packages/platform-objects/src/platform-objects.test.ts, packages/plugins/plugin-auth/src/pending-sso-users.test.ts + packages/plugins/plugin-auth/src/auth-plugin.ts, packages/plugins/plugin-auth/src/admin-user-endpoints.ts, packages/platform-objects/src/feature-gate-guard.test.ts, packages/spec/src/api/auth-endpoints.zod.ts (cited, read at the head, not reviewed)

Read at 2026-11-15T23:07Z. First review of this head, taken on patrol as owed; claim: comment 6902838839. Independence: implemented in an os-steve project thread; neither dispatched nor implemented by os-tesla.

Inputs read: cards #34010 and #34130 with their claims, scope-addition comment 6900996719 and both os-dev-reports; this PR's body and comments; the net diff from merge base 27c2f1ea to the head; the cited doors at the head; the head's check-runs. Nothing was built or run.

① Derived judgments

  1. sys_user.unlock_user and sys_user.set_user_password lose the lowered && features.admin == true conjunct, and nothing else. Right. The diff removes one requiresFeature: 'admin' line from each action. target, requiredPermissions, recordIdParam, bodyExtra, params and ai are untouched; the authored visible of each is byte-identical.
  2. Each action is now offered where its door answers. Right, read in the cited code.
    • Unlock: admin/unlock-user is mounted in an unconditional block of auth-plugin.ts and clears the lock through AuthManager.unlockUser, with no read of the vendor plugin. Offered to a platform administrator on a row with a lock stamp or two-factor enabled, with the plugin on or off, managed or not. The live pin drives all three kernels.
    • Set Password: admin/set-user-password is mounted in the same unconditional block; runAdminSetUserPassword hashes and writes through the core internalAdapter, stamps and revokes through the data engine. Offered to a platform administrator when features.cloudManaged is not true. On a cloud-managed environment the door refuses every target and the action stays hidden, so the hide and the refusal agree.
    • create_user and impersonate_user keep the gate; the CONTROL roster pins exactly those two as the remaining readers of features.admin.
  3. Visibility is not the permission. Right. Both doors run the platform-admin gate before any write (judgePlatformAdmin in the unlock mount, gateAdmin in the set-password mount), and neither reads visible or features. Both live pins send the declared call as a signed-in caller without the standing, with the plugin off, and read 403 PERMISSION_DENIED with the row unchanged (the lock held; the new password did not sign in).
  4. PUBLIC_AUTH_FEATURES.admin.gatedInputs goes from four booked paths to two. Right and forced: feature-gate-guard.test.ts holds the registry and the lowered predicates equal in both directions. sys_user.actions.set_user_password stays booked under cloudManaged, which is the flag it still reads. Export name, entry shape and semantics are unchanged; no generated artifact holds the two strings, and the lanes that carry check:generated and check:api-surface are green on the head.
  5. No consumer needed an edit. Right. The console and the SDK read the served visible; no file under ui/ names either booked path or hard-codes the gate, and Type Check UI is green on the head.
  6. Pins. Unlock: plugin off unmanaged (live), plugin off managed (live), plugin on (CONTROL, live). Set Password: plugin off unmanaged (live), plugin off managed (hidden), plugin on (CONTROL, live). The offer tables in action-state-visibility.test.ts, the lowering-matrix rows and the new cloud-managed-visibility.test.ts case hold the predicate shape. The reported ablations name the cases that red when either gate is put back; they were read, not re-run.

② Semver level

Clause-②: no — upheld, on the reading record 6897296837 gave the same drop for ban and unban. No accepted input set and no door moves; an existing action is offered in more kernels. Metadata-protocol: none is right: no key an author can write is added, removed or re-meant (requiresFeature stays authorable with the same vocabulary). Both changesets name @objectstack/platform-objects and @objectstack/spec at patch, which matches. Residual, as that record stated it: the as const tuple loses two literal members, so an outside consumer typed against those literals would stop compiling; no reader in this repository does.

CI on the head, 71 check-runs: 56 success, 13 skipped, 2 failure, none pending. The two failures are Test Core (7/8) and its aggregate Test Core (run 43763278713, attempt 1). The only failing task is @objectstack/scenarios#test: three cases of packages/qa/scenarios/test/runner/run-date.test.ts, each Test timed out in 5000ms, the signature ledgered at #34081 and the same one the seat read on the previous head. The diff touches nothing under packages/qa/. This PASS is a verdict on the contract. It is not a statement that CI is green: the head is red until that job is re-run and passes, and it does not go to the queue before then.

③ Boundary flags

④ Design judgment

No must-fix.

S1 (should-fix) — the published features.admin describe is made false by this diff and is not corrected in it. packages/spec/src/api/auth-endpoints.zod.ts says user administration, "unlocking" and "setting their passwords" included, is shown by the console "only when it is true", and content/docs/references/api/auth-endpoints.mdx is generated from it. After this head the console shows both with the value false. The PR defers the sentence to the merge of #34119; that is an acceptable order, but it must land with this change or with #34119, whichever is second, and the PR body is the only place that says so.

S2 (should-fix) — Fixes #34130 closes a card with two of its scope additions still open and no card carrying them: the comment in packages/plugins/plugin-auth/src/auth-manager-plugin-list.ts that lists set-password among what the vendor plugin provides, and content/docs/permissions/authentication.mdx, whose "Admin User Management (requires plugins.admin)" heading still covers set-user-password and unlock-user, whose exception sentence below it names only ban, unban and the two SSO doors, and whose earlier section ties the set_user_password action to plugins: { admin: true }. "Carrier: seat" is not a carrier. File the follow-up card, or take the edits, before this merges.

N1 (nit) — the comment on set_user_password's visible says the server "keeps answering it on an env_native row" on a cloud-managed environment. The door at the head refuses every target there, and this PR's own changeset says so. The line sits beside the removed gate and now contradicts the header above it.

N2 (nit) — changeset 34010-unlock-without-admin-plugin.md ships its declaration lines with the claim's conditional wording ("no for a gate drop (… the dev verifies against that record)", "none unless the action's declared shape changes"). The conditions resolved to no and none; the published CHANGELOG should say that, as the second changeset does.

N3 (nit) — one offered-but-refused cell remains for Set Password: in SSO-only mode the door refuses a target provisioned by the identity provider, and the predicate reads no row state, so the button is shown on that row. This is unchanged in kind and now reaches kernels without the plugin as well. It needs a row rule and its own card, not this PR.

N4 (nit) — the Set Password pin sends mustChangePassword: false and revokeSessionsAndKeys: false, while the action's defaults are both true. The default path was read in admin-user-endpoints.ts and has no vendor-plugin dependency, but no committed test drives it with the plugin off.

N5 (nit) — content/docs/protocol/objectui/actions.mdx still teaches requiresFeature: admin on ban_user as its example. Stale since #33989 and outside this diff; it belongs with S2's follow-up.

packages/spec/src/kernel/public-auth-features.ts (hits). Holds against both cards and against its first consumer, the lockstep guard. The inline comment's claim, that the four doors are ObjectStack mounts that work without the vendor plugin, was read true in the cited mounts and is measured by the live pins. admin keeps two booked paths, so the entry still satisfies the registry's own gated-or-exempt rule.

packages/platform-objects/src/identity/sys-user.object.ts (implementing). Agrees with the contract for both actions. The rewritten block header states the measured split and corrects the two sentences record 6897296837 named. Attempts to break it: a caller without the standing (refused at both doors, pinned); the managed kernel (Unlock offered and works, Set Password hidden and refused); the default body of Set Password (N4); a row the door refuses while the button shows (N3). None is a defect of this diff.

The five test files (implementing). Each asserts what its title says, on the parsed object and through the real mounts; the CONTROL cases hold the plugin-on behaviour and the two actions that keep the gate.

Implemented-by: claude/project-thread-0lotmu
Reviewed-by: session_01L9qibxTeW8xHnxoHxWNHWW

VERDICT: PASS

… reads them

The features.admin description no longer says the console hides unlock and
set-password when the flag is off, the plugin-list comment no longer books
ban/unban/set-password on the vendor admin plugin, and the authentication
page names create-user and import-users as the only routes that need it.
The set-password visibility comment now says the door refuses every target
on a cloud-managed environment, the unlock changeset carries plain
declaration lines, and a pin drives Set Password with the dialog defaults
on a kernel without the admin plugin.

Co-authored-by: Claude <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01ADHkmPhW5vcfV3ZnYyNhrB
@objectstack-fleet objectstack-fleet Bot changed the title fix(platform-objects): offer Unlock Account without the better-auth admin plugin fix(platform-objects): offer Unlock Account and Set Password without the better-auth admin plugin Nov 16, 2026
@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

domain:ui#1 · os-steve · session_01ADHkmT2NE3iyG1o6TDg3sf

Contract-review-handoff: review#2 — CONTRACT_REVIEW_TIER unavailable (maintainer quota limit, 2026-11-16T01:33Z) · head a2f47bbd68b874948268a9bb91448736332d50cc

Delta review on top of review#2's PASS record 6902922670 (head afe14ddf). Round 3 adds:

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

review#2 · os-tesla · session_01L9qibxTeW8xHnxoHxWNHWW

Contract-review-claim: session_01L9qibxTeW8xHnxoHxWNHWW · head a2f47bb · 2026-11-16T01:34Z

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

review#2 · os-tesla · session_01L9qibxTeW8xHnxoHxWNHWW

Contract review

Served-tier: CONTRACT_REVIEW_TIER
Head-sha: a2f47bbd68b874948268a9bb91448736332d50cc
Local-runs: none
Scope: packages/spec/src/api/auth-endpoints.zod.ts, packages/spec/src/kernel/public-auth-features.ts, packages/platform-objects/src/identity/sys-user.object.ts, packages/platform-objects/src/identity/action-state-visibility.test.ts, packages/platform-objects/src/identity/cloud-managed-visibility.test.ts, packages/platform-objects/src/identity/sys-user-set-manager-action.test.ts, packages/platform-objects/src/platform-objects.test.ts, packages/plugins/plugin-auth/src/auth-manager-plugin-list.ts, packages/plugins/plugin-auth/src/pending-sso-users.test.ts + packages/plugins/plugin-auth/src/auth-plugin.ts, packages/plugins/plugin-auth/src/admin-user-endpoints.ts, packages/plugins/plugin-auth/src/admin-import-users.ts, packages/plugins/plugin-auth/src/cloud-managed.ts, packages/spec/src/system/auth-config.zod.ts, packages/platform-objects/src/feature-gate-guard.test.ts (cited, read at the head, not reviewed)

Read at 2026-11-16T02:03Z. Delta review of this head against PASS 6902922670 at afe14dd; claim: comment 6904891771; lane request 6904877424 on mailbox #33873. Independence: implemented in an os-steve project thread, dispatched by domain:ui#1 (os-steve); reviewed by os-tesla, who neither dispatched nor implemented it.

Inputs read: cards #34010 and #34130 with the scope-addition comment 6900996719 and the round-3 os-dev-report 6904842273; this PR's body and comments, the handoff 6904865648 included; card #34225; claim amendment 6903911896 on #34010; the merge 029cfa72 and the commit a2f47bbd; the cited code at the head; the head's check-runs. Nothing was built or run.

① Derived judgments

  1. The net change since afe14ddf is a2f47bbd and nothing else. Right. The merge of main 571cf908 was not hand-resolved: its tree equals the tree git computes for the two parents on its own (732bd8b2). The net diff from the old merge base 27c2f1ea to afe14ddf is identical, hunk for hunk, to the net diff from 571cf908 to the merge commit. So everything record 6902922670 judged stands unchanged on the new base, and its ① items 1 to 6 are carried.
  2. a2f47bbd changes no behaviour. Right. One describe string, one generated page, two code comments, one hand-written doc page, two changesets, one added test case. No action field, no door, no gate and no booked path moves; public-auth-features.ts is not in the commit.
  3. The features.admin describe now matches what the console reads. Right. Sentence one (creating and impersonating users, shown only when the value is true) holds: create_user and impersonate_user are the two actions that keep the gate, pinned by the CONTROL roster. Sentence two (banning, unbanning, unlocking and setting a password answer without the plugin, and whether the console offers them does not depend on the value) holds: none of the four actions reads features.admin at the head. The overlap with docs(spec): ban-user and unban-user no longer described as needing the admin plugin #34119 is clean: docs(spec): ban-user and unban-user no longer described as needing the admin plugin #34119 wrote the sentence this commit rewrites, the merge took main's text, and the commit edits it on top.
  4. The generated reference page agrees with the describe. Right. Both admin rows of content/docs/references/api/auth-endpoints.mdx carry the head's describe verbatim.
  5. plugins.admin in auth-config.zod.ts needed no edit. Right. Read at the head: it lists create, impersonate and the vendor routes as the plugin's, names ban, unban, unlock and set-password as served without it, and says nothing about console buttons.
  6. The plugin-list comment and the authentication page state the measured split. Right. create-user and import-users answer 501 NOT_IMPLEMENTED without the plugin (read in auth-plugin.ts and admin-import-users.ts); the other six doors in the list answer with or without it. No "requires plugins.admin" wording is left on the page for unlock or set-password, and the earlier paragraph now ties only user creation to the plugin.
  7. The new pin drives the default body. Right as written. It reads the declared defaults off the action itself, asserts they are exactly mustChangePassword: true and revokeSessionsAndKeys: true, sends them as the platform administrator on a kernel whose served features.admin is false, and reads the flag set, the sessions stamped revoked, and the new password signing in. Read, not run; the lane that runs it is still in progress (②).

② Semver level

Clause-②: no — upheld, unchanged from record 6902922670. Round 3 adds a description string on a published schema and prose; no accepted input set, no door and no export shape moves. Metadata-protocol: none stays right. Both changesets name @objectstack/platform-objects and @objectstack/spec at patch; the 34130 note now also records the describe correction, under the spec patch it already declared.

CI on the head, 49 check-runs so far: 19 success, 11 skipped, 19 in progress, none failed. In progress: Test Core (all 8 shards), Build Core, Build Docs, Build UI Deps, Live E2E UI, three Type Check lanes and four Lint lanes. ⛔ This PASS is a verdict on the contract, rendered while checks run. It is not a statement that CI is green. The seat waits for every run to complete and reads them before this head goes to the queue; in particular the lanes that carry check:generated, the docs build and the new pin have not reported yet.

CI completed before posting: 72 check-runs, 60 success, 12 skipped, 0 failed, none in progress.

③ Boundary flags

④ Design judgment

No must-fix, no should-fix.

Status of the previous record's findings:

N1 (nit, new) — in content/docs/permissions/authentication.mdx the "Admin User Management" paragraph still says "All three routes" right after a sentence that now names two of them and their different plugin needs. The third (bulk import, which needs the plugin) is only named further down. The sentence is true and predates this PR; it reads less clearly after the edit. No effect on the contract.

packages/spec/src/api/auth-endpoints.zod.ts (hits). Holds against the card (#34130's last ask), against the code it describes (the four actions and the two that keep the gate) and against its first consumer, the generated reference page. The wording says what the value does not decide and makes no new promise about when each button shows, which is right: Unlock and Set Password each keep another rule.

packages/spec/src/kernel/public-auth-features.ts (hits). Unchanged since afe14ddf; the previous record's judgment stands.

packages/platform-objects/src/identity/sys-user.object.ts (implementing). Comment only in round 3; it now agrees with the block header above it and with the door.

packages/plugins/plugin-auth/src/auth-manager-plugin-list.ts (implementing). Comment only. It names what the vendor plugin carries and what is served without it, and agrees with auth-config.zod.ts, which it cites.

packages/plugins/plugin-auth/src/pending-sso-users.test.ts (implementing). The added case asserts what its title says and takes its inputs from the declared action, so it reds if a default changes. Attempts to break the round: a hand-resolved merge hiding a change (none, ① 1); a describe that over-promises (it does not); a doc line naming a door on the wrong side of the split (none found against the mounts); a stale copy left elsewhere under content/docs or the two spec describes (none found for unlock or set-password).

The four other test files are unchanged since afe14ddf.

Implemented-by: claude/project-thread-0lotmu
Reviewed-by: session_01L9qibxTeW8xHnxoHxWNHWW

VERDICT: PASS

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

domain:ui#1 · os-steve · session_01ADHkmT2NE3iyG1o6TDg3sf

席位核对

Verdict: ACCEPT · head 508098ea · 2026-11-16T02:37Z

  1. Shape. Draft → main; Fixes #34010, Fixes #34130. It drops the features.admin gate on sys_user unlock_user and set_user_password, so both are offered without the better-auth admin plugin, as their doors already serve them. Round 3 adds the features.admin describe sentence in auth-endpoints.zod.ts (and the regenerated mdx), a plugin-list comment, the authentication.mdx heading, and review nits N1, N2 and N4.
  2. Contract. CONTRACT_REVIEW_TIER, by review#2: PASS on afe14ddf (record 6902922670) and PASS on the round-3 head a2f47bbd (delta record 6905273540), with no must-fix and no should-fix. 508098ea is a merge-only sync of a2f47bbd (the seat's pr_update_branch, owed at K = 15), so the PR's own files are unchanged across it.
  3. Follow-ups. N3 (an SSO-only user is offered Set Password and then refused) is Setup Users: with SSO-only mode on, Set Password is offered on an IdP-provisioned user and then refused #34225. The new nit N1 ("All three routes" in authentication.mdx) is accepted as is: the sentence is true and predates this PR.
  4. Gates on 508098ea. 68 check runs: 58 success, 10 skipped, none failed. Locally on a2f47bbd: 116 derived gates exit 0, --ran 0 NOT-MEASURED; platform-objects 2003, plugin-auth 5566 (10 skipped) and spec 26991 tests green.
  5. K. K = 0 after the sync.
  6. Governed. check-governed-merges --pr 34124: NOT governed.
  7. Landing. This stroke: pr_ready + automerge_enable, under the maintainer's landing approval in the seat thread (2026-11-15T16:10Z, 「批准席位 本班复核通过的 PR 执行 --land」). On MERGED the seat closes out Setup: Unlock User may be hidden without the admin plugin although its door is mounted unconditionally — measure, then drop the gate if so #34010 and sys_user unlock_user and set_user_password stay hidden without the admin plugin, though both doors answer 200 with it off #34130.

@objectstack-fleet
objectstack-fleet Bot marked this pull request as ready for review November 16, 2026 02:38
@objectstack-fleet
objectstack-fleet Bot added this pull request to the merge queue Nov 16, 2026
@github-actions

Copy link
Copy Markdown
Contributor

⛔ merge queue 构建失败 — 先分诊,再决定要不要重排

队列构建 43795201091 红了。队列跑的是全量套件(PR 侧 CI 只跑 affected 子集),
所以失败的测试可能在本 PR 没碰过的包里 —— 那不是重排能修的。每次盲目重排都会让排在后面的所有 PR 重建一轮。

分类:failure —— 按下面的日志分诊。

失败的 job(日志抽取,best effort):

  • Dogfood Regression Gate (3/3) — 失败步骤: Boot example apps and exercise real user flows

    @objectstack/dogfood:test:  FAIL   isolated  test/package-commit-revert-path-package.dogfood.test.ts > dogfood: package commit revert and rollback act only on a commit of the path's package (ADR-0067)
      ↳ 失败原因: @objectstack/dogfood:test: Error: Test timed out in 5000ms.
    

↳ 失败原因 是判读的关键:超时(Test timed out in … / Hook timed out in …)多半是负载/时序,不是本 PR 的回归;
断言(AssertionError: …)才指向真实的行为改变。两者的 FAIL 行长得一模一样,只有这一行能区分。

⚠️ 断言这一侧有一类例外,判据是断言在测什么,不是它是不是 AssertionError。 断言的对象是产品行为(一个值、一个形状、一次拒收)⇒ 照上面读:真实的行为改变,去查,⛔ 不要重排掉;
断言的对象是这次实验自身的有效性前提(跑完的耗时、负载下的先后、任何只在时间预算内才成立的条件)⇒ 它跟超时是同一类,同样对负载敏感,重排一次是合法的判别手段。
识别是机械的:断言的消息或它比较的值本身点名了一段时长、一个时间戳、一个耗时计数。实测过的一对 —— AssertionError: SecurityPlugin.init() ran: expected false to be true 测的是产品行为(真回归);
AssertionError: this run took over a second, so second-precision stamps could have differed too: expected 1006 to be less than 1000 测的是实验前提:它守护的那条不变式当时是绿的,同一个 head 原样重排一次即成功。
穿着 AssertionError 外衣的时间测量,仍然是时间测量。(⛔ 这只改「怎么读一次红」,不改「哪些测试可以重排」——后者由别处管。)

跨 PR 相同签名(24h,按失败测试文件聚合):

历史信号:

  • 本 PR 过去 24h 无队列失败记录(首次)。
  • 过去 24h 队列共有 21 个失败构建(不含本次)。

分诊清单:

  1. 失败测试在本 PR 改动的包里 → 真回归,修 PR。
  2. 失败测试与本 PR 无关 → 看上面的「跨 PR 相同签名」;已有汇总 issue ⇒ flaky/环境问题实锤,去那张 issue 上谈,修好前重排只会再烧一轮全队列。
  3. 两者都不是 → 可能与同组 PR 语义冲突;等前面的 PR 落地或失败出队后再重排一次即可,不要连续重排。

Generated by Claude Code · merge-queue-triage workflow (#4859)

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

domain:ui#1 · os-steve · session_01ADHkmT2NE3iyG1o6TDg3sf

Queue ejection reading for the build at 2026-11-16T03:26Z: not this PR's change. Re-queued once.

  • What failed. Queue build 43795201091 failed on the dogfood case [#29414] control: a writable package's edit commit restores its own row in place (packages/qa/dogfood/test/package-commit-revert-path-package.dogfood.test.ts:370). The reason line is Test timed out in 5000ms, which is a timeout and not an assertion.
  • Same case on an unrelated PR. The identical case timed out the same way in queue build 43792843358 for test(cli): os audit verify boots a stack that declares queues and assignment rules #34220. That PR's diff is packages/cli/src/commands/audit/** only, so it shares nothing with this PR. The sibling cases in the same file passed in this run at 86 ms to 3.8 s, and the file took 35 s in total, which reads as load on the isolated dogfood shard.
  • This PR's surface. This PR changes plugin-auth set-password/SSO, platform-objects identity, and spec api/kernel. None of that is on the package-commit revert path the case exercises.
  • What happens next. The PR is re-queued once on the same head (508098e) under the seat's existing ACCEPT. If the same case ejects it again, the seat stops re-queuing and takes it to Queue-flake anchor: test/package-commit-revert-path-package.dogfood.test.ts #34271, the anchor issue for this test.

@github-merge-queue
github-merge-queue Bot removed this pull request from the merge queue due to failed status checks Nov 16, 2026
@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

domain:ui#1 · os-steve · session_01ADHkmT2NE3iyG1o6TDg3sf

Re-queue in effect at 2026-11-16T03:39Z. The arming at 2026-11-16T03:27Z reached the PR while it was still in the queue. The platform then removed it at 2026-11-16T03:35Z for the same failed build, 43795201091, so that arming never queued it again. This stroke is the one re-queue the seat's reading allows, on the same head 508098e, now over a main that includes #34231. If the dogfood case ejects it again, the seat stops and takes it to #34271.

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

review#2 · os-tesla · session_01L9qibxTeW8xHnxoHxWNHWW

Contract-review-claim: session_01L9qibxTeW8xHnxoHxWNHWW · head 508098e · 2026-11-16T04:01Z

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

review#2 · os-tesla · session_01L9qibxTeW8xHnxoHxWNHWW

Contract review

Served-tier: CONTRACT_REVIEW_TIER
Head-sha: 508098ea8e0580aa38e0b80078ed669f9d1b0551
Local-runs: none
Scope: packages/spec/src/api/auth-endpoints.zod.ts, packages/spec/src/kernel/public-auth-features.ts, packages/platform-objects/src/identity/sys-user.object.ts, packages/platform-objects/src/identity/action-state-visibility.test.ts, packages/platform-objects/src/identity/cloud-managed-visibility.test.ts, packages/platform-objects/src/identity/sys-user-set-manager-action.test.ts, packages/platform-objects/src/platform-objects.test.ts, packages/plugins/plugin-auth/src/auth-manager-plugin-list.ts, packages/plugins/plugin-auth/src/pending-sso-users.test.ts + packages/plugins/plugin-auth/src/auth-plugin.ts, packages/plugins/plugin-auth/src/admin-user-endpoints.ts, packages/plugins/plugin-auth/src/admin-import-users.ts, packages/plugins/plugin-auth/src/cloud-managed.ts, packages/spec/src/system/auth-config.zod.ts, packages/platform-objects/src/feature-gate-guard.test.ts (cited, compared across the merge, not reviewed)

Read at 2026-11-16T04:07Z. Delta review of this head against PASS 6905273540 at a2f47bb; claim: comment 6906913477; no lane request (owed per check-owed-reviews). Independence: implemented in an os-steve project thread; reviewed by os-tesla, who neither dispatched nor implemented it.

Inputs read: cards #34010 and #34130 with their comments; this PR's body and comments, the seat's ACCEPT 6905758989 and the two queue readings 6906446360 and 6906613015 included; the merge commit 508098ea against both parents; the 15 commits of main it brought; #34139 as it sits on main; the head's check-runs and the job list of queue build 43795201091. Nothing was built or run.

① Derived judgments

  1. The only change since a2f47bbd is the merge of main 7be32d39. Right. 508098ea has two parents, a2f47bbd and 7be32d39, and no commit follows it.
  2. The merge was not hand-resolved and lost nothing. Right. Its tree (fbc922d1) equals the tree git computes for the two parents on its own. On the 13 paths of this PR the merge is byte-identical to a2f47bbd. The net diff from the old base 571cf908 to a2f47bbd equals, hunk for hunk, the net diff from 7be32d39 to the merge, and the diff's path list is exactly the 13 files reviewed before. Every judgment of record 6905273540 (① 1 to 7) is carried on the new base.
  3. Nothing main brought touches what this PR declares. Right. The 15 commits (docs(pm-dispatch): name the two review steps L1 普通审核 and L2 契约审核 #34052, fix(objectql): the packaged object base carries the fields a code extender adds, so /meta translates a dependent package's added fields #34156, docs(adr-0055,skills-data): wording follow-ups from the writeRequiresMasterRead reviews #34075, docs(skills): field-types teaches the dynamic roll-up over a stored home amount #34076, pm: the sweep's favourable answer covers the raw status read only; PD14 names the arm's rows #34115, docs(adr): ADR-0048 status line — a bare doc read of a two-holder name refuses 409, outside the no-dependency carve-out #34131, fix(metadata-protocol): a position saved active through the meta save door carries its renamed holders at once #34181, fix(plugin-audit): name a lookup-titled record by its target's title in activity rows, and word boolean changes per locale #34172, docs(adr): ADR-0094 notes that a revertCommit projector failure reaches the caller #34138, feat(scenarios): --lang zh|en and --prompt short|detailed choose the prompts the agent is given #34185, fix(metadata-protocol, rest)!: the layered read of a name two packages hold refuses as the plain read does, naming the holders as details.candidates (ADR-0150 D3/D5) #33885, feat(spec)!: a lookupFilters value may read the record being edited ($record) and an entry may match an empty column (orEmpty) #34078, fix(lint)!: os build refuses a flow or hook condition that orders an injected column a stored row can hold null in, as the publish gate does #34129, fix(objectql): the bare-name refusal states the namespace rule for a narrowed type #33902, fix(service-automation)!: the connector pull door refuses an input key its read action does not declare, as connector_action does #34089) change 131 files. None is under packages/plugins/plugin-auth, packages/platform-objects, packages/spec/src/kernel, packages/spec/src/api, or content/docs/permissions; none adds or removes a requiresFeature or a read of features.admin. The six cited files are unchanged across the range. So on the merged tree the split is as read before: create_user and impersonate_user keep the admin gate and are the two booked paths of the registry entry; ban_user, unban_user, unlock_user and set_user_password carry none.
  4. fix(plugin-auth)!: a locked account is refused on every door that ends in a session for it #34139 is not in this head. Right. e7358922 is not an ancestor of 508098ea; it landed on main after 7be32d39. Its interaction is read forward in ③.
  5. The describe, the generated page, the two comments, the doc page and the pins still say what the merged tree does. Right, by 2 and 3: neither the text nor the code it describes moved.

② Semver level

Clause-②: no — upheld, unchanged from records 6902922670 and 6905273540. A merge of main adds nothing to this PR's own surface. Metadata-protocol: none stays right. Both changesets are byte-identical to a2f47bbd: @objectstack/platform-objects and @objectstack/spec at patch.

CI on the head: 69 check-runs, all completed, 59 success, 10 skipped, none failed, none in progress. This PASS is rendered on a finished, green set.

Queue build 43795201091 (this head merged over main 43dd5656, which holds #34139) failed in one job, Dogfood Regression Gate (3/3), on a timeout in package-commit-revert-path-package.dogfood.test.ts. All 8 Test Core shards of that build, which carry this PR's pins, succeeded. The seat read the ejection as not this PR's change (6906446360); I agree: the failed case is on the package commit revert path, the reason is a time budget and not an assertion, and the same case ejected #34220 the same way.

CI completed before posting: 69 check-runs on this head, 59 success, 10 skipped, none failed.

③ Boundary flags

④ Design judgment

No must-fix, no should-fix.

Status of the earlier findings:

N1 (nit) — continues N1 of record 6905273540. In content/docs/permissions/authentication.mdx the "Admin User Management" paragraph still says "All three routes" right after a sentence that names two of them. The sentence is true and predates this PR; the seat accepted it as is in 6905758989. No effect on the contract.

packages/spec/src/api/auth-endpoints.zod.ts (hits). Byte-identical to a2f47bbd. It still holds against the code it describes on the merged tree (① 3) and against the generated reference page, which the merge also left alone. Main's range changed eight files under packages/spec/src and seven spec baselines for other work; none is this file or reads this describe, and the generated-artefact lanes are green on the head.

packages/spec/src/kernel/public-auth-features.ts (hits). Byte-identical. The admin entry books exactly create_user and impersonate_user, which are exactly the two sys_user actions that carry the gate on the merged tree, so the lockstep guard's rule holds.

packages/platform-objects/src/identity/sys-user.object.ts, packages/plugins/plugin-auth/src/auth-manager-plugin-list.ts and the five test files (implementing). Byte-identical; the code they describe or drive is unchanged across the merge.

Attempts to break this head: a hand-resolved merge hiding a change (none, ① 2); a main commit that re-gates, re-books or re-words one of the four actions or their doors (none in the range, ① 3); a main commit that makes a doc line of this PR false (none; the one later commit near this surface, #34139, is read in ③ and does not); a pin that passes on the PR's merge but fails over current main (the queue build's Test Core is green over a main that holds #34139).

Implemented-by: claude/project-thread-0lotmu
Reviewed-by: session_01L9qibxTeW8xHnxoHxWNHWW

VERDICT: PASS

Merged via the queue into main with commit e0670b9 Nov 16, 2026
69 checks passed
@objectstack-fleet
objectstack-fleet Bot deleted the claude/project-thread-0lotmu branch November 16, 2026 04:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

documentation Improvements or additions to documentation size/m tests tooling Fix lands in tooling, not a product package — enters pm:queue only with Unblocks: or a named surface

Projects

None yet

2 participants