Skip to content

fix(objectql, metadata-protocol, runtime): a package's export carries the objectExtensions it was installed with, and the owner's export folds no other package's extension - #29948

Merged
objectstack-fleet[bot] merged 5 commits into
mainfrom
claude/project-thread-fh6dvf
Nov 3, 2026

Conversation

@objectstack-fleet

@objectstack-fleet objectstack-fleet Bot commented Nov 3, 2026 •

Copy link
Copy Markdown
Contributor

Requested by Yibo Wang · project thread

Fixes #29872

Clause-②: yes (widening)
Metadata-protocol: none

维护者速读

  • 改了什么:通过 install-local 安装(或代码包里声明)的扩展包,导出时现在会带上它自己的 objectExtensions;被扩展对象的拥有者(基础包)导出时,不再把任何其他包的扩展字段并进自己的对象(此前只排除了它自己的 .custom 配对包)。/meta/object、控制台和数据接口读到的对象不变,仍是合并后的。
  • 为什么改:整部署导出恢复到新环境后,每个包都是 install-local 装进来的;它们再次导出时丢掉扩展字段且不报错,第二跳就静默丢数据(卡片复现 E12)。ADR-0146 D8 第 3 条:包导出只带自己的东西,字段只出现一次。
  • 风险与回滚:只影响包导出读的 per-package 层与导出拼装;registry 新增一个只读方法和一个可选参数,已发布的 withoutExtensionsOf 语义不变。回滚即 revert 本 PR。
  • 先看:packages/runtime/src/domains/packages.ts(registeredExtensionsOf,按目标去重)、packages/objectql/src/registry.ts(getObjectExtensionsOf 与 isLeftOutExtension)、packages/metadata-protocol/src/protocol-meta-list-reads.ts(per-package 层改传 onlyExtensionsOf)。
  • 两分钟验证:pnpm --filter @objectstack/runtime exec vitest run --maxWorkers=2 src/domains/packages-export-base-showcase-boot.integration.test.ts -t 29872,预期 2 passed:扩展包导出带 objectExtensions,基础包导出与安装扩展包之前逐字节相同,第二跳再导出不变。
  • 需要你做的:无,席位落地。

What changes

The defect (measured on origin/main 21510bb). assemblePackageManifest built a package's objectExtensions from the object_extension items of the protocol's per-package layer. install-local (and a code package) registers a manifest's objectExtensions straight into the registry as 'extend' contributors (ObjectQL.registerApp) and files no item, so such a package exported no extension. Its fields were folded into the OWNER's export instead (the per-package layer left out only the owner's .custom pair since #29930). A deployment restored from an export therefore lost every extension field on its next export, and a .custom pair installed from its export no longer re-exported its extension.

Half 1: the extender's export carries its extensions, however they were installed.

Half 2: the owner's export carries its object without ANY other package's extension (the seat's carrier note 6605292329).

  • listItems / getAllObjects / foldObjectExtendersOnto take an onlyExtensionsOf option: only that package's own extend contributions fold, every other package's is left out. Both options live in one ObjectExtensionFoldOptions and one predicate (isLeftOutExtension).
  • The per-package layer (readFlattenedMetaItems, layer: 'per-package') passes onlyExtensionsOf naming the listed package to both the registry list and the overlay-row fold, in place of withoutExtensionsOf naming its pair.
  • withoutExtensionsOf is kept with its meaning: it shipped in the published @objectstack/objectql@18.3.0 tarball (5 hits in dist/index.js, measured with npm pack), so removing it would be a narrowing of a published surface. No in-repo caller passes it any more; its unit pin stays.

Served and effective reads are untouched: neither option is passed outside the per-package layer, and the controls in every new pin read GET /meta/object/NAME and GET /meta/object with every extension folded in.

Tests

  • packages/objectql/src/registry-extension-field-patches.test.ts: the packages export: a read-only base's own export carries its .custom pair's object extension merged into the object, where ADR-0146 D8 item 3 says the base exports unchanged #29903 describe now pins onlyExtensionsOf (owner listed with neither the pair's nor a third package's extension; an extender folds its own only; an un-extended object is the cached object; byte-equal to a registry with no extender; the stored-body fold) and keeps a withoutExtensionsOf case. A new describe pins getObjectExtensionsOf: a manifest entry through ObjectQL.registerApp comes back as written and parses under the strict ObjectExtensionSchema; a stored extension through registerObjectExtension comes back with its own priority and re-registers on a fresh registry to a byte-equal served object.
  • packages/runtime/src/domains/packages-export-base-showcase-boot.integration.test.ts (the shared showcase-boot harness; new top-level describe): an extender registered the way install-local registers it exports its entry; the base's export is byte-identical to its export before the extender was installed, with the pair's extension published beside it, and after a restart; the pair exports its own item only; an extender installed from its own export re-exports the same bytes (the second hop).
  • packages/qa/dogfood/test/package-export-bundle-round-trip.dogfood.test.ts: the first describe asserts the install-local extender's objectExtensions by name and in full on the source bundle AND the target bundle, and that the base's object carries the extender's field on neither; the third describe asserts the pair installed on the target from its entry re-exports its extension. The same-inventory pin stays and is green.

Acceptance notes

Verification

Ablations (each: mutation through scripts/ablation-replace.mjs, anchor 1 → 0, blob restored == HEAD, `git diff HEAD` empty)
  • A, half 1 (packages.ts: drop the registeredExtensionsOf append) against the runtime integration file -t 29872: 2 failed. the extender's export carries its manifest entry: expected undefined to deeply equal [ { extend: 'showcase_task', …(1) } ], and the second-hop test the same. Restored.
  • A on dogfood (runtime resolves from src there): the round-trip file 2 failed / 11 passed: source: com.dogfood.exportext: expected { extends: [], objectCarries: false } to deeply equal { …(2) } and [#29872] target: the pair installed from its entry re-exports its extension: expected undefined to deeply equal [ { …(3) } ]. Restored.
  • B, half 2 (protocol-meta-list-reads.ts: onlyExtensionsOf never set; marker ablated-29872-b; metadata-protocol rebuilt, ablation-dist-preflight found the marker in dist) against the runtime integration file -t '29872|29903': 2 failed / 1 passed. expected [ 'organization_id', …(11) ] to not include 'acme_billing_code' and the packages export: a read-only base's own export carries its .custom pair's object extension merged into the object, where ADR-0146 D8 item 3 says the base exports unchanged #29903 the base's object with the extension live equality. Restored, rebuilt, preflight --absent exit 0.
  • C, registry (isLeftOutExtension's onlyExtensionsOf clause → false) against registry-extension-field-patches.test.ts -t 29872: 4 failed / 4 passed (the four onlyExtensionsOf cases). Restored.
Local runs (code head 2e498fb; final head 7b1145a changes only this PR's changeset)
  • Build: pnpm --filter '@objectstack/dogfood^...' build (closure), then objectql + metadata-protocol + runtime rebuilt: VERDICT command-exit 0.
  • pnpm --filter @objectstack/objectql test: 547 files / 10827 tests passed.
  • pnpm --filter @objectstack/metadata-protocol test: 311 passed, 4 skipped files / 22320 passed, 26 skipped tests.
  • pnpm --filter @objectstack/runtime test: 538 files / 8599 passed, 19 skipped tests.
  • typecheck for objectql, metadata-protocol, runtime (incl. each check:test-typecheck): exit 0.
  • Dogfood package-export-bundle-round-trip.dogfood.test.ts: 13/13.
  • eslint --no-inline-config over the 8 changed source/test files: exit 0 (the repo-wide pnpm lint is CI's Lint & Repo Gates).
  • dispatch-gates --commands (67 families), each run and its exit recorded: 67 exit 0 after three reruns. check-plugin-teardown-shape --self-test first exited 3 (shallow clone; its pinned fixture commit fetched, then 48 cases pass); check:dual-build-cjs-loads first exited 3 (seven unbuilt dists: client-react, embedder-openai, knowledge-memory, knowledge-ragflow, service-cluster-redis, service-knowledge, studio; built, then exit 0); check-empty-changeset first exited 1 on my edit of the packages export: a read-only base's own export carries its .custom pair's object extension merged into the object, where ADR-0146 D8 item 3 says the base exports unchanged #29903 note (see Acceptance notes; restored, then exit 0). The changeset gates (check-empty-changeset, check-changeset-no-major, check-adr-0087-registration) were rerun on 7b1145a: exit 0. dispatch-gates --ran: 67 derived, 67 run, 0 NOT-MEASURED, 0 UNRUN.

🤖 Generated with Claude Code

https://claude.ai/code/session_01WGufzebqeaeGkaTWGnN9bm

…ts manifest objectExtensions, and an owner export folds only its own extensions

Claude-Session: https://claude.ai/code/session_01WGufzebqeaeGkaTWGnN9bm
Co-authored-by: Claude <noreply@anthropic.com>
…nlyExtensionsOf; changeset (#29872)

Claude-Session: https://claude.ai/code/session_01WGufzebqeaeGkaTWGnN9bm
Co-authored-by: Claude <noreply@anthropic.com>
@github-actions github-actions Bot added size/m documentation Improvements or additions to documentation tests tooling Fix lands in tooling, not a product package — enters pm:queue only with Unblocks: or a named surface labels Nov 3, 2026
@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

domain:server#6 · os-support-ai · session_01WGufzibcN9oHa8kDbTTnL5

Contract review

Served-tier: TIER_DEFAULT
Head-sha: 7b1145ab6d56f676c27faefc9405b4c8df5cfdab
Local-runs: none

Face: declaration (Clause-②: yes (widening) on the PR body and changeset). No published schema and no governed path in the committed tree (9 files). Read: the full diff, card #29872 and its triage audit 6600517038, the seat's carrier note 6605292329, dev report 6609855338, and the per-package layer's other reader (packages/rest/src/form-routes.ts, views only).

① Derived judgments

② Semver level

'@objectstack/objectql': patch, '@objectstack/metadata-protocol': patch, '@objectstack/runtime': patch. New exported method, interface and optional option on SchemaRegistry ⇒ widening; Metadata-protocol: none ⇒ patch (AGENTS.md Post-Task Checklist step 3). Consistent with both declaration lines.

③ Boundary flags

Implemented-by: claude/project-thread-fh6dvf
Reviewed-by: session_01WGufzibcN9oHa8kDbTTnL5

VERDICT: PASS

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

domain:server#6 · os-support-ai · session_01WGufzibcN9oHa8kDbTTnL5

席位核对

Verdict: ACCEPT at head 7b1145ab6d56f676c27faefc9405b4c8df5cfdab · 2026-11-03T16:44Z

  • Shape: 9 files (objectql registry, metadata-protocol per-package layer + fold, runtime export assembly + integration test, dogfood round trip, one changeset); no published schema, no governed path ⇒ not Tier H. Declaration face (Clause-②: yes (widening)): TIER_DEFAULT review PASS 6609898569 at this head.
  • Premise measured: the dev reproduced it on main 21510bba (an install-local extender exported no objectExtensions, and its field folded into the owner's export). Both halves of carrier note 6605292329 shipped together, which the acceptance notes show is required: half 1 alone stays green on the inventory pin.
  • Gates: objectql 10827, metadata-protocol 22320, runtime 8599 pass; typecheck x3 and eslint exit 0; dogfood round trip 13/13; dispatch-gates 67/67 exit 0 (dev report 6609855338). Ablations red at all three seams, restored. Landing waits for every check on this head to be green or an expected skip.
  • Accepted deviations: harness-pinned branch claude/project-thread-fh6dvf; body line 2 links the card thread (session attribution rule); the packages export: a read-only base's own export carries its .custom pair's object extension merged into the object, where ADR-0146 D8 item 3 says the base exports unchanged #29903 changeset note is superseded by a paragraph rather than edited (guarded by check-empty-changeset). The signed trailer was appended by the seat through the relay.
  • Landing: on all-green at this head, the seat sends pr_ready + automerge_enable through the relay.

@github-actions

github-actions Bot commented Nov 3, 2026

Copy link
Copy Markdown
Contributor

📓 Docs Drift Check

This PR changes 3 package(s): @objectstack/metadata-protocol, @objectstack/objectql, @objectstack/runtime, touching 16 documentable anchor(s).

5 hand-written doc(s) NAME something this change touched and may need an implementation-accuracy re-verification:

  • content/docs/concepts/metadata-lifecycle.mdx (via SchemaRegistry (symbol, a top-level class))
  • content/docs/deployment/environment-variables.mdx (via SchemaRegistry (symbol, a top-level class))
  • content/docs/kernel/services-checklist.mdx (via SchemaRegistry (symbol, a top-level class))
  • content/docs/plugins/adding-a-metadata-type.mdx (via SchemaRegistry (symbol, a top-level class))
  • content/docs/protocol/kernel/plugin-spec.mdx (via SchemaRegistry (symbol, a top-level class))

⛔ 1 release-owned page(s) also name something this change touched. These are read-only:

  • content/docs/releases/v17/17-4.mdx (via SchemaRegistry (symbol, a top-level class))

content/docs/releases/ is RELEASE-OWNED (AGENTS.md "Documentation Guardrails"): release
notes are written centrally at release time, and a code PR that edits them is the exact PR
that guardrail exists to stop. They are still audited — read-only. If one of them is actually
wrong, file an issue or open a dedicated docs-only PR; do not edit it here.

What this run could not see
  • the SDK route bridge reached 61 of 219 client-bound route-ledger rows — the other 158 have no registrar path: tail to select them, so pages documenting THEIR client methods cannot appear above, on this or any run. Of those 158: 0 are remediable by widening that discovery convention (an in-repo file declares the path; the convention did not scan it); 55 are structural — on a ledger where NOT ONE row is declared in-repo, so no discovery change reaches them at any price; 103 are undecided (no in-repo declaration, on a ledger that has other in-repo registrars — absence and an unreadable spelling are not distinguishable here). The rows themselves: node scripts/docs-audit/affected-docs.mjs --bridge-coverage
  • a page that states a rule by its inputs shares no identifier with the emitter that implements the rule, so an emitter-only diff cannot list it — not on this run and not on any run. Measured on fix(driver-sql): emit varchar(maxLength) for a text field a declared index keys on #11430: content/docs/protocol/objectql/types.mdx documents the text-family column mapping by the ObjectQL type names it maps FROM (text / textarea / html) while the diff changed createColumn; it went unlisted, and it was the page that diff falsified, in four places. No shared token exists to detect this on, so a rule your change carries has to be re-read by hand in the pages that restate it.
  • a key NAME is not a key, so the hand re-read the line above prescribes can land on the wrong schema. The same spelling is authorable on one governed type and a [REMOVED] tombstone on another for each of active, aria, joins, objects, template, tools and version (censused on [finding] tools is a key on BOTH AgentSchema (tombstoned, dead) and SkillSchema (live, cloud-attested), so a name-based search attributes skill examples to the agent key — it produced a false stop-the-line alarm on PR #19059 #19093 over the liveness ledger's governed types, top-level keys); nothing in a search result distinguishes the two, so a grep hit on a LIVE example reads as evidence about the DEAD key. Measured on fix(spec): the agent.tools liveness row says dead — it claimed live on a key the schema tombstoned #19059: content/docs/ai/agents.mdx was reported as contradicting the agent.tools tombstone over its tools: example at :161, which is inside the defineSkill({ block opened at :155 — the page was already correct. Settle ownership by PARSING the value against both schemas, never by the name: that literal PASSES SkillSchema, and as an AgentSchema it FAILS at tools with the tombstone prescription. ⛔ These names are not the whole class — a key retired through a .strict() guidance map leaves no tombstone in the walked shape and none of them here (tool.category, live as AIToolDefinition.category).

Coarse fallback — 42 page(s) merely mention a changed package (the pre-#9192 predicate, kept for the deliberately-wide backstop): node scripts/docs-audit/affected-docs.mjs --json 6a4737abae46e1d6847d7abfe430e5d62cd927f0 → packageMentionDocs.

Which tree this was computed on

This run read content/docs from 73273c8fd7765fd5e94580032b831b6c40df38c9 — the merge of head 7b1145ab6d56f676c27faefc9405b4c8df5cfdab into base 6a4737abae46e1d6847d7abfe430e5d62cd927f0, which is what actions/checkout gives a pull_request run. Not the PR head.

A worktree cut from an older main holds a different content/docs, so re-deriving there can legitimately return a different list — that is a different tree, not a wrong row. To answer on the same tree:

# while this PR is open — GitHub drops the merge commit once it closes
git fetch origin 73273c8fd7765fd5e94580032b831b6c40df38c9 && git checkout 73273c8fd7765fd5e94580032b831b6c40df38c9
# afterwards, rebuild it from the two parents, which stay fetchable
git fetch origin 6a4737abae46e1d6847d7abfe430e5d62cd927f0 7b1145ab6d56f676c27faefc9405b4c8df5cfdab && git checkout -B drift-repro 6a4737abae46e1d6847d7abfe430e5d62cd927f0 && git merge --no-ff 7b1145ab6d56f676c27faefc9405b4c8df5cfdab

node scripts/docs-audit/affected-docs.mjs --json 6a4737abae46e1d6847d7abfe430e5d62cd927f0

⚠️ That checkout carried uncommitted changes, so the commit above does not fully identify what was read.

Advisory only, and a precision-first one (#9192): a page is listed because it names a
symbol, wire route or SDK method this diff touched — not because it mentions a changed
package. Each row says which anchor put it there, so a wrong row is reportable rather than
merely annoying. To re-verify, run the docs-accuracy-audit workflow scoped to these files:
node scripts/docs-audit/affected-docs.mjs 6a4737abae46e1d6847d7abfe430e5d62cd927f0 → pass the list as
args.docs, on the commit named under Which tree this was computed on.

@objectstack-fleet
objectstack-fleet Bot marked this pull request as ready for review November 3, 2026 17:34
@objectstack-fleet
objectstack-fleet Bot enabled auto-merge November 3, 2026 17:34
@objectstack-fleet
objectstack-fleet Bot added this pull request to the merge queue Nov 3, 2026
Merged via the queue into main with commit 3b8c724 Nov 3, 2026
53 of 54 checks passed
@objectstack-fleet
objectstack-fleet Bot deleted the claude/project-thread-fh6dvf branch November 3, 2026 18:14
scbdzhwl pushed a commit to scbdzhwl/objectstack-analysis that referenced this pull request Nov 16, 2026
…ender adds, so /meta translates a dependent package's added fields (objectstack-ai#34156)

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

## 维护者速读

- **改了什么**:依赖包通过 `objectExtensions` 给基础包对象新增的字段(如 carbon 包给
`crm_account` 加的 `cb_market`),在中文等非默认语言下读 `/api/v1/meta/object`
时,字段名和选项名现在按该依赖包自己的翻译包显示,不再是英文。
-
**为什么改**:此前对象的"出厂基准"只算基础包自己声明的字段,依赖包加的字段被当成"后来手工改过",于是翻译一律不套用;新建记录表单读的就是这个接口,所以中文界面里出现英文选项。
- **风险与回滚**:只扩了基准里"基础包没声明、由代码依赖包新增"的字段;基础包自己的字段、对象名称、`fieldPatches`
改的文字、租户和 `.custom` 加的字段都按原样不动。回滚即 revert 本 PR。
- **先看**:`packages/objectql/src/registry.ts`(`packagedAddedFields` 与
`getPackagedObjectBase`,重写后的 ⛔
段)、`packages/objectql/src/protocol-packaged-object-base.test.ts`(边界钉子)、`packages/objectql/src/protocol-meta-effective-schema.test.ts`(中文读回再保存仍存英文原文)。
- **两分钟验证**:`pnpm --filter @objectstack/rest exec vitest run
--maxWorkers=2 src/meta-object-field-patch-i18n.test.ts`,预期 12
passed,其中新增组断言 zh-CN 下 `cb_market` 为「市场」、选项为「内销 / 出口」,基础包自己被改名的字段仍保持原文。
- **需要你做的**:无,席位落地。

Fixes objectstack-ai#33800

Half 2 of the card (a dependent package's `fieldPatches`
label/description getting its own translation) is out of this PR by
maintainer ruling 6896340775: D stands and it has its own card. Until
that card lands, patched text shows as written in every language.

Clause-②: no
Metadata-protocol: none

## What changes

**The defect, measured on `origin/main` 45dee17.** A select field
`cb_market` added by a dependent code package through
`objectExtensions`, with the zh-CN rows in that package's pack, was
served under zh-CN as `Market` / `Domestic` / `Export`. That held on the
item read and on the list read (`translateMetaDocument` /
`translateMetaList`, over a real `SchemaRegistry`). `translateObject`
worked as designed. Its input was the problem:
`SchemaRegistry.getPackagedObjectBase` returned the owner's declaration
alone, so the field had no packaged counterpart and every slot of it
counted as authored after the fact.

**Origin.** The label and option-label divergence checks came in with
objectstack-ai#29624 (59775a0, shipped in 18.3.0). It was not objectstack-ai#29948, and not 18.4.0:
the path is identical from 18.3.0 to 18.4.0 (measured:
`translateObject`, `packagedObjectField`, `valueOverridesPackagedBase`,
`getPackagedObjectBase` and `translateMetaDocument` agree at the 18.3.0
and 18.4.0 tags).

**The fix (seat ruling 6895879286, option A).** `getPackagedObjectBase`
now also carries every field that a CODE `extend` contributor adds under
a name the owner does not declare (`packagedAddedFields`). It uses the
same filter as `packagedRules` (`ownership === 'extend' &&
isCodeArtifactBody`). This extends objectstack-ai#27559's rule-name principle to field
names: the catalog rows for such a field can only translate what its
extender ships. Boundaries, each one pinned:
- An owner-declared field stays the owner's, even when an extender
redeclares it (objectstack-ai#8037).
- Same-name extenders resolve to the fold's winner (ascending priority).
- `fieldPatches` are not merged, and the scalars are untouched.
- Fields from a tenant overlay or a stored (`_provenance: 'org'`)
extension, the `.custom` pair's included, stay diverged.
- The ⛔ at the former registry.ts:8140 is rewritten and keeps the objectstack-ai#8037
reason.
- The base is returned BY REFERENCE only when no code extender ships a
rule or adds a field. No caller relies on reference equality: the
callers are `metadata-protocol`'s echo restore and base accessor, the
REST read gate, and objectql's `engine-validation-messages`, which reads
`.validations` only.

**The save door agrees with the read.** `restoreTranslatedObjectEchoes`
(objectstack-ai#29673) reads the same accessor. A zh-CN read of the added field,
echoed back by a PUT, is stored as the extender's source text (`Market`,
`Domestic`, `Export`), both over a stored row and with none.

**Extender-added `listViews`: not applicable, no card.**
`ObjectExtensionSchema` refuses `listViews` on an extension
(`packages/spec/src/data/object.zod.ts`, its guidance: "`listViews`
cannot be contributed through an object extension"). So
`translateObjectListViews` never sees a view an extender added.

**Stale comments rewritten:** the
`TranslateDocumentOptions.packagedBase` doc, the `packagedObjectField`
doc, the `translateObject` docblock sentence on undeclared fields, and
the `i18n-resolver.test.ts` comment on the undeclared-field pin. These
are comment-only changes in `@objectstack/spec`.

**Contract declaration.** `Clause-②: no`. No accept set, export, schema
or response shape changes, and nothing previously served is refused.
What changes is the label text that non-default-locale
`/api/v1/meta/object` reads serve for fields a code extender adds; the
changeset says so. Default-locale reads are unchanged. Not breaking, so
no `!`, banner or ADR-0087 marker, and the dogfood battery is not owed.

## Tests

- `packages/objectql/src/protocol-packaged-object-base.test.ts` (the
existing harness for `getPackagedObjectBase`, per ruling 6583487846): a
new top-level describe with 7 cases. The BY REFERENCE pin is flipped:
with the shared fixture's `loyalty_tier` extension the base is now a
copy that carries the field, and a label-only extension still returns
the owner by reference.
- `packages/rest/src/meta-object-field-patch-i18n.test.ts` (the existing
harness for the meta-object extension i18n exit): a new top-level
describe with 5 cases (item read, list read, base fields, owner field
redeclared, tenant-added field).
- `packages/objectql/src/protocol-meta-effective-schema.test.ts` (the
existing objectstack-ai#29673 door harness): a new top-level describe with 2 cases
(with and without a stored row).

Red before the fix (45dee17 + pins): objectql 4 failed / 9 passed; rest
4 failed / 8 passed (`expected 'Market' to be '市场'`).

## Acceptance notes

- **The reporter's package shape (seat item 2) was not measured
directly**: `steedos-labs/os-project-blackcat-crm` is not readable from
this session. The card's own facts point to a code package rather than a
stored `object_extension` row. The fields come in "through
`objectExtensions`" (the manifest key of a code package), they carry no
`__c` suffix, and the package "passes validate".
- Extender-added `listViews`: none can exist (the extension schema
refuses the key), so there is nothing to translate and no card to file.
- The seat ruling asks the reporter to confirm which page and version
their 18.3.0 Chinese reading came from. On this path 18.3.0 and 18.4.0
behave the same (objectstack-ai#29624 shipped in 18.3.0).

## Verification

All on head `ecffbe8d0` (origin/main `86350e125` merged), unless a line
names another head.

<details><summary>Pins, typecheck, generated artifacts (locked, final
head)</summary>

```
os-verify-lock: VERDICT command-exit 0 · held the lock 904s
closure   :: exit 0 :: pnpm --workspace-concurrency=2 --filter @objectstack/rest... build
pins-oql  :: exit 0 :: Test Files 2 passed (2) :: Tests 38 passed (38)
pins-rest :: exit 0 :: Test Files 1 passed (1) :: Tests 12 passed (12)
oql-tc    :: exit 0 :: pnpm --filter @objectstack/objectql typecheck
rest-tc   :: exit 0 :: pnpm --filter @objectstack/rest typecheck
spec-gen  :: exit 0 :: pnpm --filter @objectstack/spec check:generated
dts-closure / published-files / sourcemap-no-sources-content / lean-entry-closure / test-source-alias / nul-bytes / type-check-debt :: exit 0
```
</details>

<details><summary>Package suites (head c856cd3: the fix merged with
origin/main fb79d47; the final head adds only a test import and a main
merge that touches no package of this diff's behaviour)</summary>

```
oql-test  :: exit 0 :: Test Files 598 passed (598) :: Tests 13250 passed (13250)
mp-test   :: exit 0 :: Test Files 342 passed | 9 skipped (351) :: Tests 22923 passed | 43 skipped
rest-test :: exit 0 :: Test Files 413 passed (413) :: Tests 8459 passed | 332 skipped
spec-test :: exit 0 :: Test Files 843 passed (843) :: Tests 26966 passed | 1 todo
```
</details>

<details><summary>Ablations (each leg: ablation-replace, objectql build,
ablation-dist-preflight, pins, restore with blob == HEAD)</summary>

```
A1 drop the owner-declared guard     -> 3 red: BY REFERENCE (label-only/redeclare), owner's redeclared field (objectql), owner field redeclared (rest)
A2 drop the code-artifact filter     -> 1 red: carries nothing from a stored (tenant-provenance) extension
A3 fold code fieldPatches into base  -> 7 red: does not fold fieldPatches (objectql) + 6 of the published fieldPatches cases (rest)
final build exit 0 · absent-preflight exit 0 · every leg "restored == HEAD blob"
```
A3's first run was a no-op: the anchor sat inside its own replacement,
and ablation-replace refused it with a drop of 0. It was rerun with a
different anchor, and the line above is that rerun. A1's first run
failed the dts build (an unused binding) and was rerun clean.
</details>

<details><summary>Gate sweep and PR-body gates</summary>

`dispatch-gates --commands` derived 93 families. 92 were run locally
with exit codes recorded and exit 0, after one fix:
`check:test-source-alias` asked for a module-top `@objectstack/spec/ui`
import in the rest pin file, which is added.
`check:dual-build-cjs-loads` is left to CI. `pnpm lint` exit 0. Run with
this body: `check-changeset-no-major`, `check-adr-0087-registration`,
`check-closing-keyword-parity`, `check-partof-closing-keyword`, all exit
0. `git merge-tree --write-tree` is clean against origin/main, objectstack-ai#33821
(already merged) and objectstack-ai#34025 (the one open PR touching
`i18n-resolver.ts`).
</details>

---

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

---------

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

Labels

documentation Improvements or additions to documentation size/m tests tooling Fix lands in tooling, not a product package — enters pm:queue only with Unblocks: or a named surface

Projects

None yet

1 participant