Repository navigation
docs(qa): v18.5.0 sweep runner kit — qa-fixture --help and oidc-stub, RUNNER.md runner facts - #33997
Merged
Merged
Conversation
…dc-stub FIXTURE --help used to reach parseArgs, which read --help as one more flag and ran the fixture named before it. A help request anywhere on the line (--help, -h, or the help command) now prints the synopsis from the file's own header and exits 0 with nothing run. oidc-stub serves a local OIDC discovery document and a per-run JWKS from a detached process teardown stops, prints the boot variables and the register body, and with --register registers it as the admin and reads it back. Claude-Session: https://claude.ai/code/session_01ADHkmNeaCFJ1eiu2gxYU1J Co-authored-by: Claude <noreply@anthropic.com>
Per-file pin lines need --reporter=tree in a non-TTY shell; pnpm --dir exec resolves a relative os test glob inside the app; the pre-release registry's uplink trust, user door, body limit and the npm publish ./ path; an installed-local package leaves through the install-local DELETE door; a held port moves a second boot onto the same file DB; the oidc-stub fixture. qa-fixture's oidc-stub output names OS_TRUSTED_ORIGINS only for a boot that is not os dev, which trusts http://localhost:* already. Claude-Session: https://claude.ai/code/session_01ADHkmNeaCFJ1eiu2gxYU1J 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 #33968
Clause-②: no
Metadata-protocol: none
维护者速读
qa-fixture.mjs的--help不再误跑夹具,新增本地 OIDC 身份提供方夹具oidc-stub;RUNNER.md 补六条跑手环境事实(逐条实测)。scripts/qa/qa-fixture.mjs(help 分支与 oidc-stub 段),docs/qa/platform-checklist/RUNNER.md(新增条目)。node scripts/qa/qa-fixture.mjs broken-upstream-app --help; echo $?应只打印用法、退出 0,/tmp下不出现新的qa-broken-upstream-*目录。What changes
The runner-kit rows of the v18.5.0 sweep ledger (anchor #33761, ledger comment 6896511848), each re-read at
origin/main895783a1and measured on this branch.qa-fixture.mjs FIXTURE --helpruns the fixture--help,-h, or thehelpcommand) prints the synopsis and common flags, read from the script's own header so the two cannot drift, and exits 0 with nothing run. It is read off the raw arguments beforeparseArgs.--reporter=verboseverboseprints one line per test and still no file line;--reporter=treeprints✓ … src/env.test.ts (63 tests). RUNNER.md says--reporter=tree, with the three readings.DELETE /api/v1/packages/IDanswers 422WRITABLE_PACKAGE_REQUIRED, andDELETE /api/v1/marketplace/install-local/MANIFEST_IDremoves it at once with no restart (measured), with its 409 cases read from the door's header.NODE_OPTIONS/SSL_CERT_FILE(a cleared environment answers 404 "no such package available"), the user doorPUT /-/user/org.couchdb.user:NAME, andmax_body_size(12 MB tarball: E413 at default, published at 100mb).scripts/qafixtureqa-fixture.mjs oidc-stub: discovery + per-run JWKS onlocalhostfrom a detached processteardownstops;--registerregisters it as the admin and reads it back. RUNNER.md entry added.os devtakes the next free port silentlypnpm --dir APP exec … 'qa/*.test.json'resolves inside APPnpm publish tarballs/x.tgzneeds././npm 10.9.9 runsgit ls-remote ssh://git@github.com/tarballs/…and exits 128; with./it publishes.Tests
qa-fixture.mjshas no self-test, so none was extended; no test file changed. The readings below are the evidence.--help, before and after
Before, at
895783a1:After, at
6ee7aa00:broken-upstream-app --help,--help,-h,help,walled-boot --port 1 --helpandteardown -heach exit 0 with the 14-line usage on stdout, nothing on stderr, and no new/tmp/qa-broken-upstream-*directory. A bare call with no fixture still refuses, exit 2.oidc-stub, live
teardown --dir DIRstopped the recorded process group and a request to the stub then got no answer.os devshowcase boot on 41900 withOS_SSO_ENABLED=true(itsOS_TRUSTED_ORIGINSnamed another stub port):oidc-stub --register --base-url http://localhost:41900 --groups-claim groupsexit 0, read backgroupsClaim: groups.os devboot on 41910 withOS_SSO_ENABLED=trueand noOS_TRUSTED_ORIGINS:--registerexit 0. TheisDevdefault inpackages/cli/src/commands/serve.tstrustshttp://localhost:*, so the fixture printsOS_TRUSTED_ORIGINSonly for a boot outsideos dev(that refusal read from source, not booted).OS_SSO_ENABLED: the register door answered 404SSO_REGISTER_FAILED.Acceptance notes
--reporter=verbose; the reading shows it gives no per-file line, so RUNNER.md names--reporter=tree. The ~50 item clauses that ask for "the summary line per pin file" are item text, left to the batch cards.fixtures.requires[0]says a local IdP origin must be inOS_TRUSTED_ORIGINS; on anos devboot it need not be (measured above). Item text, left to the batch cards.origin/mainby commits that touch neither changed file.Verification
Gates at 6ee7aa0
node scripts/pm/dispatch-gates.mjs --commands --repo objectstack-ai/objectstackderived 32 families; each ran with stdin from/dev/nulland exited 0.--ranreconciliation: 32 derived, 32 run, 0 NOT-MEASURED, 0 UNRUN. Fullpnpm build --concurrency=2under the verify lock: VERDICT command-exit 0, 119 tasks.Generated by Claude Code