Skip to content

qa(checklist): re-point bare-name-one-holder-refusal to a namespace-less holder after the connector narrowing - #33931

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

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

Conversation

@objectstack-fleet

Copy link
Copy Markdown
Contributor

Requested by Steve · project thread

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 收窄(feat(service-automation)!: two packages of two namespaces may each declare a connector of the same name (ADR-0150 child B, the narrowing) #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:

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:
4 probe cases, plus the flow-family file: 2 files, 94/94 passed, VERDICT command-exit 0
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". …"

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:

16 derived, 16 run, all exit 0; --ran reconciliation exit 0
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.

No package is touched, so no package build, test or typecheck is owed. Every other family belongs to CI.

Human Minimum

  • 1. Schemas start as Zod; packages/spec holds no runtime logic. (n/a)
  • 2. Every name I added uses the casing for its kind.
  • 3. No formatter ran; pnpm lint passes. (no lintable file touched)
  • 4. One issue, one branch off an up-to-date main, one pull request.
  • 5. A change that publishes carries a changeset, and both declaration lines are filled in here and in the changeset. (publishes nothing: skip-changeset)
  • 6. packages/spec touched: its generated artifacts are regenerated and committed. (n/a)
  • 7. No hand edits to content/docs/references/, packages/*/CHANGELOG.md or content/docs/releases/.
  • 8. Title, body and comments are in English.

Generated by Claude Code

🤖 Generated with Claude Code

https://claude.ai/code/session_01ADHkmPpXkFyZ2VKdbuPu3d

…rrowing

Connector joined NAMESPACE_SCOPED_BARE_NAME_TYPES, so every covered
bare-name type is held per namespace and the complement revision 5
drove is empty. acceptance[1] gains connector; acceptance[0] and
acceptance[3] move to a holder with no namespace, which still meets
every holder at the install door and at the cold-boot seal.

Claude-Session: https://claude.ai/code/session_01ADHkmPpXkFyZ2VKdbuPu3d
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 d6f080e8c3 · 2026-11-15T14:44Z

@objectstack-fleet
objectstack-fleet Bot marked this pull request as ready for review November 15, 2026 14:45
@objectstack-fleet
objectstack-fleet Bot added this pull request to the merge queue Nov 15, 2026
Merged via the queue into main with commit de905cc Nov 15, 2026
47 checks passed
@objectstack-fleet
objectstack-fleet Bot deleted the claude/project-thread-fw9cvy branch November 15, 2026 15:27
scbdzhwl pushed a commit to scbdzhwl/objectstack-analysis that referenced this pull request Nov 16, 2026
…cipe in platform-core and cli (objectstack-ai#34004)

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

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

## 维护者速读

- 改了什么:平台测试清单里 19 个条目和 1 个测试数据配方的文字(platform-core 10 个、cli 9 个,外加
cli-18-prerelease-db 配方),每个条目 revision +1 并加一行 history。
- 为什么改:18.5.0 发版测试时跑手按原文走不通或读错的地方(锚卡 objectstack-ai#33761 账本批次 C),比如种子行数已从 138 变成
141、`os dev` 不再打印所有权拒绝而是自动升级、恢复脚本已会重新标日期,不改下一轮跑手会重复踩坑。
- 风险与回滚:只动 docs/qa 下两个 JSON 文本,不动产品代码;回滚就是 revert 本 PR。
- 先看:cli.json 的 organization-ownership-ceremony
acceptance[5].verify(判据从「计数相等」改为「旧行按 id 都在」,改动最实质)、cli.json 的
cli-18-prerelease-db 配方 knownGaps[4]、platform-core.json 的
activation-ledger-package-key-upgrade fixtures。
- 两分钟验证:`pnpm check:platform-checklist`,预期最后一行
`check-platform-checklist: OK — 16 areas, 429 items`。
- 需要你做的:无,席位落地。

## What changes

Batch C of the v18.5.0 close-out ledger (comment 6896511848 on objectstack-ai#33761):
the item-text re-point rows for `platform-core.json` and `cli.json`,
with the `cli-18-prerelease-db` recipe. The card's 28 rows cover 19
items and the recipe; a row repeated across rounds is one edit. Each row
was re-read at `origin/main` `0ac112fc` (PRs objectstack-ai#33931 and objectstack-ai#33929 in, and
neither of their items touched) and the edit starts from the residue
measured there, not the parked wording. No acceptance `clause` was
weakened; three were corrected or extended (rows 4, 36, 199). Every
edited item has `revision` +1 and one `history` row with ref
`#PENDING-33965`, replaced by this PR's number in a second commit. The
recipe carries no revision of its own, so its change is recorded in
`cli.organization-ownership-ceremony`'s history, the item that scores on
it (as revision 6 did). The area files were edited as text spans by a
script and never re-serialised.

| Ledger row(s) | Item | Clause edited | What changed, and the reading
behind it |
|:--|:--|:--|:--|
| 1, 183 | platform-core.seed-integrity | steps[1], steps[4] | Baseline
138 rows / invoice_line=7 → 141 / 10. Measured at `0ac112fc` by
importing `ShowcaseSeedData` and summing each records array: 20
datasets, 141 rows, `showcase_invoice_line=10`; every other count
unchanged. steps[4]'s banner example follows |
| 4, 185 | platform-core.v18-boot-refusals | acceptance[1].clause,
.verify | The `--dev` spelling is printed by a standalone `os serve
--dev` only. Under `os dev`, the refused `serve --dev` child sends the
refusal to its parent over IPC and exits without printing it (`serve.ts`
`announceOrganizationOwnershipRequired`), and `os dev` copies the DB and
runs the ceremony itself (`dev.ts` `upgradeRefusedDevelopmentDatabase`,
ADR-0131 D10). The pinned spelling is unchanged |
| 5 | cli-18-prerelease-db (recipe) | knownGaps[4], sequence[0].expect |
"the restore does not re-date shards" is false:
`cli-prerelease-fixture.ts` `restore` runs `dumpAsOf` →
`fixture-as-of.ts` `shardRenamesAsOf`, renaming each rotation shard to
the day before the run and printing a `re-dated shard` line per shard.
QA run objectstack-ai#33784 read `sys_activity__r20261114`, 66 rows, after the refused
boot |
| 6, 186 (and 5's consequence) | cli.organization-ownership-ceremony |
acceptance[5].verify | (1) "count after equals count before, less what
moved" left no room for the rows this release's own second boot adds
(invoice_line 5→10, sys_seed_landed_key 0→141, …); the oracle is now
that every pre-existing id survives unless the report moved or deleted
it, and a count may grow. (2) The sys_activity dropped-shard carve-out
is retired, since the restore now re-dates the shard (row 5) |
| 8 | platform-core.builtin-apps-nav-render | steps[3] | "open a user
from Users" lands on a side panel (`?recordId=`); the step names the
record URL `/_console/apps/setup/sys_user/record/ID`, where the
`sys_user_detail` page carries the Preferences and Linked Accounts tabs
|
| 36 | cli.migrate-duplicates-inventory | fixtures.requires[1],
steps[1], acceptance[3].clause | (1) A NULL-organization row cannot be
seeded: a table this release creates holds its tenant column NOT NULL
(ADR-0131 D1, `sql-driver-column-creation.ts` `tenantColumn`); the
duplicate is held by two organizations, which is the report's own
question. (2) acceptance[3] said three pre-flight entries;
`runtimeIndexProbes` lists seven from six migrations at `0ac112fc`, now
named, with "read the count off the list" |
| 37 | cli.migrate-plan-apply-json | steps[8] | meta's dry run is `os
migrate meta --from PREV --json`: `--from` is required without
`--stored`, and a bare `--json` exits 1 `missing_from_major` (`meta.ts`)
|
| 42 | cli.meta-package-flags-and-explain | steps[0] | The ViewItem body
carries `viewKind: 'list'` and a `config`. Probed against the built
`ViewItemSchema` at `0ac112fc`: without `viewKind` → "Invalid
discriminator value. Expected 'list' \| 'form'"; the example body parses
|
| 44, 194 | cli.dev-automigrate-policy | fixtures.knownGaps (new [2]) |
The schemaMode half of acceptance[3] cannot be staged: a non-managed
datasource is refused DDL at `assertSchemaMutable` before
`reconcileAndWarnDrift` runs, so no boot reaches `autoOn` with another
schemaMode; that half is read from source, as both rounds did |
| 47 | cli.lint-severity-exit-contract | fixtures.requires[0] | A
camelCase object or field name is refused by `ObjectSchema` at load
(probed: name pattern; "Invalid key in record" for a field key), so the
error finding is the missing label; the i18n fold needs a second
declared locale, since coverage is judged only against the stack's
locales |
| 48, 199 | cli.doctor-deprecation-scan | steps[5], acceptance[3].clause
| `os codemod --help` prints "Command codemod not found." (`@oclif/core`
help module); the clause names the full scan boundary: `src/` only,
names ending `.ts` minus `.test.ts`, so `.tsx` is skipped while
`.spec.ts` and `.d.ts` are read, comments included
(`scanDeprecatedPatterns`, `walkDir`) |
| 89 | cli.address-grammar-reserved-names | fixtures.requires[0] | Every
hand-written scratch app declares `sharingModel`; without it the
error-severity `security-owd-unset` finding stops validate/build before
the namespace verdict |
| 90, 216 | cli.scaffold-console-first-paint | acceptance[3].verify | "a
blank scaffold ships no app" is stale: the blank template ships
`src/apps/main.app.ts` (app Main, a Notes entry), so the nav half is
drivable; the action half stays a stated limit (`src/actions/index.ts`
exports nothing) |
| 106, 218 | platform-core.activation-ledger-package-key-upgrade |
fixtures.requires[0], requires[1] | Route (b) puts
sys_metadata_activation's indexes back to 18.3.0's: drop the
package-less index AND this release's
`uniq_sys_metadata_activation_metadata_type_package_id_name`, recreate
`uniq_sys_metadata_activation_metadata_type_name` on (metadata_type,
name). Dropping the package-less index alone leaves no
`replace_unique_index` to plan. requires[1] drops the recreated index
too; the two-holder name names the `composeStacks` scratch app the runs
used |
| 108 | platform-core.docs-portal-render | steps[3] | With one book,
`AppDocsIndex` renders no listing and navigates into that book's reader
(`AppDocsIndex.tsx`, `cards.length === 1`); the listing is read off the
reader's book sidebar |
| 110 | platform-core.marketplace-console-honesty | fixtures.requires[2]
| install-local's ledger follows `OS_HOME`
(`OS_HOME/installed-packages`) and falls back to the working directory
only without it (`local-manifest-source.ts`
`resolveInstalledPackagesDir`); the text said OS_HOME does not redirect
it. The scratch-copy rule stands |
| 122 | platform-core.protocol-18-handshake-and-stored-replay |
steps[2], acceptance[3].verify | A `--artifact COPY` boots alone
(`artifact-precedence.ts` `cwdConfigJoinsBoot`), so the showcase copy
loses its code plugins and aborts after the conversion warns; the clause
is read from those warns, and a serving boot needs an app with no
code-plugin connector (`examples/app-todo`) |
| 123 | platform-core.stored-reference-package-backfill-upgrade |
fixtures.requires[0] | The activation-ledger index plant is removed from
this item's route (b): no row here is a ledger row and no clause reads
that table. Route (a) not driven is run scope, not item text |
| 124, 125 | platform-core.notification-center | source[4],
fixtures.requires[0] | `{"ids":[]}` is valid
(`MarkNotificationsReadRequestSchema` takes any string array) and
answers 200 readCount 0; a body without `ids` is the 400. The
stock-seed-only fixture cannot drive acceptance[4] (one topic, nothing
left for mark-all-read), so acceptance[4] needs the digest flood |
| 214 | platform-core.keyboard-shortcut-surface | steps[2] | The typed
search term persists as `uf__search` across reloads in one browser
context; clear it or use a fresh context per probe set |

Every row of the card was edited; none 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 16 gate
families `node scripts/pm/dispatch-gates.mjs --commands` derives for
this diff were run on the merged head; each exited 0, and `--ran`
reconciles 16 derived, 16 run, 0 NOT-MEASURED. The commands and exit
codes are in the os-dev-report comment on objectstack-ai#33965.

## Acceptance notes

- `cli.lint-severity-exit-contract` acceptance[2] lists lint's `--json`
keys without `strict`, `failing` and `conversions`, which the payload
now carries (QA run objectstack-ai#33829). That residue was in the QA record but not
on this card's ledger rows, so it is not edited here.
- `packages/cli/src/commands/migrate/duplicates.ts`'s docblock still
calls the pre-flight "four fixed platform indexes" (seven at this base).
It is code, outside this card's file surface.
- Structural proof: the span editor parsed each area file before and
after, applied the declared edits to the parsed `origin/main` document,
and asserted the result equals the edited file's parse. Every non-edited
item is value-equal; each edited item changes only the fields in the
table plus `revision` and one appended `history` row.

## 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_01ADHkmSRMKC6zBNQF7KazbL)_

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

---------

Co-authored-by: Claude <noreply@anthropic.com>
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>
scbdzhwl pushed a commit to scbdzhwl/objectstack-analysis that referenced this pull request Nov 16, 2026
…nstall-contract acceptance[1] name when migrateCommand is absent (objectstack-ai#34026)

<!-- claude-projects-attribution: {"github_login":"zhuangjianguo"} -->
_Requested by **Steedos** · [project
thread](https://claude.ai/code/project/chan_018ETKaNwMZCNRYD7D8Q9Ubb?thread=cmsg_018ETKaNwMZCNRYD7D8Q9UbbTGhxJSYAmQXU7efVdNqrpw)_

Fixes objectstack-ai#33618

Clause-②: no
Metadata-protocol: none

## 维护者速读

- 改了什么:两处文字,不动代码。错误码台账里 `OS_PROTOCOL_INCOMPATIBLE` 那一行的注释,以及测试清单
`platform-core.manifest-install-contract` 的 acceptance[1](rev 10 →
11)。两处都改为与已发布的拒绝一致:迁移命令只在迁移下限(16)到运行时主版本之间给出,低于下限或高于运行时都不给。
- 为什么改:objectstack-ai#33466 已让低于下限的包不再收到注定失败的 `migrate meta --from
N`,但这两处文字仍写着"总会给迁移命令",照着读的 agent 和 QA 会得出错误预期。
- 风险与回滚:只是注释和 QA 清单文字,运行行为不变;spec 的 `*.zod.ts` 随包发布,所以带一个 patch
changeset。回滚即还原本 PR。
- 先看:① `packages/spec/src/api/error-code-ledger.zod.ts` 的
`OS_PROTOCOL_INCOMPATIBLE` 注释;②
`docs/qa/platform-checklist/areas/platform-core.json` 该项 acceptance[1]
与新增 history 行;③ changeset。
- 两分钟验证:`node scripts/check-platform-checklist.mjs`,预期退出码 0 且打印 OK。
- 需要你做的:无,席位落地。

## What changes

- **`packages/spec/src/api/error-code-ledger.zod.ts`, the comment on the
`OS_PROTOCOL_INCOMPATIBLE` row.** The comment said the remedy is
`objectstack migrate meta --from N`, and listed `migrateCommand` among
the `error.details` members unconditionally. It now states the shipped
shape, read from `checkProtocolCompat`
(`packages/metadata-core/src/protocol-handshake.ts`) at base
`895783a1e8`:
- `requiredRange`, `rangeSource`, `protocolVersion` and `targetMajor`
are on every refusal.
- `migrateCommand` is `objectstack migrate meta --from N` for a target
major from the support floor up to the runtime's. The floor is
`MIGRATE_META_SUPPORT_FLOOR` = 16, which a test holds equal to the
spec's `MIGRATION_SUPPORT_FLOOR`.
- `migrateCommand` is the bare `objectstack migrate meta` when the
target major is null.
- It is absent when the target is AHEAD of the runtime (objectstack-ai#26480) or BELOW
the floor (objectstack-ai#33466). In both cases the message names the remedies that
apply.

This is a line comment, not a `.describe()`, so no generator reads it.
The row and the code are unchanged.
- **`docs/qa/platform-checklist/areas/platform-core.json`, item
`platform-core.manifest-install-contract`.**
- acceptance[1] now scopes `migrateCommand` to the floor. At or above
the floor and at or below the runtime, the refusal carries `--from
TARGET`. Below the floor, it carries none, and the message names a build
for this runtime's protocol, or reaching protocol 16 by another path and
then `--from 16`. The clause also says every refusal carries
`targetMajor`.
  - Revision 10 → 11, with a history row citing objectstack-ai#33618.
- The steps, the verify text and the other clauses are unchanged. On an
18 runtime the `^(RT-1)` probe targets 17, which is above the floor.
- **`.changeset/33618-protocol-incompatible-ledger-comment.md`**: a
`@objectstack/spec` patch. `src/**/*.zod.ts` is in the spec's `files[]`,
so the comment ships.

## Tests

No behaviour changed, so there is no new test and no ablation. Both
diffs are text, and os-dev.md does not ablate docs or comments.

- `node scripts/check-platform-checklist.mjs`: exit 0, `OK — 16 areas,
429 items`.
- A semantic diff parsed `platform-core.json` at origin/main and at
HEAD. Item order is unchanged (47 items). Only
`platform-core.manifest-install-contract` differs, and only in
`acceptance` (index 1 alone), `revision` (10 → 11) and `history` (10 →
11 rows).

## Acceptance notes

- **Overlap with objectstack-ai#33931.** objectstack-ai#33931 (objectstack-ai#33860) edited a different item in
the same area file, `platform-core.bare-name-one-holder-refusal`.
Neither path is routed to a merge driver (`git check-attr merge` answers
`unspecified` for both), so `git merge-tree` gives the textual answer.
Before objectstack-ai#33931 merged, both runs exited 0 and printed only the tree id,
with no conflicted path:

  ```text
git merge-tree --write-tree --name-only 1ca1a70 d6f080e (objectstack-ai#33931
head; merge base 895783a)
  3616dbc86b76d2e05519e3b4eafcbd695af3a4cf
  EXIT=0
git merge-tree --write-tree --name-only 1ca1a70 895783a
(origin/main then)
  780e88e
  EXIT=0
  ```

objectstack-ai#33931 then landed on main as de905cc. This branch merged origin/main
at 03b4d2d without conflict (head dcda950). A semantic diff
against main still shows only `manifest-install-contract` changed:
acceptance[1], revision 10 → 11, and one more history row. `git
merge-tree --write-tree --name-only HEAD origin/main` at a3aa1d2 also
exits 0.
- `docs/adr/0087-metadata-protocol-upgrade-contract.md` still teaches
the old shape in three places. These are reported to the skills carrier,
not edited here:
- Line 116 (D1): "the exact replay command (`objectstack migrate meta
--from N`, D3)".
  - Line 191: "`objectstack migrate meta --from 10` composes the steps".
  - Line 536: "`migrate meta --from 10` therefore reaches protocol 15".

  With the floor at 16, the CLI refuses `--from 10`.

## Verification

All readings are at head `dcda950ef9`, after the merge of origin/main
`03b4d2d1f4`. The spec, formula and lint closure was rebuilt under the
verify lock first.

<details><summary>Derived gate families: 89 derived, 87 exit 0, 2 NOT
MEASURED (exit 3), 0 UNRUN</summary>

```text
node scripts/pm/dispatch-gates.mjs --ran ran-head.list   (exit 0)
Run reconciliation — 89 derived, 87 run, 2 NOT-MEASURED, 0 UNRUN.
pnpm check:lean-entry-closure    :: exit 3   PREREQUISITE NOT MET (packages/objectql/dist absent; the gate loads built entries)
pnpm check:dual-build-cjs-loads  :: exit 3   PREREQUISITE NOT MET (needs a whole-workspace build)
```
Neither gate reads a source comment or a checklist file. Both are left
to CI's Lint and Repo Gates.
</details>

<details><summary>spec package, checklist validator, lint</summary>

```text
pnpm --filter @objectstack/spec build && check:generated   VERDICT command-exit 0 · All 14 generated artifacts are up to date
pnpm --filter @objectstack/spec test        Test Files 842 passed (842) · Tests 26956 passed | 1 todo   (VERDICT command-exit 0, at 1ca1a70)
pnpm --filter @objectstack/spec typecheck   exit 0 (tsc --noEmit, check:scripts-typecheck, check:test-typecheck OK)
node scripts/check-platform-checklist.mjs   exit 0 · OK — 16 areas, 429 items
npx eslint --no-inline-config packages/spec/src/api/error-code-ledger.zod.ts   exit 0
```
The merge brought no change to either file, so the spec test and
typecheck reading at 1ca1a70 holds for these paths. CI's Test Core
and TypeScript Type Check rerun them on the head.
</details>

🤖 Generated with [Claude Code](https://claude.com/claude-code)

https://claude.ai/code/session_01QsR2jTEivi2wogPpeo3xd5

---------

Co-authored-by: Claude <noreply@anthropic.com>
Co-authored-by: objectstack-fleet[bot] <332303061+objectstack-fleet[bot]@users.noreply.github.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

2 participants