Skip to content

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

Todo

Description

@objectstack-fleet

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

Filing gate: ② (a fleet Feature whose route is a maintainer call) · Source: fleet (split from #39471 by the claiming zone ot-build after its dev's measurement).
Carries item 1 of #39471 (adding a picklist value to an installed package's picklist); #39471 keeps item 2 (adding a validation rule through the .custom object extension), which is in flight.
Grading: area:build · Feature · p2 · reach: every customer of an installed package who needs one more picklist value (new-company walkthrough on #39471, HotCRM 7.1.0 lead source) · evidence: measured by the #39471 dev at e43597b (report comment 7404354844 on #39471, probe branch claude/issue-39471-custom-picklist-validation-wip@1191f826).
Dedupe: picklistExtensions custom → 5 hits, 1 open (#39471 itself, the parent); no card carries this door.

维护者速读

  • 需要您决定:客户想给已装包的选项列表加一个值,平台目前没有任何入口能把它存进客户自己的定制包(.custom)。要不要新开这个入口?
  • 为什么要您定:要做就得新增一种存储的元数据类型(契约变化),属于能力扩张。
  • 选项:(A) 新增 picklist_extension 条目类型,和对象扩展一样走草稿、发布、历史、导出;(B) 让包的 PATCH 接受这个键(权宜做法);(C) 这一版不做,只把只读提示改成告诉客户能做什么。
  • 建议:A(开发的推荐,依据 ADR-0146 D2「代码和 Studio 用同一机制」);若现阶段不扩能力则 C。

Measured (the #39471 dev, e43597b)

  • PATCH /packages/<pair> with the key alone: 400 VALIDATION_ERROR "nothing to update"; with name beside it: 200 and the key is silently dropped.
  • a picklist item in the pair: 403 NOT_OVERRIDABLE; a picklist_extension type: 400 INVALID_REQUEST (no such type); fieldPatches options: 422 INVALID_METADATA (ADR-0146 D6).
  • a pair manifest carrying the key is refused at install: "Unrecognized key(s) on this package manifest: picklistExtensions".
  • The runtime already resolves picklistExtensions from code packages (objectql registry-picklists.ts, picklist-resolution.ts); a code .custom package can declare it, Studio cannot.

Options (from the dev's report; four-axis reasoning in comment 7404354844 on #39471)

  • A — new stored type picklist_extension, the twin of object_extension (one item per target list, body PicklistExtensionSchema, registered on publish and boot, withdrawn on delete or uninstall, exported as picklistExtensions; ManifestSchema admits the key so the pair's export re-installs). Cost L; contract face (spec metadata-type registry), owes L2.
  • B — widen PATCH /packages/:id to accept the key. Cost M; no draft, publish, history or revert; not recommended.
  • C — do not offer it now; the read-only notices on the picklist page and the field inspector say what the customer can do instead (ask the vendor, or add their own __c choice field). Cost S.

No suffix rule and no new gate in any option.

Who acts: the decision goes to the maintainer through the seat's decision thread; the ot-build zone builds the chosen route.

Related: the PATCH door's silent drop of an unknown key (probe P1b) is noted in the #39471 report as an out-of-scope finding.

Activity

  1. added
    enhancement
    priority:p2
    domain:ui
    and removed
    domain:ui
    on Dec 4, 2026
  2. objectstack-fleet commented on Dec 4, 2026

    @objectstack-fleet
    ContributorAuthor

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

    维护者速读

    • 问题:客户在已安装的 CRM 里想给「线索来源」这类多个对象共用的选项列表加一个值(买 CRM 后最先做的定制之一),界面走到头只提示“去所属软件包里加”,而那个包客户改不了;十月您裁过按组织给选项列表追加值这件事不考虑,这次是换到客户自己的定制包里做,等于请您明确要不要重开。
    • 选项:一是做成定制包里的正式条目——客户在选项列表页点「添加选项」,和加字段一样走草稿、发布、历史并随定制包导出,约四到五个改动;二是只在软件包信息接口上开个口子——值能存下,但没有草稿、历史和回退,改错即时生效,约两到三个改动;三是这一版不做——只把只读提示改成说清客户能怎么办(找厂商加,或自建一个选择字段),一个小改动。
    • 推荐:第一条,因为主流平台(Salesforce、Dataverse)都允许客户给厂商的选项列表加值,而平台今天已经支持用代码写的扩展包加值,只差设计器这一半;请同时定一件事:客户加的值是否像扩展字段那样带专用后缀,否则厂商下个版本用了同名值,升级会被拒。
    • 不定会怎样:客户仍然加不了值,提示继续把人指向一个改不了的软件包;同一张来源单上“给已装对象加验证规则”那一半不受影响,照常在做。

    Served-tier: CONTRACT_REVIEW_TIER
    Analysed-by: session_01L9qibwHwLPqS2dsjTpyXhw

    Decision analysis

    Read at origin/main = eb947b665. The dev measured at e43597b1; every file the premises cite is byte-identical between the two (git diff --stat e43597b1 origin/main -- FILES prints nothing). Every premise below carries the command that re-reads it. Probes P1 to P5 are the dev's (report 7404354844 on #39471); they were read, not re-run.

    Background

    Item 1 of #39471, split out as this card. In a new-company walkthrough on installed HotCRM 7.1.0 the customer tries to add one lead source. The field inspector and the list's own page both say the list belongs to its package, and neither offers an action in the customer's customization package. The dev then measured that this is not a missing button: no door stores such an entry for a package authored at runtime.

    Three facts found while measuring change the shape of the question. The card as filed carries none of them.

    1. The capability was ruled out once, in other words. The shared-list design of record (comment 5715762696 on spec: a shared picklist (global value set) metadata kind — option lists reused across objects and packages are TypeScript constants today #18164, 2026-09-17) had two halves: a package adds values to another package's list, and the customer appends values without touching the app source. The first half was ruled in on 2026-09-30 (record 5904864936: the kind is picklist, "the package-level extension picklistExtensions"), with the second "deferred to its own sub-issue on a measured customer requirement". On 2026-10-11 the maintainer dropped the second half, verbatim: 「按组织追加 picklist 值,不考虑」 (platform-checklist + NORTH-STAR: retire records-forms.picklist-org-append and the "customers append values per organization" promise — the per-organization picklist append is ruled out #22869, landed by docs(checklist, north-star): retire records-forms.picklist-org-append — the per-organization picklist append is ruled out #22982 on the governed North Star line). The seat that filed platform-checklist + NORTH-STAR: retire records-forms.picklist-org-append and the "customers append values per organization" promise — the per-organization picklist append is ruled out #22869 read it as "the append is not moved to environment level either", and that sentence is in the tree. The claiming seat's prior-ruling search on Studio: a customer cannot add a picklist value or a validation rule to an installed package, though object and picklist extensions support both #39471 printed "0 decision hits" because these records live in issues and in the QA ledger, not in docs/adr.
    2. The spec says the gap is deliberate. The two docblocks that own the kind both say a deployment appending values is "a later phase with its own admission … not declared here". So nothing is declared and unfulfilled; the code matches the declaration.
    3. ADR-0146 (2026-10-31) came after both rulings and changed what "the customer's layer" is. In October the only home for a customer's value was a per-organization overlay row, an axis ADR-0131 had retired. Since ADR-0146 the customer's layer is a real package, the pair, and D2 says code and Studio produce the same package. A pair written in code can already declare the extension (premise 2); a pair written in Studio cannot.

    So the question is not "which door" but "does the 2026-10-11 ruling cover the customer's package, or only the retired per-organization axis". Only the maintainer can say. The option set below is the answer to each reading.

    Governing text

    Governing text:

    Search: node scripts/pm/check-prior-rulings.mjs --card 39536 --terms picklist,picklistextensions,picklist_extension,objectextensions,custom, git grep -n -iE 'picklist' origin/main -- docs/adr docs/NORTH-STAR.md AGENTS.md, and gh api repos/objectstack-ai/objectstack/issues/22869 --jq .body.

    Option A runs against the 2026-10-11 ruling as the tree reads it, and against "not declared here". It is offered because both are the maintainer's own to narrow and because ADR-0146 is later than both. The fourth route considered below conflicts with ADR-0146 D10 and is not offered for choice.

    Protocol statement

    • picklistExtensions is declared (packages/spec/src/stack.zod.ts:870, shape at packages/spec/src/data/picklist.zod.ts:114) and is enforced on the route it is declared for, a package's own definition (premise 2). Enforce-or-remove does not apply to this card: there is no declared key that nothing honours.
    • What the card asks for, a customer storing such an entry at runtime, is declared absent (premise 3). A therefore adds public surface: one metadata type (registry row, override-classification row, stored-collection mapping), an amendment note on ADR-0146 (governed, the maintainer's hand), two spec docblocks rewritten, and the North Star line re-widened (governed). Metadata-protocol: added. Contract face, so it owes L2.
    • B changes a REST request body and what a stored package row may carry. C changes no protocol.
    • This card is the separate Feature card the "new public surface gets its own card" rule asks for; no option is filed as a bug.

    Premises (each with its re-check)

    1. The key is declared. packages/spec/src/stack.zod.ts:870; shape packages/spec/src/data/picklist.zod.ts:114-134 (closed, two keys, additive only).
      Re-check: git grep -n "picklistExtensions: z.array" origin/main -- packages/spec/src/stack.zod.ts.
    2. It is honoured for any package that carries it in its definition, the pair included. packages/objectql/src/engine-registration.ts:575-576 hands each entry to the registry with the owning package id; no role judge sits in between. The ledger grades the list's options live "merged with every picklistExtensions entry's options" (packages/spec/liveness/picklist.json). Read, not run for a pair id.
      Re-check: git grep -n "registerPicklistExtension(extension, ownerId)" origin/main -- packages/objectql/src/engine-registration.ts.
    3. The runtime side is declared closed, on purpose. Registry row packages/spec/src/kernel/metadata-plugin.zod.ts:950 (allowRuntimeCreate: false, allowEnvironmentOverlay: false) under the comment at :940-948; override classification packages/spec/src/kernel/customization-package.ts:361 (picklist: notRuntimeCreatable). The dev's P2 (403) and P3 (400, no such type) are these two rows answering.
      Re-check: git grep -n "later phase with its own admission" origin/main -- packages/spec/src prints two lines.
    4. The object-extension item exists as a stored type, and a value cannot ride on it. Row packages/spec/src/kernel/metadata-plugin.zod.ts:850 (allowRuntimeCreate: true, landed by feat(metadata-protocol,objectql): an object extension is an authorable item of a writable package, saved, published and exported through the existing doors (#28574) #28811). It is keyed by the object it extends; a shared list is not a property of one object. On a base field the closed display whitelist excludes option membership (packages/spec/src/data/field-customization.ts:74, ADR-0146 D10), which is the dev's P4 (422).
      Re-check: git grep -n "options. membership" origin/main -- packages/spec/src/data/field-customization.ts 'docs/adr/0146-*' prints two lines.
    5. The package PATCH door reads four keys and drops the rest without a word. packages/runtime/src/domains/packages.ts:4444-4448. The dev's P1 (400 alone) and P1b (200, key gone) are this branch.
      Re-check: git grep -n "nothing to update" origin/main -- packages/runtime/src/domains/packages.ts.
    6. Nobody writes the key today, in code either. The showcase's only mention is a coverage row marked waived (examples/app-showcase/src/coverage.ts:255-260), not an entry. HotCRM at bde4be7c has none. The remaining hits are tests, the CLI and lint. The dev's report says "today only code packages write the key (examples/app-showcase coverage.ts)"; that file declares no entry.
      Re-check: git grep -n "picklistExtensions" origin/main -- examples (one line, the waiver) and, in the hotcrm checkout, grep -rn picklistExtensions src (nothing).
    7. Reach in the first consumer. HotCRM ships 5 shared lists (src/sales/picklists/*.picklist.ts: lead source, industry, salutation, payment terms, related-to type) bound by 14 fields; it declares 110 select-family fields in all. The other 96 carry their own options, where ADR-0146 D10 already refuses a customer's value.
      Re-check, in the hotcrm checkout: ls src/*/picklists/*.picklist.ts | wc -l; grep -rn "picklist: *'" --include=*.ts src | wc -l; grep -rnE "Field\.(select|multiselect|radio|checkboxes)\(" --include=*.ts src | wc -l.
    8. The earlier rulings. spec: a shared picklist (global value set) metadata kind — option lists reused across objects and packages are TypeScript constants today #18164 comments 5715762696 and 5904864936; platform-checklist + NORTH-STAR: retire records-forms.picklist-org-append and the "customers append values per organization" promise — the per-organization picklist append is ruled out #22869; PR docs(checklist, north-star): retire records-forms.picklist-org-append — the per-organization picklist append is ruled out #22982 (+20/−7, 3 files, merged 2026-10-12); docs/qa/platform-checklist/areas/records-forms.json:6336.
      Re-check: git grep -n "append is not moved to environment level" origin/main -- docs/qa/platform-checklist/areas/records-forms.json.
    9. A customer's value and the vendor's next version can collide, and the vendor's list is the one refused. packages/objectql/src/registry-picklists.ts:405-420: "a picklist registered AFTER an extension already added one of its values is refused the same way". With stored customer values this means a vendor release that adds trade_show after the customer did is refused at registration until the customer removes theirs. Read, not run. The claim on Studio: a customer cannot add a picklist value or a validation rule to an installed package, though object and picklist extensions support both #39471 scoped the filer's suffix question out ("no new rule without a named need"); this is the named need.
      Re-check: git show origin/main:packages/objectql/src/registry-picklists.ts | sed -n '405,420p'.
    10. The dev's P5 does not show a picklist-specific gap. The probe installs through the protocol's manifest door, whose schema admits no metadata collection at all, objectExtensions included. The route an exported pair travels is the artifact one (export, then install-local, then registerApp), which already reads the key (premise 2). So "the manifest schema must admit the key" is not a premise of A. Whether an exported pair with such an entry re-installs was not run by the dev or here.
      Re-check: git grep -c "objectExtensions\|picklistExtensions" origin/main -- packages/spec/src/kernel/manifest.zod.ts prints nothing.
    11. The two notices send the customer to a package they cannot edit. ui/packages/i18n/src/namespaces/studio/zh.ts:334 (field inspector) and :2997, :3006 (list page); the 扩展 section has no action (ui/packages/app-shell/src/views/metadata-admin/previews/PicklistPreview.tsx:78-111).
      Re-check: git grep -n "要增加取值\|picklistPreview.readOnly\|picklistPreview.noExtensions" origin/main -- ui/packages/i18n/src/namespaces/studio/zh.ts.

    Where this reading differs from the seat's and the dev's

    • Prior rulings exist (premise 8). The card and the report cite none.
    • ADR-0146 D2 does not order A. D2 names three kinds of customization and closes the type list by a constant, in which picklist is excluded (premise 3). D2 fixes the form an admitted customization takes, an item of the pair and never a manifest list; it does not admit this one.
    • Not declared-but-unenforced (premises 1 to 3). The "implementation gap" reading does not apply; this is new surface.
    • Zero writers, not "code packages only" (premise 6).
    • P5 is not evidence for a manifest-schema change (premise 10).
    • The value-collision question cannot stay out of scope under A (premise 9): record values are stored, so the spelling rule cannot be added after the first customer value exists.
    • Reach is 5 lists and 14 of 110 dropdown fields in HotCRM (premise 7), not every dropdown.

    1. The problem in one sentence

    A customer who wants one more value in a vendor's shared dropdown list is told to add it in a package they cannot edit, and nothing they can reach stores it.

    2. Options, real cost, effort

    What is built What the customer sees Effort (lane · PRs · measured precedent)
    A A stored item of the pair A new item type, the twin of the object-extension item: one item per package per target list, body the declared extension shape unchanged; draft, publish, history, rollback, delete; registered on publish and at boot, withdrawn on delete and uninstall; exported as the declared collection. Studio's 扩展 section gets 「添加选项」 and both notices point at it. ADR-0146 note, two spec docblocks, North Star line and one checklist item. The value-spelling rule (section 6) is ruled with it On 线索来源 the customer adds 展会-上海工博会; it shows on the lead, contact and opportunity forms at once, is reviewed at publish like an added field, travels with the pair's export and survives a vendor reinstall. It works on HotCRM's 5 shared lists; the other dropdowns stay the vendor's spec + server + ui + governed · 4 to 5 PRs · server item: #28811 (+1082/−34, 22 files), with the two follow-ups the object-extension item needed, #28853 (+253/−2) and #29948 (+375/−73); Studio: #28860 (+1233/−79, 9 files); governed docs: #22982 (+20/−7), reversed. About 2,900 lines by that precedent. L, owes L2
    B Widen the package PATCH The PATCH door admits the key onto the pair's package row; boot re-registers it from that row; export emits it Same dropdown result. No draft and no publish review, so a wrong value is live at once; no history, no rollback, no "restore" server + ui · 2 to 3 PRs · nearest: #24703 (+645/−17, 7 files, PATCH admits dependencies); a metadata collection carried on the package row: no precedent. M
    C Not offered now; honest notices No door. Both notices rewritten to say what the customer can do: ask the vendor for the value, or add a select field of their own in the pair. The capability is closed as not planned with the reason recorded Still cannot add a value. No longer sent to a package they cannot edit. A second "lead source" field of their own is invisible to the vendor's reports and flows ui · 1 PR · nearest: #36759 (+464/−153, 21 files, a wider Studio copy pass; this is two strings per locale). S

    Considered and not offered: let the pair's object-extension item add option values to a base field. It reverses ADR-0146 D10 and D6 (ruled as Q7), works per object so one list would have to be extended three times in HotCRM and the three would drift, and has no precedent for option membership (the patch mechanics are #28728, +1335/−33).

    A is about 2,900 lines by precedent and C is one small PR: far more than three times apart.

    3. What each option means in business terms

    • A: the vendor's dropdown gets a customer drawer. This is Salesforce letting a subscriber add values to a managed package's picklist or global value set, and Dataverse letting a customer add options to a managed global choice under the customer's own prefix.
    • B: writing the value on the package's cover sheet in pen. It works until someone asks who changed it, when, and how to undo it.
    • C: a sign on the locked door that says where the open door is. Honest, and the room stays closed; the customer's workaround is a second, parallel field.

    4. The four axes, from the business side

    Long-term soundness. End state in two years: a CRM buyer adds a lead source in the designer in a minute, the value lives in their own customization package beside their added fields, is reviewed and versioned like them, moves between their environments with that package, and a vendor upgrade neither removes it nor is blocked by it. Salesforce and Dataverse both model it that way, and Dataverse's publisher prefix on customer option values is the answer to premise 9. A is that shape, and it removes a special case: after it, both extension collections have a stored twin and the pair written in Studio can hold what the pair written in code can. C is not an end state; it leaves "code can, Studio cannot" standing inside the rule that says they are one mechanism. B makes a second place where a customization lives, outside every item door, which D2 ruled against for override declarations. A's cost on this axis is one more type, permanently, with every row a type owes.

    Business pull. One measured hit: the new-company walkthrough of 2026-12-04 (filed by the seat signed repo:objectstack@hotlong), on the first base ADR-0146 names as its consumer. No named deployment, no HotCRM card asking for it, and no writer of the key anywhere, even in code (premise 6). The September record set the bar at "a measured customer requirement"; a walkthrough of the reference app is weaker than that and is the same kind of evidence ADR-0146 itself accepted as pull. In the maintainer's own words on #18164 the need is 「这是非常具体的业务需求,主流平台应该都支持吧,这个应该要开发」; the park was about sequencing. If built, it serves 14 of HotCRM's 110 dropdown fields (premise 7).

    Keeping AI authors from mistakes. Today an agent asked to "add a lead source" over REST or MCP has no correct door, and one wrong door answers 200 and stores nothing (premise 5): silent. That is a defect under every option and needs its own card. A gives the agent one closed, strict item shape; an unknown list, a repeated value and a misspelt key are each refused at publish, loudly. B keeps a live mutation with no draft and no review, where a wrong value reaches users before anyone sees it. C leaves every door refusing loudly once the silent one is fixed, and the agent's fallback is a parallel field, which is quiet data drift rather than an error.

    Not spreading at startup stage. C declares nothing and is the tightest. A is a permanent type for one walkthrough and reopens a capability dropped two months ago. B is the smaller diff and the larger long-term cost.

    os-decision-facets

    • ① 项目长远合理性:A is the end state mainstream platforms model and removes the "code can, Studio cannot" special case inside ADR-0146 D2, at the price of one permanent type; C adds no contract and is a holding position; B adds a customization home outside the item doors.
    • ② 实际业务拉动:one walkthrough on the reference CRM; zero writers of the key in any app, zero named deployments; reach if built is 5 lists, 14 of 110 dropdown fields in HotCRM.
    • ③ 防 AI 犯错:A is a closed item shape refused loudly at publish; B is a live write with no draft; C refuses everywhere once the PATCH door's silent 200 is fixed, which is owed under every option.
    • ④ 创业阶段不扩散:C declares nothing; A is a permanent type and reopens what 2026-10-11 dropped; B is small now and a permanent side door.

    Prior rulings read: picklist,picklistextensions,picklist_extension,objectextensions,custom → 21 hits; ADR-0146 D2, ADR-0146 D10, ADR-0146 D6, ADR-0048 P1.4 (a picklist extension holds no name), ADR-0150 D3 (extension target), ADR-0084 (picklist placed in 高级 by name); thread: none; repo: objectstack-ai/objectstack

    Read outside the three corpora, and decisive here: #18164 (records 5715762696, 5904864936), #22869 with PR #22982, the retired ledger row records-forms.picklist-org-append. The other hits the search named (ADR-0007 §9, ADR-0029 D3, ADR-0063 §2, ADR-0068 D3, ADR-0069 D1 to D4) were opened and do not bear on option lists.

    Self-check: on ① alone the pick is A; do ②③④ flip it: no (④ reads C, and ② is one walkthrough with no deployment behind it; both are stated above and move timing, not the letter).

    5. Recommendation and confidence gaps

    Recommend A, as a deliberate reopening that the maintainer states in the ruling: the 2026-10-11 ruling dropped the per-organization axis, and the customer's own package, which did not exist then, may carry the extension the September ruling already admitted for packages. The long-term reading leads: this is what a customer expects of a CRM platform, the runtime half is built and live, and the stored twin follows a pattern the object-extension item has already proven end to end.

    • Not B: it puts a customization in the package row, where it has no draft, review, history or revert, and it is the form D2 ruled out for declarations.
    • Not C: it is the honest reading of the tree as it stands and costs almost nothing, but it is not where the product ends up, and its workaround (a second field) produces data the vendor's reports never see.

    Effort note required by the template: A and C differ by far more than 3× in effort. Their ① readings are not close (C is a holding position, not an end state), so the recommendation rests on ①.

    Confidence gaps. The first can change the answer; the rest cannot.

    1. Whether 2026-10-11 covers the customer's package is the maintainer's to say. The verbatim names the per-organization axis; the filing seat's gloss ("not moved to environment level either") is wider and was merged. If the maintainer reads the ruling as covering the pair too, the answer is C, and it is execution of that ruling, not a new decision.
    2. Pull is one walkthrough. No customer deployment was measured, and who ran the walkthrough, or whether its "Expected" section carries the maintainer's own wish, cannot be read from the card.
    3. Premises 2, 9 and 10 are read from code, not run: a code-written pair declaring the extension, the vendor-upgrade collision, and an exported pair re-installing. The first server PR of A must measure all three before any UI.
    4. The dev's P1 to P4 were measured at e43597b1 and not re-run; the code reading at eb947b665 agrees with each.
    5. The Salesforce and Dataverse readings are from reference knowledge, not fetched in this session.
    6. A serves shared lists only. A customer who wants a value on one of the other 96 HotCRM dropdowns meets ADR-0146 D10's refusal, which no option on this card changes; the notices under A must say which kind of dropdown the customer is looking at.

    6. After the ruling

    Rule the direction and the one rider; the rest follows.

    • If A. Ruled in the same breath, so no second card:
      • Scope sentence: the ruling says 2026-10-11 stands for the per-organization axis and does not cover the pair, so later seats do not read it as overturned in general.
      • Rider, value spelling (premise 9): recommended, a value a customer's item adds ends in __c, refused otherwise at the item's doors, as ADR-0146 D10 rules for extension fields (maintainer, verbatim: 「扩展字段用 __c 后缀,只有 .custom 包能用。」) and as Dataverse does with its prefix. The label stays free text, so users never see the suffix. The alternative is no rule, and a vendor release that later ships the same value is refused for that customer until they delete theirs.
      • Names and shape, each with its precedent: type picklist_extension (twin of object_extension); one item per package per target list, stored under the target's name; body the declared extension shape, unchanged; classified excluded in the override table as its twin is; written by the pair or by any writable package whose dependency closure holds the list, as its twin's row says.
      • Order: (1) the ADR-0146 note (D2's type paragraph and a sibling sentence to D10: a shared list is extended, never replaced) with the two spec docblocks of premise 3, the maintainer's hand; (2) spec and server in one PR, Clause-②: yes, L2, opening with the three measurements of gap 3; (3) Studio 「添加选项」 and both notices; (4) the North Star line and a checklist item, governed. The card leaves the decision box for the queue of the zone that holds Studio: a customer cannot add a picklist value or a validation rule to an installed package, though object and picklist extensions support both #39471.
    • If C. One UI PR rewrites the list-page notice; the field-inspector notice rides the lane that holds that file (Studio: renaming an installed package's field does nothing in a translated language: the package's translation keeps winning #39470). The capability is closed as not planned with this analysis linked, since nothing mechanical can wake a hold on "a customer asks"; reopening is free. The spec's "later phase" wording stays as written.
    • If B. The PATCH door must also refuse every key it does not read, boot must re-register the entry from the package row, and export must emit it; the rider on value spelling applies as under A.
    • Under every option the PATCH door's silent 200 (premise 5) gets a bug card and goes to the queue without a ruling: a declaration dropped in silence joins the existing refusal set. No such card was found (gh api 'search/issues?q=repo:objectstack-ai/objectstack+is:issue+PATCH+packages+unknown+key+in:title'). Studio: a customer cannot add a picklist value or a validation rule to an installed package, though object and picklist extensions support both #39471 keeps its validation-rule half.

    Related

  3. added
    needs-user-decision
    on Dec 4, 2026
  4. objectstack-fleet commented on Dec 4, 2026

    @objectstack-fleet
    ContributorAuthor

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

    Ruled: 2026-12-04T08:29Z · A + value-spelling rider: a customer adds values to an installed package's picklist through a stored item of the customization pair (type picklist_extension, twin of object_extension), with draft, publish, history and export; a value such an item adds must end in __c, refused otherwise at the item's doors (the label stays free text).

  5. added
    pm:queue
    and removed
    needs-user-decision
    on Dec 4, 2026
  6. objectstack-fleet commented on Dec 4, 2026

    @objectstack-fleet
    ContributorAuthor

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

    2026-12-04T08:33Z · zone ot-build · card thread (mode:thread) for step (2) of ruling 7406020670; step (3) (Studio) follows in the same card after it; steps (1) and (4) are governed text, filed by the seat as their own cards. The thread's session and branch are added by a Claim amendment.

    Claim: PM loop round 1
    Session: session_01L9qibvqcHrQpENbRP7eLfU
    Account: os-tesla
    Branch: claude/issue-39536-picklist-extension-item
    Worktree: objectstack-issue-39536
    Domain: domain:server
    Seat: repo:objectstack@os-tesla
    Area: ot-build
    File surface: packages/spec/src/kernel/metadata-plugin.zod.ts (reason: the picklist_extension type row, classified excluded in the override table), packages/spec/src/data/picklist.zod.ts (reason: the __c value rule on the item body, if the body schema owns it), packages/metadata-protocol/src/ (reason: a NEW protocol-picklist-extension-item.ts twin of protocol-object-extension-item.ts, plus the publish/boot/delete/export registration sites the thread names file by file in its first report), packages/objectql/src/registry-picklists.ts (reason: withdrawal on delete and uninstall), packages/spec/src/migrations/entries/semantic/ (reason: one NEW ADR-0087 entry file if the item door is a registered widening; the coverage-test row is serial behind #39099, Notify: serial 7404756308); stop on breach and explain
    Container & model: L (new stored metadata type, card thread), mode:thread, model: default (dispatch-gates --repo objectstack-ai/objectstack --tier at e43597b1 on the surface: "no path-derived mandate … floor sonnet · default opus · ceiling fable"), effort: high
    Clause-②: yes
    Metadata-protocol: added
    Responsibility: n/a — not a defect card
    Ruling-ref: 7406020670 — verbatim taps 「做成定制包里的正式条目」 (2026-12-04T08:21:42Z) and 「强制带专用后缀」 (2026-12-04T08:29:23Z); analysis 7404705104 §6 order: "(2) spec and server in one PR, Clause-②: yes, L2, opening with the three measurements of gap 3"
    Thread-read: 7406020670
    Premise: inbox → the thread opens with the three gap-3 measurements of 7404705104 (a code-written pair declaring the extension; the vendor-upgrade collision at registry-picklists.ts; an exported pair carrying the entry re-installing) before any code
    Pre-claim lane: domain:server (file ownership only); spec rows ride per domains/spec.md 留道
    Pre-claim deps: ruled order puts step (1), the ADR-0146 note and two spec docblocks (maintainer's hand), before step (2): the PR stays draft until step (1)'s PR merges; measurements and code may proceed meanwhile
    Prior rulings read: 5715762696, 5904864936 (#18164), #22869 「按组织追加 picklist 值,不考虑」 (reopened for the pair's stored item only by 7406020670), ADR-0146 D2, D6, D10; analysis 7404705104
    Serial constraints cleared: check-handover.mjs --inflight meets #39482 by its packages/objectql/src/ width (its PR #39538 touches none of these files) and #39393's stale packages/spec/** width (replaced by amendment 7404137477); no true overlap. Step (1)'s spec docblock edits touch metadata-plugin.zod.ts and picklist.zod.ts: serial, step (1) first.

  7. added
    pm:dispatched
    and removed
    pm:queue
    on Dec 4, 2026
  8. objectstack-fleet commented on Dec 4, 2026

    @objectstack-fleet
    ContributorAuthor

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

    2026-12-04T08:36Z · Filed under ruling 7406020670: step (1) ADR-0146 note + spec docblocks #39574 (governed, the maintainer's hand); step (4) North Star line + checklist item #39575 (Blocked-by #39536); PATCH /packages silent 200 bug #39576. Step (2) runs on this card (claim 7406111530); step (3) Studio stays with zone ot-build after (2).

  9. 8 remaining items

  10. added a commit that references this issue on Dec 4, 2026
  11. objectstack-fleet commented on Dec 4, 2026

    @objectstack-fleet
    ContributorAuthor

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

    {
      "issue": 39536,
      "status": "done",
      "branch": "claude/project-thread-x8vem3",
      "pr": 39668,
      "session": "session_01L9qibxE6RdcamcqFHHa7PC",
      "premise_still_valid": true,
      "summary": "This covers #39536 step 2, with #39576 folded in; the head is ff21eef8 on origin/claude/project-thread-x8vem3, with main merged twice (the second merge includes #39636/#39574 at 6e07cd8f). Step 2 adds the stored picklist_extension metadata type, the twin of object_extension: spec registry row, OVERRIDE_TYPE_CLASSIFICATION excluded, door gate in the new protocol-picklist-extension-item.ts (save/publish/restore refusals VALIDATION_ERROR/400; any added value without __c is refused at options.I.value), register/replace/withdraw through one SchemaRegistry door storedPicklistExtension, export as picklistExtensions, and the install-local pair planner maps them back (gap-3 reading 3 corrected premise 10: re-install goes through planCustomizationPairInstall, not registerApp; premises 2 and 9 held). The refusal text and docblock now match the merged ADR-0146 D10 text: the next version may ship trade_show beside trade_show__c, and a list's own values and code picklistExtensions are not judged. #39576: premise verified (the door reads the manifest wrapper plus name/description/version/dependencies). PATCH /api/v1/packages/ID now refuses any other body key with 400 VALIDATION_ERROR and writes nothing; the helper is in the new package-patch-body-keys.ts. The test was red on main (200, {success:true,data:{}}) and is green after the fix. One gap is open: ADR-0084's type-to-group table has no picklist_extension row, so 3 cases of ui studioMenuPlacement.test.ts stay red until the maintainer adds the row. Adding it locally turns all 21 cases green; the row is in the PR body's Acceptance notes. Owed and not requested: L2 at CONTRACT_REVIEW_TIER for step 2, plus one CONTRACT_REVIEW_TIER review for the #39576 narrowing. Served tier: opus (claude-opus-5-5); effort as the previous session read it: medium, not the order's high. The worktree /home/user/objectstack-issue-39536 is left in place for the card thread; it is clean and every commit is pushed.",
      "tests": "At ff21eef8: typecheck of spec, objectql, metadata-protocol, runtime, cloud-connection and platform-objects: VERDICT command-exit 0. Targeted runs, all green: spec src/kernel src/migrations src/meta-spelling src/data, 268 files, 8777 passed; objectql src/registry src/package-scoped-exact-qualifier, 64 files, 1681 passed; metadata-protocol picklist/rename/reference-sites/packaged-base/object-extension, 6 files, 133 passed; cloud-connection src/marketplace-install-local, 69 files, 829 passed; platform-objects src/apps/translations, 30 files, 694 passed; runtime picklist item + PATCH + object-extension + src/package-, 23 files, 240 passed. ui at ff21eef8: placement + summaryPlural + zh-hant-generated + all-locales-key-parity, 3 failed and 86 passed; the 3 failures are the ADR-0084 table cases (expected 33 to be 34; picklist_extension: ADR-0084 row expected undefined to be advanced; group data order). Probe with the ADR row added locally and reverted: 21/21 passed. At dadcac4f (before the merges): metadata-protocol full, 388 files passed and 9 skipped, Tests 24026 passed and 45 skipped; objectql full, 648 files, 14707 passed; runtime local project complete in three runs, 284+135+248 files, 6562+2618+3580 passed; ui tests reading the type registry, 28 files plus the i18n package, all green except the 3 ADR-0084 cases. #39576 red on main: 3 failed, 1 passed, 'expected { status: 200, code: undefined } to deeply equal { status: 400, ... }', body {\"success\":true,\"data\":{}}; green: 17/17. Ablations, each through the built dist with a restore proved: the __c rule reverted gives the rider case 1 failed, restored green; the rename copyName fix reverted gives 2 failed, restored green. spec full suite NOT MEASURED at this head: it timed out the 585s foreground window (EXIT 124); the earlier full run was 932 files and 29357 passed, before the semantic entry; CI Test Core runs it.",
      "gates": "dispatch-gates --repo objectstack-ai/objectstack --commands derived 133 families. 105 ran at f2871f70 and 28 at dadcac4f (dadcac4f changed only scripts/check-route-envelope.mjs and one runtime test). Every one exited 0 except two NOT-MEASURED: check-plugin-teardown-shape --self-test (exit 3, selfTest() returned without a verdict on this shallow checkout) and check:dual-build-cjs-loads (exit 3, needs the full workspace build). --ran reconciliation: '133 derived famil(ies) accounted for, 131 run, 2 NOT-MEASURED', exit 0. Two gates went red and were fixed in dadcac4f: check:route-envelope (new domain module undeclared; declared { handBuilt: 0 } in DISPATCHER_DOMAINS) and check:test-source-alias (module-top import '@objectstack/metadata' in the PATCH test). After the two main merges, at ff21eef8: spec regen chain (gen:meta-url-spelling, gen:schema, gen:docs) left no diff, and the ratchet/contract subset re-ran with all 17 exit 0: adr-0087 --base and --self-test, changeset-no-major, empty-changeset x2, spec check:api-surface, check:authorable-surface, check:generated, check:changeset-gate-self-tests, check:facade-delegation-only, check:i18n, check:i18n-stale-fill, check:nul-bytes, check:platform-checklist, check:ratchet-remedy-authority, check:route-envelope, check:test-source-alias. The rest of the union is NOT re-run at ff21eef8 (the merges brought only main's commits); CI runs it. Outside the derivation: check-nul-bytes exit 0; check-platform-checklist --changed-from origin/main 'OK — 68 anchor(s) judged, 0 lost'; check:dev-prereqs exit 1, a NOT-MEASURED prerequisite (32 of 111 workspace packages are unbuilt; local machine state only). CI check-runs: none yet, because the PR is not opened.",
      "mcp_calls": "0",
      "api_writes": "0 — no REST writes. Reads only (gh api GET): PR 39636 files, claim comments 7407364481 and 7407349049, issue/PR state for 39099/39574/39636. Pushes: git push origin HEAD:claude/project-thread-x8vem3, fast-forward only, never forced; heads 6aefd3fd, f2871f70, dadcac4f, eeba9e59, ff21eef8.",
      "classifier_refusals": [],
      "open_questions": [
        {
          "question": "ADR-0084's type-to-group table has no row for picklist_extension, so 3 ui placement cases are red. This PR cannot edit docs/adr/**. Who writes the row, and when?",
          "options": [
            "A: the maintainer adds the row as written in the PR body (数据 Data, order 8 after seed, 高级, the item-6 note) in a governed docs-only PR that lands before or with this one",
            "B: the seat authorizes this PR to carry the one ADR-0084 row, under the same item-6 precedent (the change that registered knowledge_source wrote its own row)"
          ],
          "recommendation": "B. Item 6 records the precedent that the registering change writes the row, and the table only records a placement the rule already decides (高级, last in group), so one PR keeps the code and the record from drifting. Choose A if docs/adr must stay maintainer-hand only."
        },
        {
          "question": "The PR-level declaration lines are copied from claim amendment 7407364481 (Clause-②: yes, Metadata-protocol: added). The #39576 changeset carries Clause-②: no (narrowing) / Metadata-protocol: narrowed. AGENTS.md ranks 'several kinds ⇒ narrowed over semantic over added'. Should the PR body read narrowed, and should the PR get needs:dogfood-battery for the (narrowing) arm?",
          "options": [
            "A: the seat amends the claim to Metadata-protocol: narrowed and hangs needs:dogfood-battery",
            "B: keep the claim's lines; the narrowing is declared only in its own changeset"
          ],
          "recommendation": "A, because AGENTS.md's ordering rule is explicit and the dogfood rule keys on the (narrowing) arm."
        }
      ],
      "security_findings": "none",
      "out_of_scope_findings": [
        "carrier: none · noted in Acceptance notes, not filed: the PATCH /packages door ignores a non-string name. Read from source, not reproduced through the HTTP door, so no reach is measured. Dedupe words: PATCH packages name non-string ignored",
        "carrier: none · noted, not filed: a disabled package's code picklistExtensions values are not withheld from the served list (pre-existing, observation only)",
        "carrier: none · noted, not filed: the ui zh-Hant generator writes 共享選項集擴充 while the platform-objects zh-Hant label reads 共用選項集擴充 (wording drift, polish)",
        "carrier: maintainer (ADR-0084) · the missing picklist_extension row in ADR-0084's type-to-group table, see open_questions[0]"
      ],
      "deviations": [
        "Scope widened beyond the claimed surface, each forced by a gate or a measured defect and named here for a claim amendment: metadata-protocol package-namespace-rename.ts plus its 38709 test, reference-sites.ts, protocol-packaged-base-refusal.ts; objectql package-scoped-exact-qualifier.test.ts; spec semantic entry 19.package-patch-unread-body-key-refused.ts and its coverage-test row (#39099 has landed, so the row is no longer serial); platform-objects metadata-forms translations (10 locales) and two translation ledger tests; scripts/check-route-envelope.mjs (one DISPATCHER_DOMAINS row, as the gate asked); ui/packages/app-shell DraftChangesPanel.tsx, studioMenuPlacement.ts and its test, and ui/packages/i18n locales (11 files). The ui rows were required by ui registry-derived tests; the coordinator directed adding them.",
        "Translation ledger count pins were deleted and replaced by derived equalities, citing AGENTS.md 'Volatile counts are deleted, not synced', instead of bumping the counts as earlier PRs did.",
        "The PR body opens with the attribution lines and the declaration lines, then 维护者速读, then the gap-3 readings as the first section, so the declaration-line rules hold.",
        "Main was merged twice (eeba9e59: #39099 landed; ff21eef8: #39636 landed). The full suites and the full gate union were read before the merges; at ff21eef8 only the targeted suites and the 17-gate ratchet subset re-ran."
      ],
      "files_changed": "59 files vs the origin/main merge base, 1300 insertions and 298 deletions: .changeset x2; cloud-connection x2; metadata-protocol x12; objectql x4; platform-objects x13; runtime x4; spec x7; scripts/check-route-envelope.mjs; ui x14",
      "reviews_owed": "L2 at CONTRACT_REVIEW_TIER for #39536 step 2 (new metadata type, Clause-② yes); one CONTRACT_REVIEW_TIER review for the #39576 narrowing. Named, not requested.",
      "memory": "No memory facts were used."
    }
  12. objectstack-fleet commented on Dec 4, 2026

    @objectstack-fleet
    ContributorAuthor

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

    2026-12-04T12:28Z · zone ot-build · Claim amendment of 7407364481 (PR #39668, head ff21eef; report 7411443517): two answers to the thread's open questions; everything else unchanged

    • Metadata-protocol: narrowed for the whole PR. AGENTS.md ranks "several ⇒ narrowed over semantic over added", and the folded PATCH /packages answers 200 and silently drops an unread key such as picklistExtensions #39576 half refuses a PATCH body key. Clause-②: yes (narrowing). The PR body line and both changeset bodies carry the same pair. A narrowing is breaking, so the PR takes needs:dogfood-battery, and the landing door reads that run on the final head. Because it is a narrowing, the PR goes through the handoff with ③ (review request) after ACCEPT and a same-head PASS at CONTRACT_REVIEW_TIER.
    • File surface widened: docs/adr/0084-*.md adds one picklist_extension row to the type-to-group table. Without it, 3 cases in ui/packages/app-shell/src/views/studio-design/studioMenuPlacement.test.ts are red. With it, all 21 pass (per the report). That puts the PR in Tier H, and the handoff is owed anyway because of the narrowing, so this adds no extra step. The row only records a type the ruling 7406020670 created ("做成定制包里的正式条目"). No rule text changes (Rule-change: none).
    • Also widened, on record: ui/packages/app-shell/src/views/studio-design/studioMenuPlacement.ts (+ its test) and ui/packages/app-shell/src/preview/DraftChangesPanel.tsx (Studio row for the new type), and the ui/packages/i18n locale labels. scripts/check-route-envelope.mjs is outside the claimed surface: the thread explains it in its next report, and L1 reads it as a breach unless the report shows the route-envelope gate needs it for the new PATCH refusal.
    • Reviews owed: L1-a, plus one L2 at CONTRACT_REVIEW_TIER. That L2 covers step 2 and the PATCH /packages answers 200 and silently drops an unread key such as picklistExtensions #39576 narrowing together; if the reviewer prefers, it can post two records on the same head.
  13. added 3 commits that reference this issue on Dec 4, 2026
  14. objectstack-fleet commented on Dec 4, 2026

    @objectstack-fleet
    ContributorAuthor

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

    2026-12-04T13:43Z · zone ot-build · Claim amendment of 7411489087 (PR #39668; L2 PASS 7413270616 at 4142335): records the out-of-surface files and the zone's split of the L2 should-fixes; everything else unchanged

    • File surface widened on record (each named by the L2): examples/app-showcase/src/coverage.ts (one waived picklist_extension KIND_COVERAGE row, the Test Core red at 1448448), packages/platform-objects/src/apps/translations/*.metadata-forms.generated.ts and their two echo-decision ledgers (the new type's labels; now a patch line in the step-2 changeset), packages/objectql/src/package-scoped-exact-qualifier.test.ts, and the registered semantic entry 19.package-patch-unread-body-key-refused.ts with its coverage rows.
    • S1 (same-named lists in two installed packages: the gate admits an item the registry then refuses or leaves unserved) is fixed in this PR, with the two-holder pin. A silent success on a new door does not ship.
    • S2 (picklist_extension is not package-slotted; a two-writer rollback can cross rows) goes to a family card covering this type and its twin object_extension item, which has the same shape. The seat files it.
    • Nits folded into the same push: the BREAKING banner on both changesets (the narrowing arm is breaking), the ADR-0084 item-6 note and row counts, and the filePatterns docblock. The showcase waiver's closed link (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) is left as it stands.
    • Further cards for the seat to file: the PATCH door's non-string name, and picklistExtensions of a disabled package.
    • After the push: a delta L2 on the new head, and the L1-a ACCEPT on that same head.
  15. objectstack-fleet commented on Dec 4, 2026

    @objectstack-fleet
    ContributorAuthor

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

    2026-12-04T13:44Z · zone ot-build · Claim amendment of 7413299417 (L1-a REWORK 7413307790): S2 is fixed in this PR as well. The queue guard does not pass a PASS record with a should-fix still open. Everything else stays unchanged.

  16. added a commit that references this issue on Dec 4, 2026
  17. objectstack-fleet commented on Dec 4, 2026

    @objectstack-fleet
    ContributorAuthor

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

    2026-12-04T23:32Z · zone ot-build · Progress: step 2 (ruled term 2: spec and server) landed as PR #39668, merged 259cc46e84c245591bc066aa387f5de19aaceaf8 after maintainer approval. It also closes #39576. Step 1 (ADR-0146 note) landed as #39636. Still open: ruled term (3), the Studio 「添加选项」 button and both notices, and term (4), the North Star line and checklist item, which is governed. Follow-ups: #39693 (skills), #39698–#39702. The zone is winding down on the maintainer's 14:11Z word, so the seat decides how to carry or release terms (3) and (4).

  18. objectstack-fleet commented on Dec 4, 2026

    @objectstack-fleet
    ContributorAuthor

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

    2026-12-04T23:33Z · zone ot-build · Release: the zone is winding down on the maintainer's word of 2026-12-04 at 14:11Z: 「当前任务处理完,合并后就下班」. The seat now takes p1 only and will not carry this p2 card, so it goes back to pm:queue and the assignee is cleared.

    Release: #39536 back to pm:queue. Steps 1 and 2 are done: #39636, and PR #39668 merged as 259cc46e. Progress note: the comment just above this one.
    Resume-from: main@259cc46e84c245591bc066aa387f5de19aaceaf8. No branch carries unmerged work. Remaining, from ruling 7406020670: term (3), the Studio 「添加选项」 control and both notices; term (4), the North Star line and checklist item (governed, Tier H). Follow-ups already filed: #39693 and #39698–#39702.

  19. added
    pm:queue
    and removed
    pm:dispatched
    on Dec 4, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:buildenhancementpm:queuepriority:p2

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions