Skip to content

docs(qa): judge sign-out leftovers by who wrote them in console-sign-out-and-ended-session - #33936

Merged
objectstack-fleet[bot] merged 2 commits into
mainfrom
claude/project-thread-svkb8t
Nov 15, 2026
Merged

objectstack-fleet[bot] merged 2 commits into
mainfrom
claude/project-thread-svkb8t

Conversation

@objectstack-fleet

Copy link
Copy Markdown
Contributor

Requested by Steve · project thread

Fixes #33859

Clause-②: no
Metadata-protocol: none

维护者速读

  • 改了什么:平台测试清单 identity-auth.console-sign-out-and-ended-session 升到 r3,只改 acceptance[0] 的判定口径(登出后看「被登出用户留下的键」),外加一行 history。
  • 为什么改:QA 跑(QA run · touched:181ad7d4 (92/295) · a557fa38 · 2026-11-15 · 86 PASS / 3 PARTIAL / 3 FAIL / 0 BLOCKED / 203 NOT-RUN #33853)登出后登录页多出 flow-palette-recents = [],这是从未登录的匿名登录页自己也会写的空列表,不属于被登出用户;旧口径把它判成红,产品本身没错。
  • 风险与回滚:只改清单 JSON 文本,不动产品代码、不发布任何包;回滚即 revert 本 PR。
  • 先看:docs/qa/platform-checklist/areas/identity-auth.json 中该条目的 acceptance[0].verify 与 history r3。
  • 两分钟验证:pnpm check:platform-checklist,预期输出 OK — 16 areas, 429 items,锚点全部解析。
  • 需要你做的:无,席位落地。

What changes

Checklist text only; no product code, no pins, no changeset (skip-changeset: nothing under any package's files[] moves).

identity-auth.console-sign-out-and-ended-session r2 → r3, acceptance[0].verify. The old verify allowed only the kept keys after sign-out. On stock showcase the login page that follows sign-out also holds flow-palette-recents = [], and so does a never-signed-in browser opening /_console/login. The new verify:

  1. judges "no key the signed-out user's session wrote survives", the same test negative[1] already states;
  2. names today's anonymous-shell state exactly, key and value: flow-palette-recents holding []. Holding anything else is the signed-out user's and fails;
  3. lists the kept set as SIGNED_OUT_KEPT_KEYS has it on main, which now includes objectui:auth:signed-out-via-provider (the identity-provider round-trip note);
  4. tells the runner how to judge any other key outside both lists: compare it with a fresh never-signed-in context opening /_console/login. Same key with the same value there means anonymous-shell state, named in the run record so the verify can list it. Anything else is a FAIL.

evidence now also asks for the value of every key outside the kept set, since the judgment depends on it. The clause, negative[1] and the other two acceptance rows are unchanged. The history row carries ref: #PENDING-33859; a second commit replaces it with this PR's number.

Why name the key and value first, with the diff only as a fallback. The card offered either. A key-only diff against an anonymous visit would pass a leak that reuses the same key, for example user recents landing in the unscoped flow-palette-recents. Naming the value catches that. The diff fallback keeps a future anonymous-shell key from turning into a false red with no instruction.

Verification

Read against main @ 895783a1:

  • The sweep keeps only the kept set. ui/packages/auth/src/ActiveOrganizationStorage.ts purgeSignedOutUserClientState sweeps both stores against SIGNED_OUT_KEPT_KEYS, which is DEVICE_SCOPED_KEYS (auth-session-token, the session-user key, vite-ui-theme) plus objectui-locale, objectui-locale-seed and objectui:auth:signed-out-via-provider.
  • The anonymous key comes back after the sweep. ui/packages/app-shell/src/context/FlowPaletteRecentsProvider.tsx FlowPaletteRecentsProvider re-hydrates in an effect keyed on userId and always ends with saveLocal(list, userId). With no user, scopedKey(STORAGE_BASE_KEY, null) (UserStateAdapters.tsx) is the bare flow-palette-recents (PALETTE_RECENTS_KEY), and migrateLegacy returns the list unchanged when there is no user, so the value is [].
  • Live reading. See Acceptance notes: the anonymous login page and the post-sign-out login page both hold flow-palette-recents = [].

Acceptance notes

  • Live reading at 895783a1 (console built from this tree with pnpm build && pnpm console:build, stock showcase on a fresh port, Playwright, one context per leg):

    localStorage / sessionStorage per leg
    never-signed-in context, /_console/login:
      local:   flow-palette-recents = []          session: (empty)
    admin signed in, after writing qa-probe-L to both stores:
      local:   auth-active-organization-id:u:ID, auth-session-token, auth-session-user-id,
               flow-palette-recents:u:ID = [], objectui-favorites:u:ID, objectui-locale-seed,
               objectui-offline-queue, objectui-recent-items:u:ID, os:recovery-pw-first-seen, qa-probe-L
      session: objectui:metadata:app:ORG:..., qa-probe-L
    after Account menu, Log out (URL /_console/login, no redirect param):
      local:   auth-session-user-id, flow-palette-recents = [], objectui-locale-seed
      session: (empty)
    

    This matches the QA run · touched:181ad7d4 (92/295) · a557fa38 · 2026-11-15 · 86 PASS / 3 PARTIAL / 3 FAIL / 0 BLOCKED / 203 NOT-RUN #33853 reading. Under r2 the sign-out leg is a FAIL on flow-palette-recents. Under r3 every key left is in the kept set or is the named anonymous-shell key with value [], so the leg passes. Only the acceptance[0] leg was driven; the member landing and the revocation legs were not.

  • Product-side alternative (not done here, per the dispatch): FlowPaletteRecentsProvider could skip saveLocal when userId is null, and the old verify would hold as written. The write carries nothing of any user, so it is not filed as a defect.


Generated by Claude Code

🤖 Generated with Claude Code

https://claude.ai/code/session_01ADHkmQQ3seURgw7TAfvvx2

…out-and-ended-session

acceptance[0].verify listed the kept keys as the only keys allowed after
sign-out, but the anonymous login page writes its own
flow-palette-recents = [] (FlowPaletteRecentsProvider re-hydrates with no
user after the purge), exactly as a never-signed-in visit does. The verify
now judges keys the signed-out user's session wrote, as negative[1] does,
names that anonymous-shell key with its value, adds
objectui:auth:signed-out-via-provider to the kept list as
SIGNED_OUT_KEPT_KEYS has it, and diffs any other unlisted key against a
fresh anonymous visit. Item revision 2 -> 3.

Claude-Session: https://claude.ai/code/session_01ADHkmQQ3seURgw7TAfvvx2
Co-authored-by: Claude <noreply@anthropic.com>
@objectstack-fleet objectstack-fleet Bot added the skip-changeset PR has no user-facing published change; bypasses the changeset gate label Nov 15, 2026
@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

domain:devx#2 · os-steve · session_01ADHkmQTVjryTSkqydKVS6z

席位核对 · ACCEPT · head 4ca515104e · 2026-11-15T14:51Z

  • Shape: draft to main, first line Fixes #33859, Clause-②: no / Metadata-protocol: none at line start, skip-changeset. One file: docs/qa/platform-checklist/areas/identity-auth.json, item identity-auth.console-sign-out-and-ended-session only (+9/-3), rev 2 → 3, history ref is #33936. check-governed-merges --pr 33936: NOT governed, 12 lines.
  • Premise, measured: the dev rebuilt the console in-tree under the verify lock and drove a fresh showcase with Playwright at 895783a1: the anonymous login page holds only flow-palette-recents = []; after sign-out localStorage holds auth-session-user-id, flow-palette-recents = [], objectui-locale-seed, sessionStorage is empty — the card's reading. The verify now judges keys the signed-out user's session wrote (as negative[1]), names the anonymous-shell key WITH its value ([], so a leaked list under the same key still fails), and diffs any other unlisted key against a fresh anonymous visit. The seat checked the added kept key on origin/main: objectui:auth:signed-out-via-provider is in SIGNED_OUT_KEPT_KEYS (ui/packages/auth/src/ActiveOrganizationStorage.ts, L129–139).
  • Gates: check-runs on 4ca51510: 27 success, 19 skipped (path-filtered for a docs-only diff), 0 failure, 0 pending; mergeable_state clean; K = 0 merges behind base 895783a1; the dev's dispatch-gates derived 16 families on 4ca51510, --ran 16/16, 0 NOT-MEASURED; check:platform-checklist OK (report 6896306277).
  • Accepted deviations: the signed footer in the body came from the seat's order (now corrected); the seat keeps it.
  • Out of scope: none filed. The product-side alternative (FlowPaletteRecentsProvider skipping the write with no user) is recorded in the PR's Acceptance notes; the written value carries no user data, so it is not a defect.

@objectstack-fleet
objectstack-fleet Bot marked this pull request as ready for review November 15, 2026 14:51
@objectstack-fleet
objectstack-fleet Bot added this pull request to the merge queue Nov 15, 2026
Merged via the queue into main with commit 510fa08 Nov 15, 2026
47 checks passed
@objectstack-fleet
objectstack-fleet Bot deleted the claude/project-thread-svkb8t branch November 15, 2026 15:39
scbdzhwl pushed a commit to scbdzhwl/objectstack-analysis that referenced this pull request Nov 16, 2026
…ss-security, api-backend, approvals, ai, attachments-storage, dashboards) (objectstack-ai#34016)

<!-- claude-projects-attribution: {"github_login":"os-steve"} -->
_Requested by **Steve** · [project
thread](https://claude.ai/code/project/chan_01FdL1XeUyvVNxLreh3F4Qi9?thread=cmsg_01FdL1XeUyvVNxLreh3F4Qi9TTF1z3CcGg2atxzEGqXsh6)_

Fixes objectstack-ai#33967
Clause-②: no
Metadata-protocol: none

## 维护者速读

- 改了什么:平台测试清单 7 个 area 文件里 27 个条目的步骤/夹具/核对文字(批次 E 的 26 个条目,加 objectstack-ai#33968 交回的
1 个 SSO 条目),每条 revision +1 并加一行 history。
- 为什么改:18.5.0 发版测试时跑手按原文走不通或读错的地方(锚卡 objectstack-ai#33761 账本批次 E),不改的话下一轮跑手会重复踩坑。
- 风险与回滚:只动 docs/qa 下 7 个 JSON 文本,不动产品代码;回滚就是 revert 本 PR。
- 先看:api-backend.json 的 automation-namespace-address(flow
改为按命名空间一个持有者后整段改写)、identity-auth.json 的 SSO 三条(本地 IdP 何时才需要
OS_TRUSTED_ORIGINS)、dashboards.json 的 cube-query(缺席分支没有现成入口)。
- 两分钟验证:`pnpm check:platform-checklist`,预期最后一行
`check-platform-checklist: OK — 16 areas, 429 items`。
- 需要你做的:无,席位落地。

## What changes

Batch E of the v18.5.0 close-out ledger (comment 6896511848 on objectstack-ai#33761):
the item-text re-point rows for `identity-auth.json`,
`access-security.json`, `api-backend.json`, `approvals.json`, `ai.json`,
`attachments-storage.json` and `dashboards.json`, 31 rows over 26 items,
plus the two out-of-scope lines the runner-kit card objectstack-ai#33968 handed back
(report 6897030673). Every row was re-read at `origin/main` (the branch
starts at `bc6b7ffd`; no area file changed between the ledger's
`895783a1` and it except by the carriers objectstack-ai#33936, objectstack-ai#33929, objectstack-ai#33931 and
objectstack-ai#33981, none of which touches these items) and each edit starts from the
residue measured there. Every edited item has `revision` +1 and one
`history` row. The area files were edited as text spans by a script and
never re-serialised. One clause (acceptance `clause`) changed wording
without changing what it requires: `identity-auth.workspace-org-switch`
acceptance[3] now says "a role-neutral /meta read"; every other edit is
steps, fixtures, verify, negative or automated text.

| Ledger row(s) | Item | Clause edited | What changed |
|:--|:--|:--|:--|
| 2, 184 | api-backend.query-contract-matrix | acceptance[8].verify |
States the count: 30 rows, the 22 `op:*` variants (both spellings each)
and the 8 `param:*` rows, as `variants` lists them. Rows 2 and 184 are
one edit |
| 3 | access-security.rls-both-sides | acceptance[4].verify | QA read
`showcase_invoice` adopted too and `showcase_invoice_line` no longer
adopted; the verify now says to read the adopted set from the report
lines, not from a list. `summary.holes` must still be 0 |
| 19 | api-backend.action-activation-door-contract | automated.ref | The
4-segment 404 is `ROUTE_NOT_FOUND` (the pin's assertion,
`action-activation-door-live.dogfood.test.ts`), not byte-identical to an
unmounted path, which answers `ENDPOINT_NOT_FOUND` (`plugin-hono-server`
`adapter.ts`). The test file's own header comment says the same stale
thing; it is code and is not edited here |
| 20 | api-backend.client-sdk-namespace-address | fixtures.knownGaps[0]
| The bare `/actions` 409 with candidates is reachable live with the
family's two-package action fixture
(`api-backend.actions-namespace-address`); the gap now says this item's
fixture does not stage it and names the one that does |
| 21 | api-backend.actions-namespace-address | fixtures.requires[0] |
qa_b's stack is `defineStack(…, { strict: false })`: the strict parse
refuses a standalone action whose `objectName` is not in its own stack
("Action 'escalate' references object 'qa_a_ticket' which is not defined
in objects.", `packages/spec/src/stack.zod.ts`) |
| 23 | ai.mcp-namespace-faces | fixtures.requires[0], automated.ref |
Adds a third scratch package qa_c whose standalone `escalate` on
`qa_a_ticket` derives qa_a's face `qa_a_ticket-escalate` (OBJECT-ACTION,
`face-name.ts` `deriveAiFaceName`), so negative[2] is drivable live; a
namespace named after the object is refused at install (ADR-0150 D6) |
| 24 | access-security.permission-set-address-in-execution-context |
fixtures.requires[2] | The qa_a_ticket record is owned by M
(`owner_id`); on a private scratch object an admin-owned row reads 0
rows for M |
| 25 | access-security.record-view-read-audit | steps[0] | The audit
read uses the JSON filter form `$filter={"action":"read"}` (or the AST);
OData text answers 400 `INVALID_FILTER` (the normalizer parses `$filter`
as JSON, `protocol-data-crud.ts`) |
| 27 | attachments-storage.orphan-tombstone-reap | steps[1] | A restart
sweeps at the first tick only when `sys_lifecycle_state` row `lifecycle`
`last_swept_at` is older than one interval (1 h) (`lifecycle-service.ts`
`runFirstScheduledSweep`, objectstack-ai#29918); the step ages it before each restart
|
| 28 | attachments-storage.upload-session-abort | steps[3] | The sweep
leg names the same watermark rule |
| 29 | dashboards.analytics-exposure-gate-and-measure-aggregate |
steps[1] | The filter key is `where`; `filters` is refused 400 naming
`where` |
| 30 | identity-auth.idp-group-permission-set-mapping |
fixtures.requires[1] | Leave `OS_SSO_DOMAIN_VERIFICATION` unset (opt-in,
ADR-0135 D6); with it true SSO sign-in is refused "Provider domain has
not been verified" |
| 32 | identity-auth.auth-gate-held-session-raw-host-families |
fixtures.requires[1] | Warns that saving `mfa_required=everyone` with
grace 0 also holds the admin who saved it |
| 45 | api-backend.route-ledger-live-parity | title,
fixtures.requires[1], steps[3] | SEVENTEEN ledgers, not sixteen:
`packages/services/service-storage/src/attachment-removal-route-ledger.ts`
(one row, `DELETE /api/v1/attachments/:id`). steps[3] samples it with an
unknown id, which the own-row door answers 404 `RECORD_NOT_FOUND`
(`own-row-delete-routes.ts`), never with a real id |
| 46 | access-security.share-link-capability-tokens | steps[6] | The
record-gone leg deletes the brief as the admin; the minter persona gets
403 |
| 58, 193 | api-backend.automation-namespace-address |
fixtures.knownGaps[0], negative[3] | Since objectstack-ai#31696 flow (and connector)
is one holder per namespace (`NAMESPACE_SCOPED_BARE_NAME_TYPES`, read at
the base), so a second namespace's holder installs; each namespaced
address serves its own holder, and only the bare path, `_env` and a
third namespace answer 409 naming both (QA run objectstack-ai#33910). The
disabled-holder cases still rest on the runtime unit pins, named. Rows
58 and 193 are one edit |
| 66 | dashboards.cube-query | steps[0] | `analytics` is on
`PLATFORM_ALWAYS_ON_CAPABILITIES`, mounted on every served boot unless
`--preset minimal` (`capability-composition.ts`
`resolveServedCapabilities`), so the absent-slot arm has no stock door;
a run without a minimal-preset boot records it skipped with that reason.
Whether the showcase boots under `--preset minimal` was not measured |
| 67 | access-security.security-catalog-one-holder-and-boot-report |
acceptance[1].verify, fixtures.requires[1] | A permission set holds one
name per namespace (`security-catalog-namespace.ts`, ADR-0150 D2/D9), so
the conflicting manifest declares no namespace or the holder's; with its
own namespace the 422 names only the position |
| 68 | approvals.record-page-decisions | steps[9] | Click the name text
in the New approver option row (the row also carries a mailto link and a
copy button) |
| 69 | approvals.request-page-reply-and-reader-visibility |
acceptance[2].verify | The external member for the 403 leg is mintable
on a stock boot: `invite-member` with role `external`, sign-up with
`invitationId`, `accept-invitation` (both routes in
`auth-route-ledger.ts`), replacing "record that leg not exercised" |
| 71 | dashboards.global-filters-rescope | fixtures.requires[2] | The
scratch package body is `{id, name, version: '0.1.0', type: 'app'}`
(`label` is refused by the strict manifest); a scratch dashboard gives
its account widgets a `filterBindings` before the first save, else 422
`dashboard-filter-field-unknown` |
| 92, 94 | identity-auth.auth-method-matrix | fixtures.requires[0],
steps[3] | The generic OIDC variant has no env switch: read it on
`identity-auth.linked-accounts-social`'s scratch-copy OIDC boot (row
92). The PROD leg is `objectstack serve` with `OS_DATABASE_URL`,
`OS_AUTH_SECRET` and `OS_SECRET_KEY` (row 94) |
| 95, 96 | identity-auth.console-two-factor-prompt-phone-doors |
acceptance[3].verify, fixtures.requires[2] | The rendered wrong-password
text has no period; the period-ended literal is
`ui/packages/auth/src/createAuthClient.ts`'s no-token fallback (row 95).
Read the code from the log line's `body:` field; a six-digit grep
catches the `dev-sms-EPOCHMS-N` messageId digits (`sms-service.ts`) (row
96) |
| 97, 98 | identity-auth.linked-accounts-social | fixtures.requires[1],
steps[5] | The IdP test identity carries the caller's email (else
`error=email_does_not_match`) (row 97). The data door serves no
aggregate route at the base (no `/aggregate` route in the REST or
runtime source): GET answers 404 `RECORD_NOT_FOUND`, POST 405; the stale
"bare aggregate 400" is dropped (row 98) |
| 104 | identity-auth.sso-enforced-first-paint | fixtures.requires[1] |
Not a bespoke-env item: a stock showcase with `OS_SSO_ENABLED`,
`OS_AUTH_SSO_ONLY` and a runtime-registered provider satisfies it |
| 105 | identity-auth.workspace-org-switch | acceptance[3].clause,
acceptance[3].verify | Names a role-neutral `/meta` read
(`/meta/object/showcase_task`); `/meta/app` filters apps by the caller's
per-org grade. The clause still requires deployment-level metadata |
| found while doing objectstack-ai#33967, source objectstack-ai#33968 report 6897030673 (line 1) |
identity-auth.sso-provider-groups-claim, plus the same wording in
identity-auth.idp-group-permission-set-mapping fixtures.requires[1] and
identity-auth.auth-method-matrix fixtures.requires[2] |
fixtures.requires[0] | A dev boot (`os dev`) already trusts
`http://localhost:*` (`packages/cli/src/commands/serve.ts` adds it when
the boot is a dev boot; `@better-auth/sso`'s `validateOIDCEndpointUrl`
skips a trusted origin), so `OS_TRUSTED_ORIGINS` is needed only on a
production boot or another private origin. PR objectstack-ai#33997 (`qa-fixture.mjs
oidc-stub`) is not merged at the base, so no item cites the script |
| found while doing objectstack-ai#33967, source objectstack-ai#33968 report 6897030673 (line 2) |
api-backend.actions-namespace-address,
api-backend.automation-namespace-address | negative[2];
fixtures.knownGaps[0] | Where the item removes an installed package
(actions negative[2]) or names why one cannot be removed (automation
knownGaps[0]), it names `DELETE
/api/v1/marketplace/install-local/MANIFEST_ID`; `DELETE
/api/v1/packages/ID` answers 422 `WRITABLE_PACKAGE_REQUIRED`.
`api-backend.client-sdk-namespace-address` has no removal step, so
nothing is added there |

No row was already right at the base, and none moved to another carrier.

Forced test changes: none.

## Tests

No code changed. `pnpm check:platform-checklist` and the gate families
`node scripts/pm/dispatch-gates.mjs --commands` derives for this diff
were run on the final head; the commands, exit codes and the `--ran`
reconciliation are in the os-dev-report comment on objectstack-ai#33967.

## Acceptance notes

- Structural proof: the span editor asserted, per area file, that the
new document equals the old one plus the declared operations
(value-equal), that every other item is value-equal, and that the text
outside the edited items is byte-identical.
- Not on this card's rows, noted only:
`access-security.permission-set-address-in-execution-context`
fixtures.knownGaps[0] still says two packages each shipping
`qa_a_reader` is not reachable through install, but a permission set has
been one name per namespace since ADR-0150 D2/D9
(`security-catalog-namespace.ts`), so two namespaces can now each hold
it; and the header comment of
`packages/qa/dogfood/test/action-activation-door-live.dogfood.test.ts`
(line 19) still says "byte-identical to an unmounted path" while its own
assertion reads `ROUTE_NOT_FOUND`.
- QA readings the edits rest on and that were not re-driven live here:
rows 3, 32, 46, 68, 69, 92, 94, 95, 97, 104 and 105 (each names its QA
run); the source half of each was re-read at the base.

## Verification

- `pnpm check:platform-checklist` → `check-platform-checklist: OK — 16
areas, 429 items (421 active, 3 planned)`.

---
_Generated by [Claude
Code](https://claude.ai/code/session_01ADHkmRzWLM3UvUUerHXiy9)_

<!-- signed: domain:devx#2 · os-steve · session_01ADHkmQTVjryTSkqydKVS6z
-->

---------

Co-authored-by: Claude <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

size/s skip-changeset PR has no user-facing published change; bypasses the changeset gate

Projects

None yet

Development

Successfully merging this pull request may close these issues.

checklist: console-sign-out-and-ended-session acceptance[0] kept-key list misses the anonymous shell's own flow-palette-recents = "[]"

2 participants