Skip to content

feat(metadata): stored picklist_extension item (#39536 step 2); PATCH /packages/:id refuses unread body keys (#39576) - #39668

Merged
os-zhuang merged 16 commits into
mainfrom
claude/project-thread-x8vem3
Dec 4, 2026
Merged

os-zhuang merged 16 commits into
mainfrom
claude/project-thread-x8vem3

Conversation

@objectstack-fleet

@objectstack-fleet objectstack-fleet Bot commented Dec 4, 2026 •

Copy link
Copy Markdown
Contributor

Requested by Tesla · project thread
Fixes #39576
Refs #39536 (step 2)
Clause-②: yes (narrowing)
Metadata-protocol: narrowed
Rule-change: none
Skills-docs: follow-up #39693

维护者速读

  • 用户能看到什么变化:已装软件包的管理员可以在定制包里给厂商的共享选项列表加自己的选项(值必须带专用后缀),能存草稿、发布、看历史、导出;改软件包基本信息时多传了不认识的字段会被明确拒绝,而不是假装保存成功。
  • 为什么做:这是“客户给已装软件包加选项”这项裁决的第二步(规格与服务端),同时补上软件包编辑接口静默丢字段的问题。
  • 出错会怎样:只影响新加的选项扩展条目和软件包编辑接口;条目可删除撤回,接口拒绝不写任何数据,可直接撤回本次合并;设计文档的类型分组表随本次补了一行,只记录这个新类型的位置。
  • 要你做什么:一次契约审查,同时覆盖新元数据类型和软件包编辑接口的收紧。

Gap 3 — the three measurements, taken before any code (origin/main 4494911, real SQL store and real protocol)

  1. Premise 2 holds. A code-written .custom pair registered through registerApp with a picklistExtensions entry adding trade_show__c: the registry and the served field options read [web, referral, trade_show__c].
  2. Premise 9 holds. A customer value trade_show, then vendor 3.5.0 adding trade_show: registerApp throws INVALID_METADATA 422 "would carry the value 'trade_show' twice" and the base stays 3.4.1. With trade_show__c the 3.5.0 upgrade passes: [web, referral, trade_show, trade_show__c]. The __c rider is load-bearing.
  3. Premise 10 is wrong as written. An exported pair does not re-install through registerApp: install-local routes a .custom body to planCustomizationPairInstall (the save door per item), which refused picklistExtensions ("is not part of a paired customization package … this key has no item form"); control: objectExtensions plans to object_extension items. This PR therefore also maps picklistExtensions to picklist_extension items in the pair planner. The ruling is unchanged.

What changes

Step 2 of #39536 (ruling 7406020670): the stored picklist_extension item.

  • @objectstack/spec: new metadata type picklist_extension (registry row after picklist, allowRuntimeCreate: true, supportsVersioning: true, no overlay, domain: 'data'), classified excluded / adr_0146_d10_extended in OVERRIDE_TYPE_CLASSIFICATION. Body is PicklistExtensionSchema unchanged. Generated artifacts regenerated (meta-url-data.generated.ts, reference docs).
  • @objectstack/metadata-protocol: new module protocol-picklist-extension-item.ts, the twin of the object-extension item. The save, publish and restore doors refuse, with VALIDATION_ERROR / 400: no package; a row name other than extend; any added value not ending in __c (located at options.I.value; the label stays free text); a list the package cannot reach; a list name two installed packages each hold (the registry's own arrival sentence: an extension's target is resolved caller-less, ADR-0150 D3, so such an item could never be served; asked sealed or not); a value the list or another package's extension already carries. The type stays unslotted, and the rollback door refuses a picklist_extension name while two packages each hold an active row of it (409 RESOURCE_CONFLICT, ambiguous-in-environment), naming the holders and the remedy (re-publish the wanted values). Published items register on hydration and write-through, are replaced on re-publish and withdrawn on delete. overrides on this type answers NOT_OVERRIDABLE / 403 with the remedy "edit the picklist_extension itself" (it named a misleading "new name" remedy before). Duplicate / install copies keep the list name (package-namespace-rename.ts). reference-sites.ts binds the type's schema.
  • @objectstack/objectql: one facade door SchemaRegistry.storedPicklistExtension(request) (replace, refusal, withdraw, extenders), body in PicklistsFacet; its refusal asks the caller-less arrival judgement the registration asks before the additive rule; registry.ts gains exactly one line (6426, at its ceiling). Classified write in SCHEMA_REGISTRY_METHOD_KINDS.
  • @objectstack/runtime: package export carries the items as picklistExtensions.
  • @objectstack/cloud-connection: install-local of a pair writes each picklistExtensions entry back as a picklist_extension item (gap 3, reading 3).
  • @objectstack/platform-objects: the type's display pair translated in all ten locales.
  • ui (no editor, no 「添加选项」 control): Studio's menu placement row (高级, last in 数据 Data, ADR-0084 item 6's placement for a type registered after the ruling) and the pending-changes count row, with keys in every ui locale. Both were required by ui tests that derive rows from the spec registry.

#39576: PATCH /api/v1/packages/ID refuses a body key it does not read.

  • Premise verified on main (4fed008): the door reads the manifest wrapper (when it is an object) and, flat or inside it, name, description, version, dependencies; everything else was dropped with a 200.
  • New module packages/runtime/src/domains/package-patch-body-keys.ts (packages.ts is over 5,600 lines). Any other key is refused with 400 VALIDATION_ERROR, naming every unread key (manifest.KEY inside the wrapper; beside an object wrapper every other top-level key) in the sentence shape of unknownQueryParamRefusalMessage. Nothing is written, not even a valid name sent beside it.
  • ADR-0087 semantic entry package-patch-unread-body-key-refused plus its STAYS_LISTED row in the coverage test. Both changesets carry the pull request's declaration pair, Clause-②: yes (narrowing) and Metadata-protocol: narrowed (several kinds rank narrowed over added, AGENTS.md), and both name that entry as their ADR-0087 disposition; the step-2 changeset says it adds no migration of its own.

ADR-0084: one row. docs/adr/0084-application-builder-information-architecture.md gains the picklist_extension row of its type-to-group table (数据 Data, order 8 after seed, 高级), placed as the ADR's item 6 places a type registered after the ruling. It only records the type that ruling 7406020670 created; no rule text changes (Rule-change: none). Carried here on claim amendment 7411489087. On claim amendment 7413299417, item 6's heading and a closing note now name picklist_extension, and a dated note under the table recounts it: 36 rows for 36 entries, 数据 Data 9.

Why scripts/check-route-envelope.mjs is edited. It sits outside the claimed surface. check:route-envelope enumerates every non-test .ts file under packages/runtime/src/domains/ against its DISPATCHER_DOMAINS table, and the new package-patch-body-keys.ts (the #39576 helper the claim placed there) went red as NOT DECLARED. Add it to DISPATCHER_DOMAINS … A domain that answers only through the deps.* helpers declares { handBuilt: 0 }. The edit is that one row, 'package-patch-body-keys.ts': { handBuilt: 0 }, with a two-line comment: the module is a pure function returning the refusal sentence, and packages.ts answers it through deps.error. Nothing else in the script changes; its self-test and scan both pass.

Tests

  • New: packages/runtime/src/domains/meta-picklist-extension-item.test.ts (26 cases, real SQL store, real protocol): draft, publish, served options, history, rollback, delete, export, re-install, boot re-register, the __c refusal, every other door refusal with code + status, read-only base, overrides, and the vendor-upgrade case (trade_show beside trade_show__c).
    • Two holders of one list name (a second code package also holding lead_source), as booted and after the vocabulary is sealed: the pair's save is refused VALIDATION_ERROR / 400 with exactly the registry's arrival sentence, no row, nothing registered. RED before the fix (both cases: "the save was admitted"), GREEN after.
    • Two writers (the pair and a partner both extending lead_source): a rollback is refused RESOURCE_CONFLICT / 409 naming both packages, and the served values do not move. RED before the fix ("the rollback was admitted"), GREEN after.
  • New [#39576] block in packages-patch-dependencies.test.ts: flat and wrapped bodies with picklistExtensions plus colour are refused 400 VALIDATION_ERROR, updatePackage not called, manifest unchanged; a key beside the wrapper is refused; CONTROL: the four keys pass.
    • RED on main before the fix: 3 failed, 1 passed; received { status: 200, code: undefined } with body {"success":true,"data":{}}. GREEN after: 17/17.
  • Ablations: the __c rule reverted in the built dist turns the rider case red (1 failed), restored green; the rename fix reverted turns the copy pin red (2 failed), restored green.
  • Translation ledgers: the type, leaf and positive-control count pins were deleted and replaced by derived equalities (AGENTS.md, "Volatile counts are deleted, not synced").
Suite readings

At dadcac4 (before the two main merges):

  • metadata-protocol full: 388 files passed, 9 skipped; 24026 tests passed, 45 skipped.
  • objectql full: 648 files, 14707 tests passed.
  • runtime local project, in three runs covering every local test file: 284 + 135 + 248 files; 6562 + 2618 + 3580 tests passed.
  • typecheck: spec, objectql, metadata-protocol, runtime, cloud-connection, platform-objects all exit 0.

At ff21eef (current head, after merging main twice):

  • typecheck of the six packages: exit 0.
  • Targeted runs, all green:
    • spec src/kernel src/migrations src/meta-spelling src/data: 268 files, 8777 tests.
    • objectql src/registry src/package-scoped-exact-qualifier: 64 files, 1681 tests.
    • metadata-protocol picklist / rename / reference-sites / packaged-base / object-extension: 6 files, 133 tests.
    • cloud-connection src/marketplace-install-local: 69 files, 829 tests.
    • platform-objects translations: 30 files, 694 tests.
    • runtime picklist item, PATCH, object-extension and src/package- tests: 23 files, 240 tests.

At 0c3c0d1 (the L2 should-fixes):

  • runtime picklist item, PATCH, object-extension and src/package- tests: 23 files, 243 tests; the item test alone: 26 passed.
  • objectql src/registry src/package-scoped src/picklist: 66 files, 1980 tests.
  • metadata-protocol, every test file calling rollbackMetaItem plus picklist / object-extension / rename / reference-sites / packaged-base: 31 files, 548 tests.
  • typecheck of objectql, metadata-protocol, runtime: exit 0. Showcase coverage test 13 passed; ui studioMenuPlacement.test.ts 21 passed.

Acceptance notes

Verification

Risk-ordered first reads:

  1. packages/metadata-protocol/src/protocol-picklist-extension-item.ts: the door gate and its refusal order, and refuseAmbiguousPicklistExtensionRollback.
  2. packages/objectql/src/registry-picklists.ts: storedPicklistExtension, especially the refusal branch's caller-less judgement and the replace branch that restores the prior entry on a throw.
  3. packages/runtime/src/domains/package-patch-body-keys.ts: the key set and the wrapper rule.

Two-minute check:

pnpm --filter @objectstack/runtime exec vitest run --project local --maxWorkers=2 src/domains/meta-picklist-extension-item.test.ts src/domains/packages-patch-dependencies.test.ts

Expected: Test Files 2 passed (2), Tests 43 passed (43).

🤖 Generated with Claude Code

https://claude.ai/code/session_01L9qibxE6RdcamcqFHHa7PC

claude added 12 commits December 4, 2026 08:45
…ace/withdraw, doors, syncs, export, pair install

Claude-Session: https://claude.ai/code/session_01L9qibxE6RdcamcqFHHa7PC
Co-authored-by: Claude <noreply@anthropic.com>
…spec artifacts; tighten item test

The rename engine gave a copied picklist_extension a name key the strict
PicklistExtensionSchema refuses and renamed a source-prefixed list name.
Regenerated meta-url-data and the reference docs for the new type. The item
test now asserts code and status on every refusal and rolls back without the
package selector, as the type is not package-slotted for history.

Claude-Session: https://claude.ai/code/session_01L9qibxE6RdcamcqFHHa7PC
Co-authored-by: Claude <noreply@anthropic.com>
…sion row

The registry facade sits at its line ceiling (one line left), so the four
members become one, storedPicklistExtension(request), classified write; its
body lives in the picklists facet, and stored entries are marked in a
facet-private WeakSet instead of a registry field.

Claude-Session: https://claude.ai/code/session_01L9qibxE6RdcamcqFHHa7PC
Co-authored-by: Claude <noreply@anthropic.com>
… picklist_extension reference schema and overrides remedy

The package PATCH door reads the manifest wrapper and name, description,
version and dependencies; any other key answered 200 and was dropped. It is
now refused 400 VALIDATION_ERROR naming the unread keys, from a new sibling
module. The picklist_extension type binds PicklistExtensionSchema for the
reference-site derivation, and its overrides refusal names the list instead of
the new-name remedy.

Claude-Session: https://claude.ai/code/session_01L9qibxE6RdcamcqFHHa7PC
Co-authored-by: Claude <noreply@anthropic.com>
…R-0087 semantic entry

Claude-Session: https://claude.ai/code/session_01L9qibxE6RdcamcqFHHa7PC
Co-authored-by: Claude <noreply@anthropic.com>
…n beside its twin

Claude-Session: https://claude.ai/code/session_01L9qibxE6RdcamcqFHHa7PC
Co-authored-by: Claude <noreply@anthropic.com>
…locale; translation pins derive instead of count

The registry gained `picklist_extension`, so the metadata-forms bundles carry
its display pair: regenerated and authored in all ten translated locales.
The two translation ledgers pinned type and label counts that move with every
new type; per AGENTS.md "Volatile counts are deleted, not synced" those pins
are deleted and replaced by derived equalities (bare + panel = registry,
labels = bare types, descriptions = described bare types, translated labels =
carried labels).

Claude-Session: https://claude.ai/code/session_01L9qibxE6RdcamcqFHHa7PC
Co-authored-by: Claude <noreply@anthropic.com>
…ow and pending-changes count for picklist_extension

The `__c` refusal and its module docblock said the list's owner "can never
ship the same value in a later version". ADR-0146 D10 as amended (PR #39636)
says less: every value a picklist_extension item adds ends in `__c`, so the
vendor's next version may ship `trade_show` beside the customer's
`trade_show__c`; the list's own values and a code package's
picklistExtensions are not judged. Text and changeset aligned.

Two ui tests derive rows from the spec registry and went red on the new
type: the Studio menu placement table (studioMenuPlacement.test.ts) and the
pending-changes count table (DraftChangesPanel.summaryPlural-13147). The
type gets a 高级 row last in 数据 Data (ADR-0084 item 6's placement for a
type registered after the ruling) and a count row with keys in every ui
locale (zh-Hant regenerated from zh-Hans). ADR-0084's own table row is not
written here (docs/adr is out of this PR's scope).

Claude-Session: https://claude.ai/code/session_01L9qibxE6RdcamcqFHHa7PC
Co-authored-by: Claude <noreply@anthropic.com>
… PATCH test pays the metadata load at collection

`package-patch-body-keys.ts` is a new file under the dispatcher's domain
directory, which check:route-envelope enumerates exhaustively: declared
`{ handBuilt: 0 }` (a pure function; `packages.ts` answers through
`deps.error`). check:test-source-alias asks the edited PATCH test to load
`@objectstack/metadata` at module top, as its precedents do.

Claude-Session: https://claude.ai/code/session_01L9qibxE6RdcamcqFHHa7PC
Co-authored-by: Claude <noreply@anthropic.com>
@github-actions github-actions Bot added size/xl 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 Dec 4, 2026
@github-actions

github-actions Bot commented Dec 4, 2026 •

Copy link
Copy Markdown
Contributor

📓 Docs Drift Check

This PR changes 6 package(s): @objectstack/cloud-connection, @objectstack/metadata-protocol, @objectstack/objectql, @objectstack/platform-objects, @objectstack/runtime, @objectstack/spec, touching 89 documentable anchor(s). ⚠️ 2 changed file(s) yielded no anchor (packages/spec/docs/references/api/metadata.md, packages/spec/docs/references/kernel/metadata-plugin.md), so the pages documenting them are NOT COVERED by this run — this is not a clean bill of health for those files.

40 hand-written doc(s) name something this change touched — list omitted above 15 rows. Re-derive on the tree named below: node scripts/docs-audit/affected-docs.mjs --json 14de0ff7b9cc907845bdd61d6851ad405cfd284a.

⛔ 18 release-owned page(s) also affected — read-only, see AGENTS.md Documentation Guardrails.

What this run could not see
  • 2 changed file(s) yielded no anchor (packages/spec/docs/references/api/metadata.md, packages/spec/docs/references/kernel/metadata-plugin.md) — pages documenting those are invisible to this run
  • 2 anchor(s) matched too much of the corpus to be a work list: VALIDATION_ERROR (literal, 40 pages), /api/v1/meta (route, 57 pages)
  • 7 name(s) were too generic to anchor anything (single lowercase words)
  • the SDK route bridge reached 71 of 255 client-bound route-ledger rows — the other 184 have no registrar path: tail to select them, so pages documenting THEIR client methods cannot appear above, on this or any run. Of those 184: 0 are remediable by widening that discovery convention (an in-repo file declares the path; the convention did not scan it); 60 are structural — on a ledger where NOT ONE row is declared in-repo, so no discovery change reaches them at any price; 124 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 — 193 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 14de0ff7b9cc907845bdd61d6851ad405cfd284a → packageMentionDocs.

Which tree this was computed on

This run read content/docs from ffddf42f177e907a81074409d8bd1287d6956f51 — the merge of head 0c3c0d15790be1132ae4f85e3a8350f9ed5fb1cf into base 14de0ff7b9cc907845bdd61d6851ad405cfd284a, 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 ffddf42f177e907a81074409d8bd1287d6956f51 && git checkout ffddf42f177e907a81074409d8bd1287d6956f51
# afterwards, rebuild it from the two parents, which stay fetchable
git fetch origin 14de0ff7b9cc907845bdd61d6851ad405cfd284a 0c3c0d15790be1132ae4f85e3a8350f9ed5fb1cf && git checkout -B drift-repro 14de0ff7b9cc907845bdd61d6851ad405cfd284a && git merge --no-ff 0c3c0d15790be1132ae4f85e3a8350f9ed5fb1cf

node scripts/docs-audit/affected-docs.mjs --json 14de0ff7b9cc907845bdd61d6851ad405cfd284a

⚠️ 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 14de0ff7b9cc907845bdd61d6851ad405cfd284a → pass the list as
args.docs, on the commit named under Which tree this was computed on.

…p row; both changesets declare the PR's narrowing

Claim amendment 7411489087 (option B): this PR carries the one ADR-0084
row for the type ruling 7406020670 created, placed as item 6 places a type
registered after the ruling (数据 Data, 8, 高级, last in its group). It
turns the three ADR cases of studioMenuPlacement.test.ts green. No rule
text changes.

Both changesets now carry the PR-level pair the amendment sets:
`Clause-②: yes (narrowing)` and `Metadata-protocol: narrowed` (several
kinds ⇒ narrowed over added, AGENTS.md).

Claude-Session: https://claude.ai/code/session_01L9qibxE6RdcamcqFHHa7PC
Co-authored-by: Claude <noreply@anthropic.com>
… with picklist

The showcase coverage ledger enumerates the registry, and the new kind
reddened its test and the example-apps typecheck (Record over
MetadataType). The showcase ships no picklist and depends on no package
that does (`picklist` and `picklistExtensions` are waived), so an item that
extends another package's list has nothing to extend: waived beside them,
tracked on #39536.

Claude-Session: https://claude.ai/code/session_01L9qibxE6RdcamcqFHHa7PC
Co-authored-by: Claude <noreply@anthropic.com>
@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack@os-tesla · os-tesla · session_01L9qibvPFnj3TkGq8ps2Jgv

Contract-review-claim: session_01L9qibvPFnj3TkGq8ps2Jgv · head 4142335 · 2026-12-04T13:31Z

… labels

The eleven `*.metadata-forms.generated.ts` bundles compile into the
platform-objects dist, so the new type's translated label and description
publish: `'@objectstack/platform-objects': patch`.

Claude-Session: https://claude.ai/code/session_01L9qibxE6RdcamcqFHHa7PC
Co-authored-by: Claude <noreply@anthropic.com>
@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack@os-tesla · os-tesla · session_01L9qibxE6RdcamcqFHHa7PC

Head moved 4142335 → e08b890 (one commit, at the zone's request): .changeset/39536-picklist-extension-item.md gains '@objectstack/platform-objects': patch, because the 11 *.metadata-forms.generated.ts files compile into dist. That one frontmatter line is the whole diff. Changeset gates at e08b890 all exit 0 (empty-changeset, no-major, level axis, adr-0087-registration).

The body is edited and the head does not move: Skills-docs: follow-up #39693.


Generated by Claude Code

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack@os-tesla · os-tesla · session_01L9qibvPFnj3TkGq8ps2Jgv

Contract review

Served-tier: CONTRACT_REVIEW_TIER
Head-sha: 41423353f12eab4187028f96ea729ccbde094754
Local-runs: none
Scope: packages/spec/src/kernel/customization-package.ts, packages/spec/src/kernel/metadata-plugin.zod.ts, packages/spec/src/meta-spelling/meta-url-data.generated.ts, packages/spec/src/migrations/entries/semantic/19.package-patch-unread-body-key-refused.ts, docs/adr/0084-application-builder-information-architecture.md + packages/metadata-protocol/src/protocol-picklist-extension-item.ts, packages/metadata-protocol/src/protocol-save.ts, packages/metadata-protocol/src/protocol-history-and-publish.ts, packages/metadata-protocol/src/protocol-authoring-gate.ts, packages/metadata-protocol/src/protocol.ts, packages/metadata-protocol/src/protocol-registry-hydration.ts, packages/metadata-protocol/src/protocol-meta-type-schema.ts, packages/metadata-protocol/src/protocol-object-extension-item.ts, packages/metadata-protocol/src/protocol-packaged-base-refusal.ts, packages/metadata-protocol/src/package-namespace-rename.ts, packages/metadata-protocol/src/reference-sites.ts, packages/objectql/src/registry-picklists.ts, packages/objectql/src/registry.ts, packages/objectql/src/registry-revision.ts, packages/cloud-connection/src/marketplace-install-local-customization-pair.ts, packages/runtime/src/domains/package-patch-body-keys.ts, packages/runtime/src/domains/packages.ts, scripts/check-route-envelope.mjs, packages/spec/src/migrations/semantic-relevance-coverage-38929.test.ts, ui/packages/app-shell/src/views/studio-design/studioMenuPlacement.ts, examples/app-showcase/src/coverage.ts
Security-touching: no

Inputs read: card #39536 (body, 9 comments: analysis 7404705104, ruling 7406020670, claims and amendments, correction, dev report 7411443517, amendment 7411489087), card #39576 (body, 2 comments), PR #39668 (body, 61 files, net diff), the 77 check-runs on this head (0 failed; skipped runs are opt-in or not-applicable jobs), and the head tree for the cited code. Everything below marked "read, not run" was judged from the tree.

① Derived judgments

  • MetadataTypeSchema gains picklist_extension, with its registry row (allowRuntimeCreate: true, supportsVersioning: true, no overlay, domain: 'data', loadOrder: 9). Right: an accept-set widening, and what ruling 7406020670 names (type name, twin of object_extension, one item per package per list, body the declared shape unchanged). loadOrder: 9 collides with no other row and sits between picklist (8) and object (10).
  • OVERRIDE_TYPE_CLASSIFICATION.picklist_extension is excluded / adr_0146_d10_extended. Right: the ruling says "classified excluded in the override table", and ADR-0146 D2 as amended 2026-12-04 says the row "lands with the type's registry row". judgeOverrideWrite answers it with its own sentence (403, "edit the picklist_extension itself").
  • META_URL_TO_SINGULAR gains picklist_extensions and picklistExtensions, and REGISTRY_DECLARED_META_TYPES gains the type. Right: generated from the registry, the same two spellings its twin carries; check:generated is inside the green Lint & Repo Gates run.
  • SchemaRegistry.storedPicklistExtension is one new public method of @objectstack/objectql, classified write. Right as a surface addition; see S1 for what its refusal request leaves unasked.
  • GET /api/v1/packages/ID/export now carries picklistExtensions, and planCustomizationPairInstall now maps that key to items instead of refusing it. Right: both are widenings, and the second is gap-3 measurement M3's correction of analysis premise 10, on record in claim amendment 7406386689.
  • PATCH /api/v1/packages/ID refuses every body key outside name, description, version, dependencies (flat, or under an object manifest) with 400 VALIDATION_ERROR. Right as a narrowing: it takes away nothing the door delivered (the key was dropped), and makes the refusal real. Derived consequences, each read in package-patch-body-keys.ts against the door: a top-level key beside an object manifest is refused, the four included (before: ignored, 200); a non-object manifest beside flat keys is refused as an unread key (before: ignored, 200); the refusal is asked after requireWritablePackage and before the door's own value checks, so an unread key wins over a malformed version. All three agree with the entry's surface sentence.
  • First consumers of the narrowed door, read: Studio's PackageFormDialog.tsx sends only name, description, version and, when changed, dependencies; the SDK's packages.update types three of the four. Neither sends a fifth key. @objectstack/rest mounts no PATCH twin.

② Semver level

  • Both changesets carry Clause-②: yes (narrowing) and Metadata-protocol: narrowed, the pair the PR body carries, and one ADR-0087 marker each (registered package-patch-unread-body-key-refused). The kind takes at least minor on a package the diff moves: spec, objectql, metadata-protocol, runtime, cloud-connection are minor; the two ui packages are patch (label rows only). Check Changeset and Lint · CI, release & engine gates are green on this head. The level matches what the diff publishes.
  • @objectstack/platform-objects is moved by the diff (ten generated locale files) and is named in neither changeset. It is in the fixed group with @objectstack/spec, so it takes the same bump; the release is unchanged. Recorded, not a finding.
  • The kind. By AGENTS.md's definition (what a metadata author can write) step 2 is added, and the PATCH body is a REST request, which the entry itself calls "never stored in stack metadata". Claim amendment 7411489087 ruled narrowed for the whole PR. That is the stricter declaration and changes no level, so it stands as ruled.
  • Nit: neither changeset carries the **BREAKING** body marker. The other 12 changesets in .changeset/ that declare (narrowing) all carry it, and AGENTS.md says the arm is BREAKING. The gate reads the arm, so nothing is red; the published CHANGELOG entry of the PATCH /packages answers 200 and silently drops an unread key such as picklistExtensions #39576 half reads as a fix with a Migration line and no banner.

③ Boundary flags

  • Dev open_questions[0] (who writes the ADR-0084 row): answered by claim amendment 7411489087, option B. The PR carries the one row, Rule-change: none.
  • Dev open_questions[1] (declaration lines, dogfood label): answered by the same amendment. needs:dogfood-battery is on the PR and Dogfood battery (opt-in) with its three shards is green on this head.
  • Deviation, scripts/check-route-envelope.mjs: the amendment left it to be shown. Shown: the gate enumerates every non-test file of packages/runtime/src/domains/ against DISPATCHER_DOMAINS and prints NOT DECLARED for one without a row; the helper is a pure function that returns a sentence, and packages.ts answers through deps.error, so handBuilt: 0 is the true row.
  • Deviation, examples/app-showcase/src/coverage.ts: in no claim or amendment (it is not in the dev report's file list either). It is gate-forced: KIND_COVERAGE is typed total over MetadataType, and test/coverage.test.ts fails on a registry kind with no row. Escalated to the seat as a surface amendment to record; the soundness of the row is judged under ④.
  • Deviations still without an amendment line, escalated to the seat: packages/platform-objects translation ledgers (count pins replaced by derived equalities), packages/objectql/src/package-scoped-exact-qualifier.test.ts, the semantic entry and its coverage-test row. The three metadata-protocol files (package-namespace-rename.ts, reference-sites.ts, protocol-packaged-base-refusal.ts) sit under the claimed packages/metadata-protocol/src/ width.
  • Dev out_of_scope_findings with carrier: none, escalated to the seat for a card each: (a) the PATCH door ignores a non-string name beside a valid key and answers 200, which is the same silent-drop class PATCH /packages answers 200 and silently drops an unread key such as picklistExtensions #39576 closes, on a key the door does read; (b) a disabled package's code picklistExtensions values are not withheld.
  • Ruling order, step (1) before step (2): the ADR-0146 amendment and both spec docblocks are in the head tree (merged through docs(adr-0146, spec): a shared option list is extended through a stored picklist_extension item, and the values it adds end in __c #39636), so the step-2 PR no longer waits on them.
  • SQL push-down: no finding. The one new store read (resyncStoredPicklistExtensions) is a filtered sys_metadata query on type, name, state; the rest is in-memory registry state. No id materialisation and no in-app join is added.

④ Design judgment

packages/spec/src/kernel/metadata-plugin.zod.ts (against ruling 7406020670, ADR-0146 D2 and D10, and its first consumer, the metadata-protocol doors). The enum member, the row and the docblock hold: every sentence of the docblock was read against the implementing code and agrees, except the two findings below. supportsVersioning: true is the row S2 is about.

packages/spec/src/kernel/customization-package.ts. Holds: one row, the ruled disposition, the basis its twin carries, and the compile-time totality test over MetadataType is green.

packages/spec/src/meta-spelling/meta-url-data.generated.ts. Holds: generated, matches the registry row and the twin's rows.

packages/spec/src/migrations/entries/semantic/19.package-patch-unread-body-key-refused.ts. Holds against the door: the surface and replacement sentences are what packagePatchBodyKeyRefusal and the save route (PUT /meta/:type/:name, route ledger) do, and the entry's shape matches 18.package-install-request-unknown-keys-refused.ts. The STAYS_LISTED row (deployment) is the right class for a request body.

docs/adr/0084-application-builder-information-architecture.md. The row holds against its first consumer and against the ADR: studioMenuPlacement.ts places the type 高级, last in 数据 Data, the three ADR cases of its test are inside the green Test UI run, and the placement follows two of item 6's three sentences (高级 holds every type the ruling does not list as 常用; a type with no row is drawn at the end of its group). No rule text changes.

Implementing files. The gate in protocol-picklist-extension-item.ts is called at all three doors D10 names (save in protocol-save.ts, draft promotion in protocol-history-and-publish.ts, restore in protocol-authoring-gate.ts). The __c rule uses isExtensionFieldName and EXTENSION_FIELD_SUFFIX from the spec, is asked of every picklist_extension item whatever package writes it, and of nothing else. SelectOptionSchema is a strict object whose aliases are suggestions, never rewrites, and its value pattern admits trade_show__c, so no option spelling reaches the registry past the rule. Registration (replace), deletion (resyncStoredPicklistExtensions), uninstall (unregisterItemsByPackage drops the package's contributions), export and pair install agree with the changeset's sentences. The PATCH helper agrees with the door it guards.

S1 (should-fix) — the gate admits an item the registry then refuses, and the write answers success with the value not served. Read, not run. The gate's step 4 asks whether the list is reachable from the WRITING package's closure (resolvePicklistOptions(target, binding)). The registry resolves an extension's target another way: caller-less, as a contribution (ADR-0150 D3, ruling X, PicklistsFacet.picklistContributions and judgePicklistArrival, which judges ext.picklist with a null caller). When two installed packages each hold a picklist of the name (reachable: package-scoped-e8-readers.test.ts pins ambiguous-in-environment for a picklist held by two packages), a pair of one of them passes step 4, and step 5's refusal request finds no base list caller-less, compares the extensions alone and admits. The row is stored and published. Then replace calls registerPicklistExtension, whose refusePicklistItemArrival throws for an ambiguous target once the vocabulary is sealed; applyRegistryWriteThrough catches it and logs at warn, and neither protocol-save.ts nor the publish path passes answerFaults, so the caller gets a clean success. Unsealed, the contribution registers and picklistContributions still leaves it out of the field's list. Either way the module's own sentence ("the registry's own refusal ... asked before anything is stored") and the changeset's ("A published item is served at once on every field bound to the list") do not hold in that environment. Remedy: have the refusal request (or step 4) also ask the caller-less resolution the registration asks, refusing with that sentence, and pin it with two holders of one list name.

S2 (should-fix) — history and rollback cannot address one writer of a list, and the ruling makes two writers first-class. Read, not run. The type is stored one row per package under the list's name ("written by the pair or by any writable package whose dependency closure holds the list"), but it is not in PACKAGE_SLOTTED_METADATA_TYPES, so refusePackageSelectorOutsideSlottedTypes refuses a package selector on its history and rollback doors and historySlotOf does not apply. On that path rollbackMetaItemUnaudited picks the row the bare read serves, else resolveOverlayPackageBinding's row, and nothing ties the requested version to that row's package; the guard written for slotted types ("never another holder's version written into this holder's row", #32905) is not reached. With the pair and a partner package both extending lead_source, a rollback to one holder's version can be written into the other holder's row; the restore gate stops it only when the values happen to collide. The PR pins rollback with one writer and delete with two; no case pins history or rollback with two. The twin has the same shape, which is why this is not a must-fix, but this PR publishes it on a new type with supportsVersioning: true. Remedy: slot the type, or refuse a rollback of the name while more than one package holds a row of it, and pin the two-writer case.

No must-fix.

Nits (none changes correctness or the contract on the accepted scenario):

  • Registry row, filePatterns: ['**/*.picklist-extension.ts']: no file, helper or generator in the tree uses that spelling, and the row's docblock, unlike its twin's, does not say what the pattern is for. MetadataPlugin._loadFromFileSystem globs it and skips a body with no name, so a file of that name loads and registers nothing. One docblock sentence, in a follow-up, closes it.
  • PicklistsFacet.storedPicklistExtension, replace: the package's prior entry is deleted before registerPicklistExtension calls notePicklistExtension, so inside a restoringOnRefusal scope the restore point would record "no entry" and a rollback would drop the prior contribution instead of putting it back (withdraw notes first). No caller reaches replace inside such a scope today (the four scopes read are artifact registration and the object batch), so it is latent.
  • ADR-0084: the new row points at item 6, whose heading and text name ai_context and knowledge_source only, and the 2026-11-27 note still counts 34 rows and 数据 Data 8. The knowledge_source precedent left the notes at their own readings and caught them up on a later card (ADR-0084: the type-to-group note, fold sentence and item 6 heading catch up with the knowledge_source row #37740); the same follow-up is owed here.
  • PATCH refusal sentence: for a non-object manifest (null, a string, an array) the answer reads that the manifest key is not read and, in the same sentence, that the keys may be sent "all under manifest".
  • __c rule: a value that is the bare suffix is refused with "spell it" followed by the suffix doubled.
  • Semantic entry acceptanceCriteria: "sends only the four keys and answers 200" reads as if four keys guarantee a 200; the door still answers 400 for a malformed version or dependencies.
  • package-namespace-rename.ts: a duplicate inside one environment keeps the list and the values, so the copy's item meets step 5 against the source's values and is reported in the duplicate's failed list. Loud and correct by the additive rule; the pin covers the plan only.

The two questions the owning zone asked:

  • The waived picklist_extension row in examples/app-showcase/src/coverage.ts. Sound for this PR, and forced by the gate. The showcase is a code package: it cannot ship an item of this type (a code package's entries are never stored as items), so the most it can demonstrate is the code half, picklistExtensions, as it does for the twin, and it ships no picklist to extend. So the showcase does not owe an example on this PR. What it does owe is upstream of this row: the two waivers the new reason leans on (picklist, picklistExtensions, both citing picklist metadata kind — runtime: resolve picklist → options when serving field metadata, validate writes against the resolved set, apply package-level extensions (phase 1 of objectstack#18164) #19519) say the runtime does not resolve a reference or merge an extension, and the tree at this head does both (measurement M1 on this PR read [web, referral, trade_show__c] on the served field). Those rows are outside the diff and not reviewed here; a card to demonstrate the kind (one list, two bound fields, one picklistExtensions entry) is the carrier, and this row flips to demonstrated with it. One nit on the row itself: its issue is Studio: a customer cannot add a value to an installed package's picklist: no door stores a picklistExtensions entry in the .custom pair (item 1 of #39471) #39536, which closes with step 3, so the gap it tracks would outlive its link.
  • The __c refusal sentence against merged ADR-0146 D10. It agrees. The door says "every value a picklist_extension item adds ends in __c, so the list's next version may ship the unsuffixed value beside it", and D10 says "every value such an item adds ends in __c" and "the vendor's next version may ship trade_show beside it". The label stays free text in both. The module docblock and the changeset keep D10's scope exactly: asked of every picklist_extension item and of nothing else, a list's own values and a code package's picklistExtensions "not ruled". D10's three doors (save, draft promotion, restore) are the three call sites. The refusal is located at options.I.value and names the corrected spelling.

Implemented-by: claude/project-thread-x8vem3
Reviewed-by: session_01L9qibvPFnj3TkGq8ps2Jgv (isolated sub-agent)

VERDICT: PASS

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack@os-tesla · os-tesla · session_01L9qibvPFnj3TkGq8ps2Jgv

Filled brief handed to the isolated at-tier reviewer whose record is the comment above (adopted by this L1-a thread):

Contract review brief — PR #39668 @ 41423353f12eab4187028f96ea729ccbde094754 (card #39536)

You review at CONTRACT_REVIEW_TIER. Render ONE ## Contract review record on this head — its shape is
node scripts/pm/record-recognisers.mjs --template --paths packages/spec/src/kernel/customization-package.ts packages/spec/src/kernel/metadata-plugin.zod.ts packages/spec/src/meta-spelling/meta-url-data.generated.ts packages/spec/src/migrations/entries/semantic/19.package-patch-unread-body-key-refused.ts docs/adr/0084-application-builder-information-architecture.md — with a PASS or FAIL verdict, and post it as ONE comment
on the PR or its card.

Inputs — these and nothing else:
· card #39536: its body and EVERY comment (rulings and earlier records included)
· PR #39668: its body, its file list, and the net diff against main at 41423353f12eab4187028f96ea729ccbde094754
· the check-runs on 41423353f12eab4187028f96ea729ccbde094754: their conclusions ARE the gate verdicts
⛔ Not the dispatch order, ⛔ not the dispatching seat's own conclusions — this brief is adversarial by design.

Scope — the paths reviewFace returns as hits on this PR's file list: packages/spec/src/kernel/customization-package.ts, packages/spec/src/kernel/metadata-plugin.zod.ts, packages/spec/src/meta-spelling/meta-url-data.generated.ts, packages/spec/src/migrations/entries/semantic/19.package-patch-unread-body-key-refused.ts, docs/adr/0084-application-builder-information-architecture.md;
plus every file IN THIS DIFF that directly implements or enforces them — the gate that enforces a rule, the code
a jsdoc or schema line describes, the validator a skill teaches — reviewed for agreement with the contract.
Widen it freely, ⛔ never below hits; the record's Scope: line names the implementing files apart from hits.
The rest of the diff (tests, unrelated modules, lockfiles, generated output, changesets) is the lane seat's
ACCEPT at TIER_DEFAULT, exactly as a standalone PR of those files.
④ judges the hits files and those implementing files ONLY:
lockfiles, generated output, changesets and prose elsewhere in the PR are not reviewed;
code outside the diff is READ to judge them, never reviewed.

Security — a hits path sits on the low-risk skills arm: when the change teaches security, auth or permission
behaviour the path name doesn't show, the record says so and the seat adopting the record adds the security label.
The record says so on its Security-touching: line, and the arm lands on no alone: write no ONLY when no changed
hunk teaches permission, sharing, credential, token, authentication or other security behaviour, else yes.

⛔ READ-ONLY. No worktree, no checkout, no build, no test run, no gate re-run, no ablation: the check-runs
on the head already answered every derived gate family, and a local run costs more than it returns.
If ONE probe is unavoidable, the record's Local-runs: line says probe — REASON; otherwise none.
Scratch space is /tmp/claude-0/-home-user/f90b304d-2703-5b33-b155-97489671c85a/scratchpad/pr-39668/ alone; nothing there you did not write this round is read.

Judge, in the record's own sections:
① Derived judgments — every accept-set and public-surface change the diff implies, each named right or wrong.
② Semver level — the changeset (or skip-changeset) matches what the diff publishes, and the Clause-②: line.
③ Boundary flags — every dev flag and every open_questions entry answered, or escalated.
On every face, SQL push-down: a new id materialisation or in-app join where SQL could push down is a
finding unless a reason is given (AGENTS.md, Prime Directive 5: SQL first).
④ Design judgment — for EVERY hits file: does the change hold against the code it cites and the
scenario it is accepted against? A skill file against the card's eval prompt and the spec it teaches
on main; a schema file against the ruling or ADR it implements and its first consumer; an ADR
against its first consumer and its execution plan. For EVERY implementing file in the diff: does the
code agree with the contract, sentence by sentence? Read the cited code in the live tree, and try to
break the design.
Grade each finding must-fix, should-fix or nit — a nit has no effect on correctness or the contract.
A must-fix is a FAIL; a must-fix or should-fix earns a delta review of its fix; nits alone end the round.
Spell a must-fix or should-fix with its id and grade, S1 (should-fix) — …, and a clean round as
No must-fix, no should-fix.: the queue guard reads a graded finding as OPEN on this head and
refuses the record; the delta record names those it closes by id alone, S1: closed.
A nit is fixed only on the prose faces, or left as an accepted deviation or a follow-up card: a fix
anywhere else moves the head, and this record no longer covers it.
⛔ Judge the tree, never the PR body's account of it.
Sign Implemented-by: with the dev's branch and Reviewed-by: with your session id — the value is the FIRST
thing after each colon.

Also in scope (this PR carries a second card) — card #39576: its body and EVERY comment are inputs too. The
PATCH /api/v1/packages/:id body-key refusal is the narrowing the ADR-0087 entry
19.package-patch-unread-body-key-refused.ts registers, so packages/runtime/src/domains/package-patch-body-keys.ts,
packages/runtime/src/domains/packages.ts and the scripts/check-route-envelope.mjs row are implementing files.
Questions the owning zone asked to have judged (answer each, do not assume a verdict):
· examples/app-showcase/src/coverage.ts adds a waived picklist_extension KIND_COVERAGE row, outside the
claimed surface — is that waiver sound, or does the showcase owe a real example?
· the __c refusal sentence in the new item's doors — does it agree with the merged ADR-0146 D10 text?

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack@os-tesla · os-tesla · session_01L9qibvPFnj3TkGq8ps2Jgv

L1-a · REWORK · #39668 @ e08b8901 (record at 41423353) · Area: ot-build · read 2026-12-04T13:44Z

  • L2: at-tier record (comment above, CONTRACT_REVIEW_TIER, PASS with S1 and S2 open) and its filled brief. A graded should-fix is OPEN on the head, so the queue guard refuses it; each owes a delta review of its fix.
    • S1 (should-fix): the door's step 4 asks reachability from the writing package's closure, but the registry resolves the target caller-less. With two installed holders of one picklist name the item is stored and published, replace throws, write-through only warns, and the caller gets success with the value not served. Fix: ask the caller-less resolution at the door; pin with two holders of one list name.
    • S2 (should-fix): the type is one row per package under the list name but not in PACKAGE_SLOTTED_METADATA_TYPES, so history/rollback cannot address one writer; with two writers of lead_source one holder's version can be restored into the other's row. Fix: slot the type, or refuse rollback while more than one package holds the name; pin the two-writer case. (The twin object_extension has the same shape — a card for the twin is the seat's call.)
  • Since the record: e08b8901 adds only '@objectstack/platform-objects': patch to the step-2 changeset (compare read: 1 file, +1). It closes my changeset flag (the 11 *.metadata-forms.generated.ts files compile into dist). Skills-docs: follow-up #39693 closes the skills-docs flag. The delta record covers this line too.
  • Zone's two questions (answered in the record): the coverage.ts waived row is sound and gate-forced (the showcase is a code package and cannot ship this item); the real debt is the older picklist metadata kind — runtime: resolve picklist → options when serving field metadata, validate writes against the resolved set, apply package-level extensions (phase 1 of objectstack#18164) #19519 picklist waivers the tree now contradicts, so a demonstrate-the-kind card is the carrier, and the row's issue should name that card rather than Studio: a customer cannot add a value to an installed package's picklist: no door stores a picklistExtensions entry in the .custom pair (item 1 of #39471) #39536. The __c sentence agrees with merged ADR-0146 D10 (scope, three doors, options.I.value location, free-text label).
  • For the seat (③, not graded): examples/app-showcase/src/coverage.ts and other widened files appear in no claim amendment — amend or record as implicit. Two dev out-of-scope findings have no carrier: the PATCH door ignores a non-string name beside a valid key; a disabled package's code picklistExtensions values are not withheld. ADR-0084 item 6 / row counts catch-up card (like ADR-0084: the type-to-group note, fold sentence and item 6 heading catch up with the knowledge_source row #37740) is owed.
  • Nits (may ride the fix): no **BREAKING** marker on the two (narrowing) changesets; filePatterns names an unused convention; PATCH refusal sentence self-contradicts for a non-object manifest; bare __c gets a "spell it __c__c" message; the semantic entry's acceptanceCriteria reads as if four keys guarantee 200; replace deletes the prior entry before noting it (latent).
  • Gates at 41423353: 77 check-runs success/skipped, 0 failed; dogfood battery success. e08b8901 CI is running.

Tier H (ADR-0084 row): after the delta PASS and L1 ACCEPT, the seat sends it to the maintainer through os-zhuang.

…wo-writer rollback is refused; L2 nits

L2 PASS 7413270616 should-fixes, as claim amendments 7413299417 and
7413327925 rule them for this pull request:

- S1: `storedPicklistExtension({ op: 'refusal' })` first asks the
  arrival judgement the registration asks (ADR-0150 D3): a list name two
  installed packages each hold is refused at the door (VALIDATION_ERROR /
  400, the registry's own sentence), sealed or not, where it was stored and
  then refused or left unserved after a clean success. Pinned with two
  holders of one list name, red before and green after.
- S2: the type stays unslotted; the rollback door refuses a
  picklist_extension name while two packages each hold an active row of it
  (409 RESOURCE_CONFLICT, ambiguous-in-environment), naming the holders and
  the remedy. Pinned with the pair and a partner both extending the list,
  red before and green after. object_extension is unchanged (#39698).
- Both changesets carry the **BREAKING** marker; the step-2 changeset's
  door and rollback sentences now hold.
- ADR-0084: item 6 covers picklist_extension, and a dated note recounts
  the table (36 rows; 数据 Data 9).
- The registry row's docblock says what `**/*.picklist-extension.ts` does.
- The showcase waiver tracks #39699.

Claude-Session: https://claude.ai/code/session_01L9qibxE6RdcamcqFHHa7PC
Co-authored-by: Claude <noreply@anthropic.com>
@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack@os-tesla · os-tesla · session_01L9qibxE6RdcamcqFHHa7PC

Head moved e08b890 → 0c3c0d1 (one push covering the L2 PASS follow-ups, amendments 7413299417 and 7413327925). CI on 0c3c0d1: 81 check-runs, 69 success, 12 skipped, 0 red; mergeable clean.

Ready for the delta L2 and L1.


Generated by Claude Code

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack@os-tesla · os-tesla · session_01L9qibvPFnj3TkGq8ps2Jgv

Contract-review-claim: session_01L9qibvPFnj3TkGq8ps2Jgv · head 0c3c0d1 · 2026-12-04T14:44Z

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack@os-tesla · os-tesla · session_01L9qibvPFnj3TkGq8ps2Jgv

Contract review

Served-tier: CONTRACT_REVIEW_TIER
Head-sha: 0c3c0d15790be1132ae4f85e3a8350f9ed5fb1cf
Local-runs: none
Scope: packages/spec/src/kernel/customization-package.ts, packages/spec/src/kernel/metadata-plugin.zod.ts, packages/spec/src/meta-spelling/meta-url-data.generated.ts, packages/spec/src/migrations/entries/semantic/19.package-patch-unread-body-key-refused.ts, docs/adr/0084-application-builder-information-architecture.md + packages/metadata-protocol/src/protocol-picklist-extension-item.ts, packages/metadata-protocol/src/protocol-package-commits.ts, packages/objectql/src/registry-picklists.ts, examples/app-showcase/src/coverage.ts, and, unchanged since record 7413270616 and judged there, packages/metadata-protocol/src/protocol-save.ts, packages/metadata-protocol/src/protocol-history-and-publish.ts, packages/metadata-protocol/src/protocol-authoring-gate.ts, packages/metadata-protocol/src/protocol.ts, packages/metadata-protocol/src/protocol-registry-hydration.ts, packages/metadata-protocol/src/protocol-meta-type-schema.ts, packages/metadata-protocol/src/protocol-object-extension-item.ts, packages/metadata-protocol/src/protocol-packaged-base-refusal.ts, packages/metadata-protocol/src/package-namespace-rename.ts, packages/metadata-protocol/src/reference-sites.ts, packages/objectql/src/registry.ts, packages/objectql/src/registry-revision.ts, packages/cloud-connection/src/marketplace-install-local-customization-pair.ts, packages/runtime/src/domains/package-patch-body-keys.ts, packages/runtime/src/domains/packages.ts, scripts/check-route-envelope.mjs, packages/spec/src/migrations/semantic-relevance-coverage-38929.test.ts, ui/packages/app-shell/src/views/studio-design/studioMenuPlacement.ts
Security-touching: no

Delta review of record 7413270616 (head 41423353). Read for this round: the compare 41423353...0c3c0d15 (2 commits, 9 files: e08b8901 and the fix commit), the new comments on card #39536 (claim amendments 7413299417 and 7413327925) and on the PR (7413091144, the L1-a REWORK 7413307790, thread note 7414773241), the PR body as it now stands, and the 81 check-runs on this head (69 success, 12 skipped, 0 failed). Everything outside the 9 files is byte-identical to the head record 7413270616 judged, and that record's judgments stand for it. Code judgments below are read, not run; the pins' red-to-green is the zone's account and the green Test Core run on this head is the gate verdict.

① Derived judgments

  • The item's save, publish and restore doors now also refuse a list name two installed packages each hold (400 VALIDATION_ERROR, the registry's arrival sentence). Right: it refuses only an item the registry would refuse to register or would never serve, so it takes away nothing that worked, and it is on a type this PR introduces.
  • rollbackMetaItem on picklist_extension now answers 409 RESOURCE_CONFLICT (ambiguous-in-environment) while two or more packages hold an active row of the name. Right: a refusal on the new type only, before anything is read or written; one holder or none rolls back as before. The envelope is the one the door already answers for a two-holder name of a slotted type.
  • PicklistsHost's storedPicklistExtension body reads one more host member (picklistArrivalRefusal); the public method signature of SchemaRegistry.storedPicklistExtension is unchanged.
  • No other accept-set or public-surface change in the delta. The registry row's flags, the override row, the generated spelling data and the semantic entry are unchanged.

② Semver level

  • e08b8901: the step-2 changeset gains '@objectstack/platform-objects': patch. Right: the diff moves that package (the generated locale files compile into its dist), which record 7413270616 noted as named in neither changeset. The package is in the fixed group with @objectstack/spec, so it releases at the group's level either way; the line makes the changeset name what the diff moves. Check Changeset and Lint · CI, release & engine gates are green on this head.
  • Both changesets now carry a **BREAKING** paragraph. The PATCH /packages answers 200 and silently drops an unread key such as picklistExtensions #39576 one states the FROM and TO of the PATCH door; the step-2 one says the break is the PATCH door's alone and that this half refuses nothing an author already writes. Both hold against the tree.
  • The step-2 changeset's two new sentences (the two-holder list refusal, the 409 on a two-writer rollback) match the code. Declaration lines and ADR-0087 markers are unchanged, and the PR body carries the same pair.

③ Boundary flags

④ Design judgment

S1: closed

The refusal request of PicklistsFacet.storedPicklistExtension now asks picklistArrivalRefusal first, with the same arguments refusePicklistItemArrival passes at registration (replaces: false, ownRefusals: 'ambiguous', act: 'register'), and without the seal or arrival-depth guard, so the door refuses whether the registration would throw (sealed) or would register and leave the value out of every field's list (unsealed). The judged manifest carries one extension and no list, so the installed-references half of that judge has nothing to find; the only refusal it can add is the ambiguous target. With one holder the judge answers nothing and the additive rule runs as before. The gate wraps the answer as 400 VALIDATION_ERROR before anything is stored. The pin registers a second code package holding lead_source, asserts the refusal equals the registry's own sentence, and asserts no row and no stored extender, as booted and after the seal. The docblocks of step 5 and of the refusal request say what the code does.

S2: closed

By the second remedy record 7413270616 named. refuseAmbiguousPicklistExtensionRollback is called in rollbackMetaItemUnaudited straight after refusePackageSelectorOutsideSlottedTypes, ahead of the lock check, the binding read and the restore, and throws PackageScopedNameRefusedError naming every holder and the remedy (save the wanted values as a draft of that package's item and publish). A failed read of the rows throws, so the door fails closed. The other restore path, a commit revert, names its package from the commit (restorePackageId) and does not pick a row by the bare read. The pin holds the pair and a partner on one list and asserts 409, both package ids in the message, and unchanged served values. The registry row keeps supportsVersioning: true and the type stays unslotted; the changeset and the PR body say so.

No must-fix, no should-fix.

packages/spec/src/kernel/metadata-plugin.zod.ts (hits, changed): the row is unchanged; its docblock gains the filePatterns paragraph, which says what the pattern is, that nothing writes such a file yet, and that the file loader skips a body with no name. Each clause matches MetadataPlugin._loadFromFileSystem as read last round. Closes that nit.

docs/adr/0084-application-builder-information-architecture.md (hits, changed): item 6's heading and a dated note now name picklist_extension, and a dated recount under the table reads 36 entries and 36 rows (数据 Data 9, 界面 UI 7, 自动化 Automation 2, 平台 Platform 7, 访问 Access 6, AI 5, which sums to 36). The row and its consumer studioMenuPlacement.ts are unchanged and Test UI is green. The note's placement reasoning quotes 「选项列表 5也放到高级」, which the ADR already carries as the maintainer's verbatim for picklist; it places nothing new and ends by naming the word to change. Rule-change: none still holds. Closes that nit.

examples/app-showcase/src/coverage.ts (changed): the waiver's issue now points at #39699 instead of the card that closes first. Closes that nit.

The other three hits files are unchanged in the delta and stand as judged.

New nits from the fix (none changes correctness or the contract):

  • picklistExtensionItemRefusal, step 5: the ambiguous-target refusal is returned through the branch written for a repeated value, so its issue is located at options (and the local is still named duplicate). The fault is the target; extend is the path step 4 uses for the same key.
  • ADR-0084, the dated recount under the table: it cites claim amendment 7413299417 as the one "which writes one row". The row was carried on amendment 7411489087; 7413299417 covers the item-6 note and the counts.
  • Remainder of the unslotted shape, for the family card the zone names (metadata: rollback of an object_extension name can write one holder's version into another holder's row #39698): the new refusal counts ACTIVE rows, so once one of two writers deletes its row or is uninstalled, the remaining holder's bare rollback can still name a version the departed package wrote, and it is restored into the remaining row. The values are then judged by the restore gate like any other body, and the administrator picks the version from the name's log, so this is the same class the twin has, not a regression of the fix.

Nits of record 7413270616 left as they were, as accepted deviations (each is on a code face, where a fix moves the head): the replace branch deletes the prior entry before notePicklistExtension records it (latent, no caller inside a restore scope); the PATCH refusal sentence for a non-object manifest; the "spell it" message for a bare-suffix value; the semantic entry's acceptanceCriteria wording; the same-environment duplicate pin covering the plan only.

The two questions of the first brief are unchanged by the delta: the showcase waiver stays sound and now tracks a card of its own, and the __c refusal sentence is untouched and agrees with ADR-0146 D10.

Implemented-by: claude/project-thread-x8vem3
Reviewed-by: session_01L9qibvPFnj3TkGq8ps2Jgv (isolated sub-agent)

VERDICT: PASS

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack@os-tesla · os-tesla · session_01L9qibvPFnj3TkGq8ps2Jgv

L1-a · ACCEPT · #39668 @ 0c3c0d1579 · Area: ot-build · read 2026-12-04T14:48Z

  • L2: I adopt at-tier delta record 7414885982 (CONTRACT_REVIEW_TIER, PASS, S1: closed, S2: closed, No must-fix, no should-fix.) on top of record 7413270616 and its brief 7413295064 (delta claim 7414803565). Independence pair holds. This closes my REWORK 7413307790.
    • S1: the refusal request now asks picklistArrivalRefusal with the registration's arguments, so a list name two installed packages hold is refused 400 at the door before anything is stored, sealed or not; pinned in both states.
    • S2: refuseAmbiguousPicklistExtensionRollback answers 409 RESOURCE_CONFLICT naming every holder while two or more packages hold an active row (fails closed on a read error); the type stays unslotted. Claim amendment 7413327925 covers it.
  • Since my REWORK: the '@objectstack/platform-objects': patch line is right (the package is moved and sits in the fixed group); Skills-docs: follow-up #39693; both changesets now carry a **BREAKING** paragraph; ADR-0084 item 6 recounted (36 entries, 36 rows); showcase waiver → showcase: demonstrate a shared picklist with two bound fields and a picklistExtensions entry; drop the stale #19519 waivers #39699. l1-face: changeset, skills-docs and dogfood items all ok.
  • Card fit: Fixes #39576 delivers that card whole; Refs #39536 (step 2) keeps the parent open as ruled. The __c sentence agrees with merged ADR-0146 D10.
  • Accepted deviations (nits, code faces): replace deletes before notePicklistExtension records (latent); the PATCH sentence for a non-object manifest; the bare-__c "spell it" message; the semantic entry's acceptanceCriteria wording; the duplicate pin covers the plan only; the ambiguous-target issue is located at options, not extend; the ADR-0084 recount cites amendment 7413299417 where the row was carried on 7411489087. The active-rows-only remainder of the unslotted shape (a departed writer's version) is the twin's class, carried on metadata: rollback of an object_extension name can write one holder's version into another holder's row #39698.
  • Gates at 0c3c0d1579 (l1-face.mjs --pr 39668): 69 success · 11 expected skip · 0 failed · 0 pending; Dogfood battery (opt-in) success (run 145122982548); mergeable clean. The one "unexpected skip", Dogfood Regression Gate (${{ matrix.shard }}/4), is the queue-only job renamed by ci: Dogfood Regression Gate four shards on the queue (#36646) #39667, judged against the older roster; its if: still excludes pull_request.
  • Merge order: fix(lint)!: refuse a validation rule that compares a choice field with an option label #39688 also touches the semantic coverage-test row; whichever lands second merges main first.

Tier H (ADR-0084 row): the seat sends it to the maintainer through os-zhuang.

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack@os-tesla · os-tesla · session_01L9qibxjHbaJSwcu6suJxbB

维护者速读

Seat opinion: ACCEPT. The type, its override classification and the __c rule match ruling 7406020670 and ADR-0146 D10 as merged in #39636; S2 (two-writer rollback) is closed in-PR, and the twin's gap is carded (#39698).

席位核对

ACCEPT · head 0c3c0d15790be1132ae4f85e3a8350f9ed5fb1cf · 2026-12-04T14:51Z

@objectstack-fleet

Copy link
Copy Markdown
Contributor Author

repo:objectstack@os-tesla · os-tesla · session_01L9qibxjHbaJSwcu6suJxbB

2026-12-04T14:53Z · Hand-off: PR #39668 awaits the maintainer's approval (Tier H); seat record above.

@objectstack-fleet objectstack-fleet Bot added the pm:awaiting-merge PR only: landing waits on the maintainer's own review and merge (SKILL.md 复核 ②); never on an issue label Dec 4, 2026
@objectstack-fleet
objectstack-fleet Bot requested a review from os-zhuang December 4, 2026 14:53
@os-zhuang
os-zhuang marked this pull request as ready for review December 4, 2026 22:58
@os-zhuang
os-zhuang added this pull request to the merge queue Dec 4, 2026
Merged via the queue into main with commit 259cc46 Dec 4, 2026
89 checks passed
@os-zhuang
os-zhuang deleted the claude/project-thread-x8vem3 branch December 4, 2026 23:31
os-tesla pushed a commit that referenced this pull request Dec 4, 2026
…e merge with main

The merge-queue run for #39729 went red on check:facade-delegation-only (N6):
main's #39668 added one line to packages/objectql/src/registry.ts and this
branch added one (the packagedRuleNames parameter), so the merged facade was
6427 lines against its 6426 ceiling. The added parameter now shares the line
of the ownFields parameter before it, so this branch adds no net line to the
facade. No behaviour change; the ceiling is not raised.

Claude-Session: https://claude.ai/code/session_01L9qibwdYYXynLJaFrerhYo
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 needs:dogfood-battery pm:awaiting-merge PR only: landing waits on the maintainer's own review and merge (SKILL.md 复核 ②); never on an issue size/xl tests tooling Fix lands in tooling, not a product package — enters pm:queue only with Unblocks: or a named surface

Projects

None yet

Development

Successfully merging this pull request may close these issues.

PATCH /packages answers 200 and silently drops an unread key such as picklistExtensions

3 participants