Repository navigation
docs(qa): judge sign-out leftovers by who wrote them in console-sign-out-and-ended-session - #33936
Merged
Merged
Conversation
…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>
… at #33936 Claude-Session: https://claude.ai/code/session_01ADHkmQQ3seURgw7TAfvvx2 Co-authored-by: Claude <noreply@anthropic.com>
Contributor
Author
|
domain:devx#2 · os-steve · session_01ADHkmQTVjryTSkqydKVS6z 席位核对 · ACCEPT · head
|
This was referenced Nov 15, 2026
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>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Requested by Steve · project thread
Fixes #33859
Clause-②: no
Metadata-protocol: none
维护者速读
identity-auth.console-sign-out-and-ended-session升到 r3,只改 acceptance[0] 的判定口径(登出后看「被登出用户留下的键」),外加一行 history。flow-palette-recents = [],这是从未登录的匿名登录页自己也会写的空列表,不属于被登出用户;旧口径把它判成红,产品本身没错。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'sfiles[]moves).identity-auth.console-sign-out-and-ended-sessionr2 → 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 holdsflow-palette-recents=[], and so does a never-signed-in browser opening/_console/login. The new verify:flow-palette-recentsholding[]. Holding anything else is the signed-out user's and fails;SIGNED_OUT_KEPT_KEYShas it onmain, which now includesobjectui:auth:signed-out-via-provider(the identity-provider round-trip note);/_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.evidencenow 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. Thehistoryrow carriesref: #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:ui/packages/auth/src/ActiveOrganizationStorage.tspurgeSignedOutUserClientStatesweeps both stores againstSIGNED_OUT_KEPT_KEYS, which isDEVICE_SCOPED_KEYS(auth-session-token, the session-user key,vite-ui-theme) plusobjectui-locale,objectui-locale-seedandobjectui:auth:signed-out-via-provider.ui/packages/app-shell/src/context/FlowPaletteRecentsProvider.tsxFlowPaletteRecentsProviderre-hydrates in an effect keyed onuserIdand always ends withsaveLocal(list, userId). With no user,scopedKey(STORAGE_BASE_KEY, null)(UserStateAdapters.tsx) is the bareflow-palette-recents(PALETTE_RECENTS_KEY), andmigrateLegacyreturns the list unchanged when there is no user, so the value is[].flow-palette-recents=[].Acceptance notes
Live reading at
895783a1(console built from this tree withpnpm build && pnpm console:build, stock showcase on a fresh port, Playwright, one context per leg):localStorage / sessionStorage per leg
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):
FlowPaletteRecentsProvidercould skipsaveLocalwhenuserIdis 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