From 5d86f67229596197c0108f6d6b70c72eff386f73 Mon Sep 17 00:00:00 2001 From: Claude Date: Mon, 30 Nov 2026 13:14:44 +0000 Subject: [PATCH 1/2] docs(adr): five records gain dated notes where their text had fallen out of step with main (week of 2026-11-29) Seven append-only notes dated 2026-11-30, one per row of the weekly ADR revisions checklist whose code is on main. Every diff line is an addition; no decision text is rewritten and no decision changes. - ADR-0037: the build-progress stream frame is retired; TL;DR item 2 and the "What already exists" row are read with the note. - ADR-0084, the form row's note: the designer arrived with the card's first pull request; the change that wrote the row lists the type. - ADR-0084, the 2026-11-28 amendment, item (3): one landing for every door into a package's Studio is ruled, and every door opens the overview. - ADR-0085, the 2026-11-27 note: pinOverview is in the spec; fieldTabs is still refused. - ADR-0146 D10, the 2026-11-24 arrangement note: a .custom package that is not the object's pair is refused at the doors that can read the installed packages; elsewhere the fold's skip stays. - ADR-0150 D3, the 2026-11-26 note: the three _env reads of a name only disabled packages hold answer their own 404. - ADR-0150 D4: the status rows carry their slot's packageId, and the toggle door reads back the row of the slot it switched. Claude-Session: https://claude.ai/code/session_01WGufzhPdWmTd47Fi2bKYZS Co-authored-by: Claude --- docs/adr/0037-live-canvas-draft-preview.md | 2 ++ ...cation-builder-information-architecture.md | 4 ++++ ...semantic-roles-over-surface-hint-blocks.md | 18 +++++++++++++++ ...ditor-per-item-paired-customize-package.md | 22 +++++++++++++++++++ ...package-objects-keep-the-literal-prefix.md | 10 +++++++++ 5 files changed, 56 insertions(+) diff --git a/docs/adr/0037-live-canvas-draft-preview.md b/docs/adr/0037-live-canvas-draft-preview.md index e5cce53178f..9fcb9fd49ec 100644 --- a/docs/adr/0037-live-canvas-draft-preview.md +++ b/docs/adr/0037-live-canvas-draft-preview.md @@ -43,6 +43,8 @@ Everything hard about live preview already exists in the platform; it has simply | SPA usage of `preview=draft` | — | ❌ none (the gap) | | Draft **data** (seed rows before publish) | — | ❌ does not exist (Phase 3) | +> **Note (2026-11-30, [#37753](https://github.com/objectstack-ai/objectstack/issues/37753), carried by [#38438](https://github.com/objectstack-ai/objectstack/issues/38438); built by [#38398](https://github.com/objectstack-ai/objectstack/pull/38398)).** The build-progress stream frame is retired, so two passages no longer describe `main`: TL;DR item 2's "the streaming build tree (`data-build-progress` parts)", and the row of the table above that marks "`data-build-progress` stream parts" ✅ shipped. No decision changes. The frame's one reader, the build chat's progress panel, left with the build chat frontend ([#37720](https://github.com/objectstack-ai/objectstack/pull/37720)), and its producer, the cloud build loop, with objectstack-ai/cloud#5046. #38398 then removed the frame's declaration from `@objectstack/spec/ai` (the module `packages/spec/src/ai/build-progress.zod.ts`, its schemas, types and constants). The upgrade guidance is the ADR-0087 entry `ai-build-progress-frame-retired` (`packages/spec/src/migrations/entries/semantic/19.ai-build-progress-frame-retired.ts`): a host that still streams a progress part of its own passes any `data-` part name to `ctx.onProgress` and owns the payload it sends. Phase 2's first invalidation source, the `buildProgress.items` diffs, was the same signal as the chat held it, and no code under `ui/` holds it any more. The per-edit signal, each authoring tool's `drafted` envelope, is not this note's subject. Both passages are left as written; read them with this note. + ### Why now The 2026-06-10 reliability batch closed the failure modes a live canvas would have amplified: dangling dataset references auto-heal, seed data reliably lands on publish (loudly when it can't), the build streams artifact-level progress, and reloaded conversations render honestly. The canvas is now an additive surface over trustworthy primitives, not a magnifier for bugs. diff --git a/docs/adr/0084-application-builder-information-architecture.md b/docs/adr/0084-application-builder-information-architecture.md index f9cfd10691a..e7979f5f464 100644 --- a/docs/adr/0084-application-builder-information-architecture.md +++ b/docs/adr/0084-application-builder-information-architecture.md @@ -218,6 +218,8 @@ Every type the spec registers, enumerated at `origin/main` `151e8123` from `pack *(Rewritten 2026-11-29, card [#37087](https://github.com/objectstack-ai/objectstack/issues/37087), which carries out [Amendment (2026-11-26)](#amendment-2026-11-26-moves) for one row and decides nothing: `form`. The same change takes the type off the directory's hidden types and brings its designer, so Studio lists it and its row is written: 界面 UI, fifth, directly after `report` ([item 11](#amendment-2026-11-26-silent)), and its tier is 常用; `view` and `action`, the two types behind it, are each one place later. Read again at `origin/main` `3014176695`: the registry holds the same 35 entries, and the table now has a row for each — 35 rows, counting 数据 Data 8 · 界面 UI 7 · 自动化 Automation 2 · 平台 Platform 7 · 访问 Access 6 · AI 5. The four rows that amendment left to their changes are now each rewritten or written: `dataset`'s, `position`'s, `datasource`'s and `form`'s.)* +*(Amended 2026-11-30, card [#38438](https://github.com/objectstack-ai/objectstack/issues/38438), from the contract review of the change that wrote the note above ([comment 7258340131](https://github.com/objectstack-ai/objectstack/pull/38619#issuecomment-7258340131), N1), which decides nothing: that note's "The same change takes the type off the directory's hidden types and brings its designer" is true of card #37087 and loose for the change. The card landed in two pull requests. The first ([#38484](https://github.com/objectstack-ai/objectstack/pull/38484)) brought the designer (`ui/packages/app-shell/src/views/studio-design/publicForm/PublicFormsDesigner.tsx`). The second ([#38619](https://github.com/objectstack-ai/objectstack/pull/38619)), the change that wrote the row, lists the type: it takes `form` off the directory's hidden types (`ui/packages/app-shell/src/views/metadata-admin/directoryScope.ts#HIDDEN_DIRECTORY_TYPES`) and gives it its place in the menu (`ui/packages/app-shell/src/views/studio-design/studioMenuPlacement.ts#STUDIO_MENU_PLACEMENT`). The row, its order and its tier stand as that note gives them, and that note is left as written.)* + The rows are in the menu's order: by group, then by **Order**, which counts inside a group. **Tier** is 常用 Common or 高级 Advanced. The Chinese word beside a registered name is the one the ruling or its proposal uses for that type; a type neither names in Chinese has none. `field` carries no order and no tier because it draws no row (the second reading below). The table is the registry read at one commit. **The rule above is what binds**: a type added to the registry, or given another domain there, moves in the menu without this table being edited, and where the two disagree the registry is right. *(Amended 2026-11-25: that sentence is about the Group and `domain` columns. The Order and Tier columns are read from no registry — they are decided in this record, and a type the table has no row for is drawn in 高级 Advanced, at the end of its group: [Amendment (2026-11-25)](#amendment-2026-11-25).)* @@ -449,6 +451,8 @@ Two things about 概览 are not decided here, and neither is yet a question: on *(Amended 2026-11-28, card [#37958](https://github.com/objectstack-ai/objectstack/issues/37958), ruling record [comment 7218879913](https://github.com/objectstack-ai/objectstack/issues/37424#issuecomment-7218879913), the maintainer's 「全部按建议」 on the decision card for the full page's open questions: both are decided, and with them where ADR-0146 D3's line per package stands. **(1) Revert and the publish history**: on a read-only package with a pair they act on the pair, the same target as Pending and Publish. Revert is greyed only where nothing can be published (a read-only package with no pair) or the pair has nothing pending. **(2) Export** (option A): with a pair, 概览's Export downloads the pair, labelled as the base's customizations (「导出 HotCRM 的定制」); with no pair it downloads the package, as before. The cost is accepted: once a pair exists the base is not exported from the UI (it comes from the marketplace or from code). The ground: the uninstall refusal (`packages/objectql/src/registry.ts#PackageUninstallExtendedError`) and ADR-0146 D8 item 3 name the pair's export as the way to keep customizations. **(3) 概览's address** stays `/studio//overview`: a package page, not a metadata address, like the default sharing overview's `owd`. The bare `/studio/` and the Studio entry's return to the last package open 概览 too, so opening a package has one landing; both landed on the object list before. This ruling names those two doors only, and one landing for every door is not ruled: the command palette's (⌘K) package entries, an app's design-in-Studio entry (`ui/packages/app-shell/src/utils/appRoute.ts#appStudioDesignPath`), the "Open in Studio" of an app's empty menu, and Setup's doors, which go with the Setup slimming (decision 10; [#37401](https://github.com/objectstack-ai/objectstack/issues/37401)), still open the object list, and that question is put to the maintainer at the merge of this amendment's pull request ([#38318](https://github.com/objectstack-ai/objectstack/pull/38318)). **(4) The line per package**, ` 已定制 n 项 · 已停用 m 项` (ADR-0146 D3; option B), is not on 概览: it stands under the title of the 全部类型 All types page, which already showed the customized count and gains the switched-off count. The detail panel of Setup → Packages is left as it is and goes with the Setup slimming ([#37401](https://github.com/objectstack-ai/objectstack/issues/37401)). Three costs are accepted: the 全部类型 row sits last in the 高级 Advanced fold; "switched off m" has no list to filter to; and the separate re-order count has no home.)* +*(Amended 2026-11-30, card [#38392](https://github.com/objectstack-ai/objectstack/issues/38392), ruling record [comment 7247357556](https://github.com/objectstack-ai/objectstack/issues/37958#issuecomment-7247357556), the maintainer's 「OK」 to 「⌘K、应用里的「在 Studio 中设计」、空菜单和设置页这几个入口,现在打开的还是对象列表。要不要都改成先进概览页?」: one landing for every door is ruled, so item (3)'s "one landing for every door is not ruled" and its list of doors that "still open the object list" no longer describe `main`. Every door that opens a package's Studio lands on `/studio//overview`, not on the object list (`ui/packages/app-shell/src/views/studio-design/studioOverviewAddress.ts#studioPackageOverviewPath`): the command palette's (⌘K) package entries; an app's design-in-Studio entry (`ui/packages/app-shell/src/utils/appRoute.ts#appStudioDesignPath`, where `#appStudioRoutePath` also falls back for the bare app root, a `system` route and an interface list); the "Open in App Studio" of an app's empty menu; and the three doors of Setup → Packages, which are "Open in App Studio" on an authored package's detail panel, the landing after New Package, and "Customize in App Studio" in the customizations section of a read-only base's detail panel. The pair's bare address `/studio/.custom`, landed by [#38318](https://github.com/objectstack-ai/objectstack/pull/38318), lands on its base's 概览 and is covered by this ruling. `/studio//data` stays a working address for the object list (`ui/packages/app-shell/src/views/studio-design/studioAddress.ts#studioHomePath`). The review-changes deep link (`#studioChangesReviewPath`, `/studio//data?changes=review`) still builds that address: it opens the Changes drawer over the object list, and it is read as no door under this ruling, by a seat reading of 2026-11-29 recorded on the pull request that built this, not by a ruling. Built by [#38501](https://github.com/objectstack-ai/objectstack/pull/38501); the census of the doors is pinned in `ui/packages/app-shell/src/views/studio-design/studioDoorsOverview-38392.test.ts`. The amendment of 2026-11-28 is left as written; read its item (3) with this one.)* + ### Placements, and what moves to Setup {#amendment-2026-11-26-moves} Decision 12 draws the line: **Studio develops one package; Setup runs the organization and holds what is global** (maintainer: 「同意」). Five places are settled by it, by decision 6, and by the rulings of the same day on what the two had left open ([comment 7187264388](https://github.com/objectstack-ai/objectstack/issues/37451#issuecomment-7187264388)). A sixth is written for a type that is about to join the menu. diff --git a/docs/adr/0085-object-semantic-roles-over-surface-hint-blocks.md b/docs/adr/0085-object-semantic-roles-over-surface-hint-blocks.md index e41d65a4eaa..b39473fd7cc 100644 --- a/docs/adr/0085-object-semantic-roles-over-surface-hint-blocks.md +++ b/docs/adr/0085-object-semantic-roles-over-surface-hint-blocks.md @@ -171,6 +171,24 @@ Keys that merely hide/re-arrange correct information (`hideRelatedTab`, `showRef > object key that only hides or only re-arranges still needs its own ruling, above all per-page > show/hide switches. +> **Note (2026-11-30, [#37792](https://github.com/objectstack-ai/objectstack/issues/37792), carried by +> [#38438](https://github.com/objectstack-ai/objectstack/issues/38438)).** The 2026-11-27 note says +> "Neither key is in the spec yet: `ObjectSchema` is strict and refuses both until #37792 lands +> `pinOverview` and #37802 lands `fieldTabs`." The first half is answered, and no decision changes. +> `pinOverview` is in the spec: `ObjectSchema.pinOverview` is an optional boolean +> (`packages/spec/src/data/object.zod.ts#pinOverview`). Absent or `true`, the pin stays derived, as before. +> `false`: the desktop full standard record page never pins, at any width; the overview is its first +> tab, open by default, and its fields lay out by width in up to three columns, also when the +> overview holds a related table. The side preview and a phone draw as before. The reader is +> `ui/packages/plugin-detail/src/synth/recordPageColumns.ts#recordPagePinsDetails`. An object +> extension does not carry the key: `ObjectExtensionSchema` refuses it with guidance that names +> `ObjectSchema.pinOverview`, so the switch is declared by the package that defines the object, and +> its paired `.custom` package does not write it either. Built by +> [#38679](https://github.com/objectstack-ai/objectstack/pull/38679). The second half stands: +> `fieldTabs` is not in the spec, and `ObjectSchema` refuses it until +> [#37802](https://github.com/objectstack-ai/objectstack/issues/37802) lands it. The 2026-11-27 note +> is left as written; read that sentence with this note. + ### 3. Deletions (all evidenced zero-author) - **`detail` block removed from `ObjectSchema`** — all three typed keys. `renderViaSchema` retires *together with* the legacy monolith renderer path in objectui (separate execution PR; the key is only that path's steering wheel, deleting it alone saves nothing). `hideReferenceRail`/`hideRelatedTab` are removed outright (the former is a proven no-op for spec authors; the latter's raison d'être — overriding rail/tab dedup — died with the rail). diff --git a/docs/adr/0146-studio-designs-setup-administers-one-editor-per-item-paired-customize-package.md b/docs/adr/0146-studio-designs-setup-administers-one-editor-per-item-paired-customize-package.md index e5ffd816376..d17f156585d 100644 --- a/docs/adr/0146-studio-designs-setup-administers-one-editor-per-item-paired-customize-package.md +++ b/docs/adr/0146-studio-designs-setup-administers-one-editor-per-item-paired-customize-package.md @@ -910,6 +910,28 @@ name suffixed, the base untouched (N-23c). > write a key, the App's pair is served ([D3](#d3)). The 2026-11-22 note is left as written; read "the base's > arrangement stays the base's" with this note. +> **Note (2026-11-30, [#36548](https://github.com/objectstack-ai/objectstack/issues/36548), built by +> [#38706](https://github.com/objectstack-ai/objectstack/pull/38706); carried by +> [#38438](https://github.com/objectstack-ai/objectstack/issues/38438)).** One sentence of the note above no longer +> describes every door: "A `.custom` package that is not the object's pair is not applied, and the boot log names it." +> Maintainer ruling (record +> [`7268226134`](https://github.com/objectstack-ai/objectstack/issues/36548#issuecomment-7268226134); this note is its +> item 5, arm (c)), on the question 「非配对的定制包写页面排布,保存和安装时要不要当场拒绝?」, verbatim: +> 「保存和安装都拒绝」. So at every door that can read the installed packages, a `.custom` package that is not the +> object's pair is refused when its object extension writes `fieldGroups`, `relatedLists` or `actionLayout`: at the +> save, the restore and the draft promotion of the item, and so at a package duplicate (`VALIDATION_ERROR` / 400), and +> at marketplace install (`VALIDATION_ERROR` / 422, with nothing installed). The refusal names the object's pair in its +> first sentence, or says that the object has none, and no error code is minted. The judge is the one the note above +> names, now asked with the lookup the registry fold serves by +> (`packages/metadata-core/src/customization-pair-lookup.ts#pairsOf`, of the object's owner). A per-package pair an +> earlier version created stays admitted on its own package's objects. +> +> Where no door can read the installed packages, the sentence stands as written: `os validate` and `os build`, which +> keep the suffix rule alone, a code-defined stack booted without them, and a stack that names no package id. There +> the writer is still not applied and the boot log names it, because boot never refuses. With this note, the note +> above agrees with the note below ("Any other package is refused"). The upgrade guidance is the migration entry +> `non-pair-custom-arrangement-refused`. The note above is left as written; read that sentence with this note. + > **Note (2026-11-24, [#36366](https://github.com/objectstack-ai/objectstack/issues/36366), built by > [#36629](https://github.com/objectstack-ai/objectstack/pull/36629)).** `actionLayout` is the third key of that exception > (`packages/spec/src/data/field-customization.ts#CUSTOM_ARRANGEMENT_KEYS`). It arranges an object's actions for one diff --git a/docs/adr/0150-behavioural-metadata-addressed-by-package-objects-keep-the-literal-prefix.md b/docs/adr/0150-behavioural-metadata-addressed-by-package-objects-keep-the-literal-prefix.md index e75a9675a09..ae3f83a818a 100644 --- a/docs/adr/0150-behavioural-metadata-addressed-by-package-objects-keep-the-literal-prefix.md +++ b/docs/adr/0150-behavioural-metadata-addressed-by-package-objects-keep-the-literal-prefix.md @@ -266,6 +266,14 @@ A caller with no package (an environment item, a context-free door, an MCP clien > > Pins: `packages/objectql/src/disabled-holder-packageless-row-doors.test.ts` ("[ADR-0150 D3, the 2026-11-26 note] the per-item publish and the rollback naming no package, while every holder is disabled"). The upgrade guidance is the migration entry `disabled-holder-package-less-row-bare-write-refused`. +> **Amendment note (2026-11-30, #34261 — PR #38633; carried by #38438).** One more sentence of the 2026-11-26 note above no longer describes `main`, the last of its bullet "Reads stay the missing name": "Three reads at `_env` still answer `409` at this head (`?state=draft`, `?preview=draft`, `?layers=true`), and card #34261 carries their move to `404`." The move has landed. No decision changes: the three reads now answer what that bullet gives the other reads. +> +> While every package that holds the name is disabled, `_env` answers each of the three its own `404`, naming no package: an admitted `?state=draft` (a caller who may read pending drafts) answers `404 NO_DRAFT`, as the by-name draft read does, and an admitted `?preview=draft`, and `?layers=true`, answer `404 RESOURCE_NOT_FOUND`. A caller the draft switches do not admit is answered the plain read's `404`, as before. `RestServer` and the runtime dispatcher answer alike (`packages/rest/src/meta-qualified-item-route.ts#admitEnvironmentAddress`, `packages/runtime/src/domains/meta.ts#admitEnvironmentAddress`). The door judges the read the caller is answered: a draft read reaches its own `404` only when the plain read and that draft read both withhold the name, and the layered view is judged by the plain read. A package-less draft stored under such a name is the disabled holder's customization and is withheld with it. Once the holder is enabled again, each of the three refuses `409` and names it, as before. +> +> One `409` stays, as a leak guard. Where an enabled package holds a stored draft of the name that the plain read does not see, the bare draft reads serve that draft to an admitted builder, so `_env` keeps the `409` for `?state=draft` and `?preview=draft` and never serves the draft. The layered view withholds it and answers its `404`. +> +> Pins, per type, in `packages/rest/src/meta-qualified-item-route.test.ts` and `packages/runtime/src/domains/meta-qualified-item-read.test.ts`: "only a disabled holder — `_env` with an admitted draft switch or the layered view answers its own 404, naming no package; re-enabled, each refuses naming it", and its control, "only a disabled holder in the registry, and an enabled package's stored draft — the bare draft reads serve it, `_env` draft reads refuse 409 and the layered view answers 404, never that draft". + **Two consequences of the rule, as R (#31637) implements it.** - **(a) A package caller never resolves to an environment-authored item by bare name.** A package cannot declare a dependency on the environment, so an environment item is in no package's closure. A name that only an environment item holds is refused for a package caller (`outside-closure`), and the refusal names the environment as the holder. **This is a declared narrowing**, added by this record within the letter of the ruled rule. Today `getItem` serves the bare slot first to every caller (D4's overlay row), so a package flow's `template: welcome` filled by an environment-authored template is served today and refused once its reader is wired. It is carried by the E rows that wire a package caller (E1–E6, E8) and by U only through G1's door: Studio's held id travels as `?package=` (`client.meta.getItem`), so at the door it is the exact qualifier (D5), never a caller. G1 declares what that refuses. It cannot be measured on a package tree (HotCRM holds no environment), so the D10 upgrade report names each such reference as the migration finds it. @@ -306,6 +314,8 @@ Every runtime index that keys a bucket 2 or 3 item by bare name gains the packag > **Amendment note (2026-11-10, #32060 item 6 — PR #32067; it closes when B #31696 lands).** Between G1 and B #31696 the engine arms one flow per bare name: a flow name two packages hold is refused at registration, naming both, and nothing is armed (`packages/services/service-automation/src/engine.ts#registerFlow`, #31677 Q1). So the flow row above ("all same-named flows arm") and the covered-types sentence that a package-qualified address reaches the intended holder do not hold for flows yet: the address of such a name answers the same `409` as its bare path (`packages/runtime/src/domains/automation-address.ts#admitAutomationAddress`). D5's two-holder text stays the end state, and B #31696 owns the engine re-key (epic seat reading E3, answered in record [`6755708575`](https://github.com/objectstack-ai/objectstack/pull/32001#issuecomment-6755708575) on PR #32001). +> **Amendment note (2026-11-30, #34891 — PR #38652; carried by #38438).** The table keys the engine's flow map by `(package, name)` and says nothing of the status rows read from it. No decision changes; this note records what those rows carry. Each row of `getFlowRuntimeStates()`, and so each row of `GET /automation/_status`, carries the `packageId` of the engine slot it reads (`packages/spec/src/contracts/automation-service.ts#FlowRuntimeState`; the key is absent for a flow no package holds). So `(packageId, name)` names one row, and a reader that means one package's flow of a name two packages hold picks its row by both, never by `name` alone. The toggle door (`POST /automation/:name/toggle` and its namespaced address, `/automation/:ns/:name/toggle`) reads back that row for the slot it switched, so on such a name it answers the switched flow's stored state. It echoes the request only where the reading cannot name the switched flow: a service that does not implement the read, a read that holds no row of the flow, or, on a door serving no package's slot, two or more rows of the name. Code: `packages/services/service-automation/src/flow-definitions.ts#getFlowRuntimeStates` and `packages/runtime/src/domains/automation.ts`. Pins: `packages/services/service-automation/src/flow-slots-per-package.test.ts` ("[ADR-0150 D4] the status rows carry their slot's package") and `packages/runtime/src/domains/automation-addressed-route.test.ts` ("[ADR-0126 §7.2] the toggle door answers the switched slot, on a name two packages hold"). + Hooks bind by event and object and already carry `packageId`. Only `isArtifactShippedHook` (name-only) gains the package. **An owner-less engine function registration is the platform's holder, not the environment's item** (the epic seat's review of R2, record [`6729484996`](https://github.com/objectstack-ai/objectstack/pull/31733#issuecomment-6729484996) item 2, refined by its re-review [`6730444942`](https://github.com/objectstack-ai/objectstack/pull/31733#issuecomment-6730444942) item 1). An `engine.registerFunction` with no owning package is code a plugin or host registers, never an item authored in the environment (bucket 4 is authored metadata). It resolves like `sys`, reachable from every caller's closure: From 04cc5911f1b0013f2d069db56ebcd6299323542d Mon Sep 17 00:00:00 2001 From: Claude Date: Mon, 30 Nov 2026 14:13:52 +0000 Subject: [PATCH 2/2] docs(adr): ADR-0146 note of 2026-11-30 says how a package duplicate answers a refused arrangement row The note put the save door's code and status on the package duplicate too. The duplicate saves each copied row through the save door, catches a refusal per row, and reports the row in its own answer: an entry in failed[] whose error is the save door's sentence, with no code, and nothing stored for that row. The code and status stay on the save, the restore and the draft promotion. One clause added from item 3 of the same ruling: a target whose owner the door does not know is not judged by role, and the registry fold's skip is the backstop there. Only this branch's own note of 2026-11-30 is edited; no older text moves. Claude-Session: https://claude.ai/code/session_01WGufzhPdWmTd47Fi2bKYZS Co-authored-by: Claude --- ...s-one-editor-per-item-paired-customize-package.md | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/docs/adr/0146-studio-designs-setup-administers-one-editor-per-item-paired-customize-package.md b/docs/adr/0146-studio-designs-setup-administers-one-editor-per-item-paired-customize-package.md index d17f156585d..d93b82248c7 100644 --- a/docs/adr/0146-studio-designs-setup-administers-one-editor-per-item-paired-customize-package.md +++ b/docs/adr/0146-studio-designs-setup-administers-one-editor-per-item-paired-customize-package.md @@ -919,12 +919,18 @@ name suffixed, the base untouched (N-23c). > item 5, arm (c)), on the question 「非配对的定制包写页面排布,保存和安装时要不要当场拒绝?」, verbatim: > 「保存和安装都拒绝」. So at every door that can read the installed packages, a `.custom` package that is not the > object's pair is refused when its object extension writes `fieldGroups`, `relatedLists` or `actionLayout`: at the -> save, the restore and the draft promotion of the item, and so at a package duplicate (`VALIDATION_ERROR` / 400), and -> at marketplace install (`VALIDATION_ERROR` / 422, with nothing installed). The refusal names the object's pair in its +> save, the restore and the draft promotion of the item (`VALIDATION_ERROR` / 400), and at marketplace install +> (`VALIDATION_ERROR` / 422, with nothing installed). A package duplicate saves each copied row through the save door, +> so it meets the same refusal row by row, and it answers in its own shape: the refused row is listed in the +> duplicate's `failed[]` with the save door's sentence as its `error` and no code, and nothing is stored for that row +> (`packages/metadata-protocol/src/protocol-package-commits.ts#duplicatePackage`; pinned in +> `packages/objectql/src/protocol-custom-arrangement.test.ts`). The refusal names the object's pair in its > first sentence, or says that the object has none, and no error code is minted. The judge is the one the note above > names, now asked with the lookup the registry fold serves by > (`packages/metadata-core/src/customization-pair-lookup.ts#pairsOf`, of the object's owner). A per-package pair an -> earlier version created stays admitted on its own package's objects. +> earlier version created stays admitted on its own package's objects. A target whose owner the door does not know +> (at install, neither the delivered artifact nor the registry names it) is not judged by role, by item 3 of the same +> ruling; there the registry fold's skip is the backstop, as in the paragraph below. > > Where no door can read the installed packages, the sentence stands as written: `os validate` and `os build`, which > keep the suffix rule alone, a code-defined stack booted without them, and a stack that names no package id. There