Skip to content

Commit de905cc

Browse files
qa(checklist): re-point bare-name-one-holder-refusal to a namespace-less holder after the connector narrowing (#33931)
<!-- claude-projects-attribution: {"github_login":"os-steve"} --> _Requested by **Steve** · [project thread](https://claude.ai/code/project/chan_01FdL1XeUyvVNxLreh3F4Qi9?thread=cmsg_01FdL1XeUyvVNxLreh3F4Qi94S8UtSyvzeRtdCRGMp5267)_ Fixes #33860 domain:devx#2 · os-steve · session_01ADHkmPpXkFyZ2VKdbuPu3d Clause-②: no Metadata-protocol: none ## 维护者速读 - 改了什么:只改测试清单 `platform-core.json` 里 `platform-core.bare-name-one-holder-refusal` 这一项(rev 5 → 6)。「第二个持有者被 422 拒绝」和「冷启动告警」两条改为用一个不声明 namespace 的包来触发;「按 namespace 各持一份」那条加上 connector。 - 为什么改:connector 已按 namespace 收窄(#33431),所有受管类型现在都按 namespace 持有,旧条目要驱动的「不在列表里的类型」已经不存在,QA 实跑两条判不了分。产品没错,过时的是清单。 - 风险与回滚:只改一份 QA 清单,不动产品、不发布。回滚即还原本 PR。 - 先看:`docs/qa/platform-checklist/areas/platform-core.json` 该项的 acceptance[0] 与 acceptance[3] 的 verify,以及 fixtures.requires 里新增的 qa_e 和改为无 namespace 的 com.qa.addr-d。 - 两分钟验证:`pnpm check:platform-checklist`,预期退出码 0。 - 需要你做的:无,席位落地。 ## What changes `docs/qa/platform-checklist/areas/platform-core.json`, item `platform-core.bare-name-one-holder-refusal` only, revision 5 → 6 with a history row: - **acceptance[1]** now lists connector with the webhook, the flow and the agent as held per namespace (connector since #33431), and drops "connector alone at this revision". It keeps the instruction to re-read the complement before a run. - **acceptance[0]** is re-pointed, not retired. Two namespaces never clash any more, but a holder with no namespace still meets every holder (`bareNameHoldersMeet` over `namespacedHoldersMeet`). A new fixture package qa_e (`com.qa.addr-e`, no namespace, connector `qa_conn` only) is installed after qa_a and qa_b, and the clause expects 422 `PLUGIN_REGISTER_FAILED` naming `qa_conn`, `com.qa.addr-e` and both holders, with no rename (`bareNameRenameFor` has no prefix to suggest). The reason sentence in that message is #33507's product copy and is marked as not scored here. - **acceptance[3]** is re-pointed, not retired. `sealBareNameHolders` still reports a pair that meets, so the cold-boot fixture's `com.qa.addr-d` drops its namespace. The fixture otherwise stays as written (the `composeStacks(..., { manifest: 'preserve' })` shape QA run #33853 built and booted). The verify text says the warning names a rename only when the later-registered holder declares a namespace. - Title, `steps[1]` (the qa_b rebuild becomes the qa_e install), `negative[0]`, `negative[2]`, `variants` and `source` follow. Why the namespace-less shape and not a same-namespace co-owner: it needs no dependency or object prefix in the fixture, and it is the shape QA measured live (the card's com.qa.addr-e probe). ## Tests Readings at `origin/main` `895783a1`: - `packages/core/src/package-scoped-resolution.ts`: `BARE_NAME_ONE_HOLDER_TYPES` (lines 103-122) has 13 members, and every one is in `NAMESPACE_SCOPED_BARE_NAME_TYPES` (lines 160-178, `connector` last under `#31699 PR 3`). The complement is empty. - A throwaway `ObjectKernel` probe, using the flow-family pin's boot harness (`packages/objectql/src/registry-bare-name-one-holder-flow-family.test.ts`) and **not committed**, run under the verify lock after building the objectql closure: <details><summary>4 probe cases, plus the flow-family file: 2 files, 94/94 passed, VERDICT command-exit 0</summary> ```text A cold boot: com.qa.addr-c (ns qa_c) then com.qa.addr-d (no ns), each connector qa_conn → one warning: "Bare-name conflict at boot: a second holder among the installed packages — package "com.qa.addr-d" declares the connector "qa_conn", already held by package "com.qa.addr-c". …" B CONTROL cold boot: qa_c and qa_d, two namespaces → no warning C cold boot: com.qa.addr-d (no ns) then com.qa.addr-c (ns qa_c) → one warning, with — rename it to "qa_c_qa_conn" in "com.qa.addr-c" D after the seal: qa_a (ns qa_a) 200, qa_b (ns qa_b) 200, qa_e (no ns) refused → code NAMESPACE_CONFLICT, status 422, "cannot register 2 names another holder already holds — … already held by package "com.qa.addr-a"; … already held by package "com.qa.addr-b". …" ``` </details> No ablation is owed: the diff is a checklist document (os-dev.md). ## Acceptance notes - `skip-changeset`: `docs/qa/**` ships in no package. - The CLI build, the install door and the boot log are not driven live by this edit; the readings above are at the registry and kernel layer. - The history row's `ref` is written `#PENDING-33860` in the first commit and replaced with this PR's number in a second commit that changes only that string. ## Verification On head `a4254c56` (merge base `origin/main` `895783a1`), `node scripts/pm/dispatch-gates.mjs --commands --repo objectstack-ai/objectstack` derives 16 commands. Each exit code was captured before any pipe: <details><summary>16 derived, 16 run, all exit 0; --ran reconciliation exit 0</summary> ```text node scripts/check-adr-links.mjs :: exit 0 node scripts/check-adr-links.mjs --self-test :: exit 0 node scripts/check-closing-keyword-parity.mjs :: exit 0 node scripts/check-closing-keyword-parity.mjs --self-test :: exit 0 node scripts/check-comment-mask-corpus.mjs :: exit 0 node scripts/ci/plan-test-core-shards.mjs --self-test :: exit 0 pnpm --filter @objectstack/lint run check:doc-formula-expressions :: exit 0 pnpm check:ci-filter-parity :: exit 0 pnpm check:cross-package-test-inputs :: exit 0 pnpm check:doc-authoring :: exit 0 pnpm check:driver-memory-census :: exit 0 pnpm check:gitlink-declared :: exit 0 pnpm check:nul-bytes :: exit 0 pnpm check:platform-checklist :: exit 0 pnpm check:refd-timer-probe :: exit 0 pnpm check:watch-hint-literal :: exit 0 ``` `dispatch-gates --ran`: "16 run, 0 NOT-MEASURED (a DERIVED zero …)", exit 0. Also `node scripts/check-platform-checklist.mjs --changed-from origin/main` exit 0, and the control-byte scan found 0 hits. The ref-only follow-up commit is re-run in the card's report. </details> No package is touched, so no package build, test or typecheck is owed. Every other family belongs to CI. ## Human Minimum - [x] 1. Schemas start as Zod; `packages/spec` holds no runtime logic. (n/a) - [x] 2. Every name I added uses the casing for its kind. - [x] 3. No formatter ran; `pnpm lint` passes. (no lintable file touched) - [x] 4. One issue, one branch off an up-to-date `main`, one pull request. - [x] 5. A change that publishes carries a changeset, and both declaration lines are filled in here and in the changeset. (publishes nothing: `skip-changeset`) - [x] 6. `packages/spec` touched: its generated artifacts are regenerated and committed. (n/a) - [x] 7. No hand edits to `content/docs/references/`, `packages/*/CHANGELOG.md` or `content/docs/releases/`. - [x] 8. Title, body and comments are in English. --- _Generated by [Claude Code](https://claude.ai/code/session_01ADHkmPpXkFyZ2VKdbuPu3d)_ 🤖 Generated with [Claude Code](https://claude.com/claude-code) https://claude.ai/code/session_01ADHkmPpXkFyZ2VKdbuPu3d <!-- signed: domain:devx#2 · os-steve · session_01ADHkmPpXkFyZ2VKdbuPu3d --> --------- Co-authored-by: Claude <noreply@anthropic.com>
1 parent 07225ae commit de905cc

1 file changed

Lines changed: 22 additions & 16 deletions

File tree

‎docs/qa/platform-checklist/areas/platform-core.json‎

Lines changed: 22 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -4574,36 +4574,36 @@
45744574
},
45754575
{
45764576
"id": "platform-core.bare-name-one-holder-refusal",
4577-
"title": "A covered bare name has one package holder: installing a second package that holds a connector name (the covered types NAMESPACE_SCOPED_BARE_NAME_TYPES does not list: connector alone at revision 4) is refused 422 naming both, the narrowed types (picklist, mapping, dataset, api, object-less action, function, flow, webhook, email template, agent, skill and tool) are held per namespace, and a clash an earlier deployment already holds boots with a warning",
4577+
"title": "A covered bare name has one holder per namespace: two packages in two namespaces may each hold the connector qa_conn, the webhook, the flow and the agent (every covered type is in NAMESPACE_SCOPED_BARE_NAME_TYPES since #33431), a package with no namespace that declares a held connector name is refused 422 naming every holder it meets, and a clash an earlier deployment already holds between a package with no namespace and another holder boots with a warning",
45784578
"since": "v18.4",
45794579
"status": "active",
4580-
"revision": 5,
4580+
"revision": 6,
45814581
"priority": "P1",
45824582
"surface": "mixed",
45834583
"personas": ["admin (the seeded admin): every install"],
45844584
"fixtures": {
45854585
"app": "showcase",
45864586
"requires": [
4587-
"two scratch packages, each its own scratch app directory (never the shared examples): qa_a (manifest id com.qa.addr-a, namespace qa_a) and qa_b (manifest id com.qa.addr-b, namespace qa_b), each a defineStack({ manifest: { id, namespace, version, type: 'app' }, … }) project compiled with `objectstack build` and installed into the boot with `os package install DIR/dist/objectstack.json` (admin credentials), so the registry holds every item under its package. Neither declares a dependency on the other unless a step says so. Both hold a connector qa_conn (a catalog descriptor: name, label and type 'api', no provider and enabled: false, so nothing is materialized or dispatched), a webhook qa_hook (declared inactive, isActive: false, so nothing is ever posted; a package that declares a webhook also declares requires: ['webhooks', 'realtime'], which the stack schema refuses it without), a flow qa_sync and an agent qa_helper; qa_a also holds an email template auth.password_reset (a name the platform's email service ships as an overridable baseline)",
4588-
"for the cold-boot leg: a scratch app that registers two code packages which both hold the connector qa_conn (the doors judge nothing during a boot, so both register), booted on its own port and file DB. No install door is needed: one defineStack whose packages[] holds two bodies (ids com.qa.addr-c and com.qa.addr-d, each with its own namespace and its own connector qa_conn; ADR-0130 D4, packages/spec/src/stack.zod.ts) registers both at boot, and the CLI judges no bare name, so it builds"
4587+
"two scratch packages, each its own scratch app directory (never the shared examples): qa_a (manifest id com.qa.addr-a, namespace qa_a) and qa_b (manifest id com.qa.addr-b, namespace qa_b), each a defineStack({ manifest: { id, namespace, version, type: 'app' }, … }) project compiled with `objectstack build` and installed into the boot with `os package install DIR/dist/objectstack.json` (admin credentials), so the registry holds every item under its package. Neither declares a dependency on the other unless a step says so. Both hold a connector qa_conn (a catalog descriptor: name, label and type 'api', no provider and enabled: false, so nothing is materialized or dispatched), a webhook qa_hook (declared inactive, isActive: false, so nothing is ever posted; a package that declares a webhook also declares requires: ['webhooks', 'realtime'], which the stack schema refuses it without), a flow qa_sync and an agent qa_helper; qa_a also holds an email template auth.password_reset (a name the platform's email service ships as an overridable baseline); plus a third, qa_e (manifest id com.qa.addr-e, built the same way but declaring NO namespace), which holds only the connector qa_conn (the same inert catalog descriptor)",
4588+
"for the cold-boot leg: a scratch app that registers two code packages which both hold the connector qa_conn (the doors judge nothing during a boot, so both register), booted on its own port and file DB. No install door is needed: one defineStack whose packages[] holds two bodies (ids com.qa.addr-c, namespace qa_c, and com.qa.addr-d, which declares NO namespace, each with its own connector qa_conn: a holder with no namespace meets every other holder, so the pair still clashes where two namespaces would not; ADR-0130 D4, packages/spec/src/stack.zod.ts) registers both at boot, and the CLI judges no bare name, so it builds. composeStacks([c, d], { manifest: 'preserve' }) of two such stacks is the shape QA run #33853 built and booted; keep it"
45894589
]
45904590
},
45914591
"steps": [
45924592
"install qa_a, then qa_b; record each answer and GET /api/v1/packages",
4593-
"rebuild qa_b without the connector qa_conn (keep the webhook qa_hook, the flow qa_sync and the agent qa_helper) and install it again; record the answer",
4593+
"install qa_e (no namespace, holding the connector qa_conn); record the answer and GET /api/v1/packages",
45944594
"boot the cold-boot app and read the boot log"
45954595
],
45964596
"acceptance": [
45974597
{
4598-
"clause": "the second package holding a covered name is refused 422 naming both packages and a rename, and leaves nothing installed",
4598+
"clause": "a package with no namespace that declares a name another package holds is refused 422 naming the holders, and leaves nothing installed",
45994599
"oracle": "api",
4600-
"verify": "installing qa_b answers 422 PLUGIN_REGISTER_FAILED whose message carries the registry's refusal naming connector qa_conn, com.qa.addr-a, com.qa.addr-b and a rename (packages/cloud-connection/src/marketplace-install-local-plugin.ts answers a register refusal of an inline manifest so; the registry's own error is packages/objectql/src/registry.ts#BareNameConflictError, 422 NAMESPACE_CONFLICT; packages/objectql/src/bare-name-one-holder.ts#suggestedBareNameRename). connector is the one covered type (packages/core/src/package-scoped-resolution.ts#BARE_NAME_ONE_HOLDER_TYPES) that packages/core/src/package-scoped-resolution.ts#NAMESPACE_SCOPED_BARE_NAME_TYPES does not list at this revision, so two namespaces do not lift it. Re-read that complement before the run: a covered type still outside the list is the type this clause and acceptance[3] drive, and a type the list has gained is now acceptance[1]'s; qa_b is absent from the package list",
4600+
"verify": "installing qa_e answers 422 PLUGIN_REGISTER_FAILED whose message carries the registry's refusal naming connector qa_conn, com.qa.addr-e and both holders it meets, com.qa.addr-a and com.qa.addr-b, with no rename, since a package with no namespace has no prefix to suggest (packages/objectql/src/registry.ts#bareNameRenameFor) (packages/cloud-connection/src/marketplace-install-local-plugin.ts answers a register refusal of an inline manifest so; the registry's own error is packages/objectql/src/registry.ts#BareNameConflictError, 422 NAMESPACE_CONFLICT). Every covered type (packages/core/src/package-scoped-resolution.ts#BARE_NAME_ONE_HOLDER_TYPES) is in packages/core/src/package-scoped-resolution.ts#NAMESPACE_SCOPED_BARE_NAME_TYPES since #33431, so two namespaces never clash; two holders still clash when they meet (packages/objectql/src/bare-name-one-holder.ts#bareNameHoldersMeet over packages/spec/src/kernel/namespace-prefix.ts#namespacedHoldersMeet): a holder with no namespace meets every holder. The message's reason sentence is product copy tracked apart (#33507) and is not scored here; qa_e is absent from the package list",
46014601
"evidence": "the 422 body and the package list"
46024602
},
46034603
{
4604-
"clause": "the narrowed types are held per namespace: two packages in two namespaces may each hold the webhook qa_hook, the flow qa_sync and the agent qa_helper",
4604+
"clause": "the narrowed types are held per namespace: two packages in two namespaces may each hold the connector qa_conn, the webhook qa_hook, the flow qa_sync and the agent qa_helper",
46054605
"oracle": "api",
4606-
"verify": "the rebuilt qa_b installs 200 while both hold qa_hook, qa_sync and qa_helper (packages/core/src/package-scoped-resolution.ts#NAMESPACE_SCOPED_BARE_NAME_TYPES, re-exported by packages/objectql/src/bare-name-one-holder.ts: agent and skill #31973, flow #31696, webhook #32577, tool #33124); the covered types that list lacks, connector alone at this revision, are still one holder per deployment",
4606+
"verify": "qa_b installs 200 while both hold qa_conn, qa_hook, qa_sync and qa_helper (packages/core/src/package-scoped-resolution.ts#NAMESPACE_SCOPED_BARE_NAME_TYPES, re-exported by packages/objectql/src/bare-name-one-holder.ts: agent and skill #31973, flow #31696, webhook #32577, tool #33124, connector #33431); no covered type (packages/core/src/package-scoped-resolution.ts#BARE_NAME_ONE_HOLDER_TYPES) is left outside that list. Re-read the complement before the run: a type outside it is one holder per deployment, and qa_b's 200 on it is acceptance[0]'s FAIL, not this clause's pass",
46074607
"evidence": "the 200 answer"
46084608
},
46094609
{
@@ -4613,30 +4613,30 @@
46134613
"evidence": "the install answer"
46144614
},
46154615
{
4616-
"clause": "a clash the deployment already holds does not stop the boot: it boots and warns once naming both holders and the rename, changing nothing about which holder each caller is served",
4616+
"clause": "a clash the deployment already holds does not stop the boot: it boots and warns once naming both holders, changing nothing about which holder each caller is served",
46174617
"oracle": "log",
4618-
"verify": "the boot log carries one 'Bare-name conflict at boot' warning naming the connector qa_conn, both packages and the rename (packages/objectql/src/bare-name-one-holder.ts#BARE_NAME_COLD_BOOT_MODE is 'warn'; packages/objectql/src/registry.ts#sealBareNameHoldersAtColdBoot and #bareNameColdBootWarning)",
4618+
"verify": "the boot log carries one 'Bare-name conflict at boot' warning naming the connector qa_conn, com.qa.addr-c and com.qa.addr-d; it names a rename only when the later-registered of the two declares a namespace (qa_c_qa_conn), since com.qa.addr-d has none to suggest (packages/objectql/src/bare-name-one-holder.ts#BARE_NAME_COLD_BOOT_MODE is 'warn'; packages/objectql/src/registry.ts#sealBareNameHoldersAtColdBoot and #bareNameColdBootWarning). The seal reports a pair only when the two holders meet (packages/objectql/src/bare-name-one-holder.ts#bareNameHoldersMeet), so two namespaces' holders boot with no warning, while a holder with no namespace beside any other holder still warns",
46194619
"evidence": "the warning line"
46204620
}
46214621
],
46224622
"negative": [
4623-
"the second install answering 200 and the connector name then serving one of the two is a FAIL",
4623+
"qa_e's install answering 200 and the connector name then serving one of the holders is a FAIL",
46244624
"a cold boot refused because of a pre-existing clash is a FAIL while the mode is warn",
4625-
"reading the rebuilt qa_b's 200 beside qa_a's flow qa_sync as a defect is wrong: flow is held per namespace since #31696, and the bare flow address answers 409 naming both"
4625+
"reading qa_b's 200 beside qa_a's connector qa_conn or flow qa_sync as a defect is wrong: connector is held per namespace since #33431 and flow since #31696, and the bare connector or flow address answers 409 naming both"
46264626
],
46274627
"variants": [
4628-
"the covered types (packages/objectql/src/bare-name-one-holder.ts#BARE_NAME_REGISTRY_TYPES); a run drives connector (one holder per deployment: the covered types NAMESPACE_SCOPED_BARE_NAME_TYPES does not list) and webhook, flow and agent (per namespace), and names the types it did not drive"
4628+
"the covered types (packages/objectql/src/bare-name-one-holder.ts#BARE_NAME_REGISTRY_TYPES); a run drives connector (per namespace across qa_a and qa_b, refused to the namespace-less qa_e, and the namespace-less cold-boot pair) and webhook, flow and agent (per namespace), and names the types it did not drive"
46294629
],
46304630
"automated": {
46314631
"kind": "unit",
46324632
"ref": "packages/objectql/src/registry-bare-name-one-holder.test.ts, registry-bare-name-one-holder-flow-family.test.ts, registry-bare-name-one-holder-request-family.test.ts, registry-bare-name-one-holder-ai-family.test.ts (all in packages/objectql/src)"
46334633
},
46344634
"source": [
46354635
"packages/objectql/src/bare-name-one-holder.ts#BARE_NAME_COLD_BOOT_MODE (the cold boot, and why the doors judge nothing during it)",
4636-
"packages/core/src/package-scoped-resolution.ts#NAMESPACE_SCOPED_BARE_NAME_TYPES (the types narrowed per namespace; objectql's bare-name-one-holder.ts re-exports it)",
4636+
"packages/core/src/package-scoped-resolution.ts#NAMESPACE_SCOPED_BARE_NAME_TYPES (the types narrowed per namespace, every covered type since #33431; objectql's bare-name-one-holder.ts re-exports it), and packages/objectql/src/bare-name-one-holder.ts#bareNameHoldersMeet (which holders still meet: a holder with no namespace meets every holder)",
46374637
"packages/objectql/src/registry.ts#BareNameConflictError (422 NAMESPACE_CONFLICT)",
46384638
"docs/adr/0150-behavioural-metadata-addressed-by-package-objects-keep-the-literal-prefix.md D9 (phase 1 stands until each child B narrows it)",
4639-
"#30836, #31006, #31093, #31375, #31661 (phase 1, all after 18.3.0), #31973 (agent and skill per namespace), #31696 (flow per namespace), #32577 (webhook per namespace), #33124 (tool per namespace)"
4639+
"#30836, #31006, #31093, #31375, #31661 (phase 1, all after 18.3.0), #31973 (agent and skill per namespace), #31696 (flow per namespace), #32577 (webhook per namespace), #33124 (tool per namespace), #33431 (connector per namespace)"
46404640
],
46414641
"history": [
46424642
{
@@ -4668,6 +4668,12 @@
46684668
"date": "2026-11-14",
46694669
"change": "fixtures.requires[1] names a buildable cold-boot fixture (card #33330, row 226 of the #32908 close-out ledger; QA run #33089 comment 6850460138 on #32908, which reached the leg this way). A defineStack with a packages[] of two bodies registers both code packages at boot (ADR-0130 D4, packages/spec/src/stack.zod.ts), and packages/cli/src/utils holds namespace co-owner and object-name judgements but no bare-name one, so the stack builds and the boot log is where the clash shows. No acceptance clause changed. Read from source at base 87330e89, not driven live",
46704670
"ref": "#33330"
4671+
},
4672+
{
4673+
"revision": 6,
4674+
"date": "2026-11-15",
4675+
"change": "stale-spec re-point of acceptance[0], acceptance[1] and acceptance[3] (with the title, fixtures, steps[1], negative[0], negative[2], variants and source), QA run #33853, card #33860. #33431 (322ded7d) put connector in packages/core/src/package-scoped-resolution.ts#NAMESPACE_SCOPED_BARE_NAME_TYPES, so every covered type (BARE_NAME_ONE_HOLDER_TYPES) is now held per namespace and the complement r4 drove is empty: QA installed both qa_conn holders 200 and the namespaced cold-boot pair warned about nothing. acceptance[1] gains connector. acceptance[0] is re-pointed, not retired: a holder with no namespace still meets every holder (bareNameHoldersMeet over namespacedHoldersMeet), and QA's probe of a namespace-less com.qa.addr-e got 422 PLUGIN_REGISTER_FAILED naming com.qa.addr-a; the namespace-less shape is chosen over a same-namespace co-owner because it needs no dependency or object prefix in the fixture and is the one QA measured live, and its refusal carries no rename (bareNameRenameFor). acceptance[3] is re-pointed, not retired: sealBareNameHolders still reports a pair that meets, so the cold-boot fixture's com.qa.addr-d drops its namespace; the composeStacks preserve fixture stays. Re-read at main 895783a1 and read through a throwaway ObjectKernel probe at that commit (the flow-family pin's harness, packages/objectql/src/registry-bare-name-one-holder-flow-family.test.ts, not committed): a cold boot of com.qa.addr-c (qa_c) and a namespace-less com.qa.addr-d, each holding connector qa_conn, warns once naming both (with the rename only when the namespaced one registers later); the control of two namespaces warns nothing; after the seal a namespace-less com.qa.addr-e is refused 422 NAMESPACE_CONFLICT naming com.qa.addr-a and com.qa.addr-b. The CLI build, the install door and the boot log are not driven live by this edit",
4676+
"ref": "#33931"
46714677
}
46724678
]
46734679
},

0 commit comments

Comments
 (0)