Skip to content
This repository was archived by the owner on Nov 4, 2026. It is now read-only.
This repository was archived by the owner on Nov 4, 2026. It is now read-only.

console: the password-change overlay covers the impersonation banner, so an admin impersonating a held user can only sign out — "Stop impersonating" is hidden behind it #13208

Closed

Description

@objectstack-fleet

Filing gate ①, class (a): a user-visible defect with a public-door reproduction and a named landing.

Reader (who acts): objectui triage routes it to the lane that owns packages/app-shell (the domain:ui seat). Filed by domain:services seat 2 of objectstack-ai/objectstack (seat post objectstack-ai/objectstack#21118) · os-support-ai · session_01UmqzD97e14iws6hmVhgZ5y, from the readings on objectstack-ai/objectstack#24762 (the readings-only report on that card). ⛔ Not a claim. Grade and lane are triage's.

What happens

Where (read at objectstack's console pin .objectui-sha 12dc7b47c3, by code; not rendered)

  • packages/app-shell/src/console/ConsoleShell.tsx mounts ImpersonationBanner in flow, and RemediationOverlay after the routes.
  • RemediationOverlay.tsx is fixed inset-0 z-[200] over a near-opaque background. ImpersonationBanner.tsx is sticky top-0 z-50, and its "Stop impersonating" button is the working exit. So the overlay covers the banner and takes its clicks.
  • The overlay's own actions are the change-password form (and, for MFA_REQUIRED, authenticator enrolment) and "Sign out instead". Nothing in it reads session.impersonatedBy. So it offers an impersonator the target's own credential forms.

Expected shape: when the session carries impersonatedBy, the overlay offers "Stop impersonating" (the banner's stop logic, shared rather than copied). It stops offering the target's credential forms to the impersonator, and says the user must change the password themselves. ⛔ No server change is needed for this: the exit is already unheld.

objectstack-ai/objectstack#24762 separately asks the maintainer whether a forced password reset should bind an impersonation session at all. This card is right whatever that answer is, because a posture can also arrive mid-session (an expiry, or MFA grace ending).

Dedupe

objectui, MCP search_issues, open and closed, "impersonation banner stop impersonating hidden remediation overlay change password": 2 hits, objectui#4304 and objectui#4467 (both closed). They added the banner and its exit, and neither covers the overlay hiding it. objectui#12365 (closed) added the overlay. New.

Dedupe words: remediation overlay covers impersonation banner; stop impersonating hidden; impersonate held user change password.


Generated by Claude Code

Activity

  1. objectstack-fleet commented on Oct 20, 2026

    @objectstack-fleet
    ContributorAuthor

    Pointer — director seat, summon #46, session_013414Vtz3Z8PrXFetUziHoh, 2026-10-20T10:24Z. ⛔ Not a claim; not a grade.

    objectstack-ai/objectstack#24762 was ruled E (objectstack-ai/objectstack#24762 comment 6288774214, maintainer 「同意」): its server half (B1) goes to the services lane there, and its console half is this card (C). The ruling's item 6 binds this card's shape: on an impersonation session (session.impersonatedBy set), the remediation overlay offers "Stop impersonating", and it no longer offers the target's change-password or MFA-enrolment forms to the impersonator. Under E the overlay still appears on an impersonation session for MFA_REQUIRED (account scope) and for any posture that arrives mid-session. This card does not wait on B1 and B1 does not wait on it. Triage's first touch (domain:*, area:*, grade) is still owed; the objectstack console pin bump follows its landing.


    Generated by Claude Code

  2. added
    area:identity
    bug
    domain:ui
    and removed on Oct 20, 2026
  3. objectstack-fleet commented on Oct 20, 2026

    @objectstack-fleet
    ContributorAuthor

    Claim: PM loop round 1 (priority:p2, bug)
    Session: session_01GL347th7aWQUnY2k8diSLG
    Account: os-support-ai (the seat's linked user as GET /user answers it; the card's assignee)
    Branch: claude/issue-13208-overlay-stop-impersonating
    Worktree: objectui-issue-13208
    Domain: domain:ui
    Seat: domain:ui#3
    File surface: packages/app-shell/src/console/RemediationOverlay.tsx (read at objectui main 52907d7): on an impersonation session (session.impersonatedBy set) the overlay offers "Stop impersonating", and it no longer offers the target's change-password or MFA-enrolment forms to the impersonator; it says the user must do that themselves. The stop logic of packages/app-shell/src/layout/ImpersonationBanner.tsx is shared, not copied (a helper inside app-shell, not added to the package entry). New copy in the locale packs the parity gates require. Tests beside both. One .changeset/13208-overlay-stop-impersonating.md (@object-ui/app-shell patch, plus @object-ui/i18n if a pack moves). ⛔ No server change. ⛔ No new package export or prop. ⛔ The overlay still appears on an impersonation session for any posture the server reports (the server half, B1, is the objectstack services lane's). Stop on breach; explain in the report.
    Container & model: S, mode:subagent, model: opus (default tier; dispatch-gates --tier --repo objectstack-ai/objectui over this surface reads no path-derived mandate)
    Clause-②: no
    Responsibility: the risk is produced by objectui's own RemediationOverlay, which covers the impersonation banner (fixed inset-0 z-[200] over the banner's sticky z-50) and never reads session.impersonatedBy, so an impersonating admin is offered the target's credential forms and can only sign out. The platform path that covers it: the server exit /admin/stop-impersonating is deliberately unheld, and the banner already calls it; only the overlay hides it. Who reaches it: every admin who impersonates a user held by a posture (measured: a user with "Require password change on next login").
    Thread-read: 6288799348
    The ruling binds the shape: objectstack-ai/objectstack#24762 comment 6288774214 (maintainer 「同意」, letter E), item 6: 「On an impersonation session the overlay offers "Stop impersonating", and it no longer offers the target's remediation forms to the impersonator.」
    Serial constraints cleared: open objectui PRs touching RemediationOverlay.tsx, ImpersonationBanner.tsx or ConsoleShell.tsx: none (the eleven open PRs' file lists were read at this claim). The ruling says this card does not wait on B1.

    Why Clause-②: no: a console overlay offers an exit the console already has. No export, prop, schema key or accept set of a published package moves.

    Claimed at: 2026-10-20T11:15Z


    Generated by Claude Code

  4. objectstack-fleet commented on Oct 20, 2026

    @objectstack-fleet
    ContributorAuthor

    os-dev-report
    {
    "issue": 13208,
    "status": "done",
    "branch": "claude/issue-13208-overlay-stop-impersonating",
    "pr": "#13249",
    "session": "session_01GL347th7aWQUnY2k8diSLG — the dispatching seat's session (subagent run; the harness stamps the parent's id)",
    "premise_still_valid": true,
    "summary": "On an impersonation session (session.impersonatedBy set) RemediationOverlay now renders a third face, ImpersonationExitPanel: a posture title naming the impersonated user, a sentence that only they can do it themselves, a Stop impersonating button, and Sign out instead. It no longer renders the change-password form or MFA enrolment to the impersonator. On restore it clears the gate and reloads, the way its other two successes do. A rejected stop, or one that restores nobody, keeps the overlay up and says so. The ordinary-session overlay is unchanged, and the overlay still appears for every posture the server reports. The banner's stop logic moved, not copied, into packages/app-shell/src/layout/useImpersonationExit.ts, which is internal: not on layout/index.ts and not on the package entry. It holds the POST to stop-impersonating over createAuthenticatedFetch, refreshSession, the failure toast, and an outcome read from the re-resolved session. ImpersonationBanner renders from it, with its markup, copy and test ids unchanged. Bounded in-place repair, declared in the PR body: before any edit, a probe pin on base ab4e4d7 measured the banner, after a stop that worked, reporting a LATER impersonation (no reload in between) as a failed stop (impersonation-not-restored). The banner's attempted flag was never tied to a session. The hook now ties a stop's outcome to the session token it was made from. All three PM mechanism assumptions measured true on main ab4e4d7, and the regions the card cites at 52907d7 were unchanged. (1) The overlay is fixed inset-0 z-[200] over bg-background/95, its actions are the forms plus Sign out, and it read no impersonatedBy. (2) The banner owns the exit through createAuthenticatedFetch (adopting set-auth-token), then refreshSession. (3) impersonatedBy comes from useAuth().session.",
    "tests": "Head f9951e6. Every run is repo-root pnpm exec vitest run through os-verify-lock.sh, with the VERDICT lines quoted. (a) ImpersonationBanner.test.tsx + RemediationOverlay.passwordResetRequired-12365.test.tsx + RemediationOverlay.impersonation-13208.test.tsx: Test Files 3 passed (3), Tests 14 passed (14), VERDICT command-exit 0. (b) --maxWorkers=2 over packages/app-shell/src/console/tests/, packages/app-shell/src/layout/tests/, packages/app-shell/src/tests/product-neutral-renderer.ratchet.test.ts and the 8 apps/console tests that name ConsoleShell: Test Files 162 passed (162), Tests 1112 passed (1112), VERDICT command-exit 0. (c) packages/i18n/ (locale parity incl. authRemediation-locale-parity, all-locales-key-parity, untranslated-identity): Test Files 84 passed (84), Tests 1319 passed | 13 skipped, VERDICT command-exit 0. Probe before any edit, on base ab4e4d7: the new banner pin 'a LATER impersonation, after a stop that worked, is not reported as a failed stop' went red (Tests 1 failed | 5 passed; it received the impersonation-not-restored element). Ablations ran on the committed head through objectstack scripts/ablation-replace.mjs in WRAP mode. Each printed 'ok mutation landed' with the anchor count 1 to 0, then 'ok restored: blob == HEAD and git diff HEAD is empty'. No dist leg: the subjects are imported by relative path. A1, overlay face off (const impersonating = false;): 5 failed | 1 passed, every impersonation case red and the ordinary-session case green. A2, hold dropped (Boolean(exit.impersonatedBy) only): 1 failed | 5 passed, the Stop case red with 'expected true to be false' on the form-ever-shown watch. A3, outcome untied from its session: 1 failed | 11 passed, the banner re-impersonation pin red. A3's first attempt was a refused no-op: the replacement was the bare word 'finished', which already occurs in the file. The tool exited 1 with 'replacement count moved 8 to 6' and restored, and no test ran. It was re-run with a marker-comment replacement.",
    "gates": "Hand-derived for objectui per the dispatch. objectstack dispatch-gates.mjs is not used because it answers for objectstack's tree, so there is no --ran reconciliation. Local gates on head f9951e6, each exit captured before any pipe. pnpm --filter @object-ui/app-shell type-check exit 0: script echoed 'tsc --noEmit && tsc -p tsconfig.test.json', VERDICT command-exit 0. The test config does include the new test file: an earlier run reported TS2345 from it, at 27cb504, before the reload mock was typed. pnpm --filter @object-ui/i18n type-check exit 0 (script echoed). pnpm check:i18n-keys exit 0 ('Every in-scope call-site key resolves against the en pack'). pnpm check:i18n-drift exit 0 ('0 en value(s) changed (3 key(s) added...)'). pnpm check:i18n-dead-keys exit 0, and its report names none of the new keys. pnpm check:new-line-citations exit 0 ('VERDICT new-cross-file-line-citations: 0 new citation(s)'). pnpm check:control-bytes exit 0. node scripts/check-changeset-presence.mjs exit 0, declaring 1 changeset. pnpm check:changeset-claims exit 0 ('No pending changeset names a file this change touches'). The dependency closure was built first: pnpm turbo run build --filter='@object-ui/app-shell^...' --concurrency=2, Tasks 28 successful, VERDICT command-exit 0. CI check-runs on PR head f9951e6 as they stood at report time: total 35. Success: Changeset Bump Policy, Changeset Fixed Group Check, label. Skipped: Test (coverage), Test (coverage shard N/8), dependabot. The other 29 were in_progress: Lint, Type Check, Repo Gates, Test shards 1-16, Test (dist pins), Build and E2E, Build Docs, Bundle Analysis, Changeset Declaration, Changeset Claim Re-read, Changeset Overwrite Report, Governed Surface Queue Guard, Line Citation Gate, Live E2E (informational). I did not wait on CI. NOT MEASURED locally: the full app-shell package suite beyond the 162 files above, repo-wide lint, and the full farm. Those are CI's.",
    "mcp_calls": "0",
    "api_writes": "2 — (1) pr_create through scripts/pm/fleet-write/dispatch.mjs --repo objectstack-ai/objectui. It sent POST /repos/objectstack-ai/objectstack/dispatches (HTTP 204), and the relay executed POST /repos/objectstack-ai/objectui/pulls (draft) plus POST /repos//issues/13249/assignees [os-support-ai]. The relay read back 7000 bytes sent and 7000 stored, identical. My own REST read-back: body identical, draft true, assignee os-support-ai, labels only the labeler's path labels, none written by me. (2) This os-dev-report comment, posted with post-stamped.mjs --comment=13208 --repo=objectstack-ai/objectui as POST /repos//issues/13208/comments. Also three git pushes (not REST): the empty-branch probe, 27cb504, and f9951e6. REST reads: the card, its comments, PR 13249, and the head's check-runs.",
    "open_questions": [],
    "out_of_scope_findings": [
    "carrier: none · noted, not filed — no README or content/docs page describes the remediation overlay or the impersonation banner. AGENTS #2 asks for docs on a feature, but docs are outside the claim's file surface, so none were added. Recorded in the PR's Acceptance notes.",
    "carrier: none · noted, not filed (read-only inference, not measured) — after a stop from the banner with no overlay up, the console does not reload. Data fetched as the impersonated user can stay on screen until it is refetched. The overlay path reloads. Recorded in the PR's Acceptance notes."
    ],
    "browser_reading": "On a stock showcase backend (--seed-admin), as the seeded platform admin: Setup, then Users. Run a user's Set Password action with 'Require Password Change On Next Login' left on, which is the default. Create User with 'Require Password Change On First Login' does the same. Then run that user's Impersonate User action (list_item or record_header) and confirm. The next data request answers 403 PASSWORD_RESET_REQUIRED and raises the overlay. Selectors: overlay face [data-testid=remediation-impersonation-exit], its Stop [data-testid=remediation-impersonation-stop], its failure lines remediation-impersonation-stop-error and remediation-impersonation-not-restored. The banner is [data-testid=impersonation-banner] and its Stop is [data-testid=impersonation-stop].",
    "deviations": "(1) Bounded in-place repair outside the overlay itself: the banner's stop outcome is now tied to its session. All four conditions hold: the same impersonation-exit state class; a mechanical repair pinned by the probe; a file the claim surface already names (the banner's stop logic and tests beside it), which no other claim holds; and the same gate family. It is declared in the PR body with the probe evidence. (2) Commit trailers use AGENTS.md's model-free pair (Claude-Session plus 'Co-authored-by: Claude'), not the harness reminder's model-named Co-Authored-By. AGENTS.md takes precedence. (3) Docs were not updated (see out_of_scope_findings). (4) The overlay reuses the impersonation.banner.stop, stopping, stopFailed and notRestored strings rather than duplicating them under auth.remediation. Only 3 new keys were added. (5) Worktree cleaned: node_modules removed, then 'git worktree remove' without --force, exit 0. The local branch ref created by the instructed 'worktree add -b' remains in the shared .git.",
    "line_budget": "16 files, +553 / -64 vs base ab4e4d7 (git diff --shortstat). No governed surface, managed ledger or skills/** file is touched, so no line ratchet applies.",
    "files_changed": [
    ".changeset/13208-overlay-stop-impersonating.md",
    "packages/app-shell/src/console/RemediationOverlay.tsx",
    "packages/app-shell/src/console/tests/RemediationOverlay.impersonation-13208.test.tsx",
    "packages/app-shell/src/layout/ImpersonationBanner.tsx",
    "packages/app-shell/src/layout/tests/ImpersonationBanner.test.tsx",
    "packages/app-shell/src/layout/useImpersonationExit.ts",
    "packages/i18n/src/locales/{ar,de,en,es,fr,ja,ko,pt,ru,zh}.ts"
    ]
    }


    Generated by Claude Code

  5. objectstack-fleet commented on Oct 20, 2026

    @objectstack-fleet
    ContributorAuthor

    ACCEPT → PR #13249 comment 6290737213 · domain:ui seat 3, session_01GL347th7aWQUnY2k8diSLG · 2026-10-20T12:23Z · head f9951e6 · live impersonation reading in the record (ruling objectstack-ai/objectstack#24762 item 6 followed) · landing through the merge queue.


    Generated by Claude Code

  6. objectstack-fleet commented on Oct 20, 2026

    @objectstack-fleet
    ContributorAuthor

    Landed · domain:ui seat 3, session_01GL347th7aWQUnY2k8diSLG · 2026-10-20T12:37Z

    reading result
    PR #13249 MERGED through the merge queue, merge commit e70c21d on main
    queue branch gh-readonly-queue/main/pr-13249-* absent (git ls-remote: 0 refs)
    origin/main e70c21d RemediationOverlay.tsx: function ImpersonationExitPanel (1) · packages/app-shell/src/layout/useImpersonationExit.ts present

    State: the card closed completed by the PR's Fixes; pm:dispatched is removed in this pass. The live impersonation reading is in the ACCEPT, 6290737213. This is ruling objectstack-ai/objectstack#24762 item 6 (C); per that ruling the objectstack console pin bump follows (lanes/ui.md), and the server half (B1) stays with the objectstack services lane.


    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:identitybugdomain:uipriority:p2

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions