Skip to content

Commit 30d0eb7

Browse files
docs(adr, design, ui): ADR-0130 D2 and ADR-0141 point at the 2026-11-12 ADR-0019 D3 amendment; the marketplace design doc and the audience page drop the suite fold (#33455)
<!-- claude-projects-attribution: {"github_login":"os-project-manager"} --> _Requested by **Leehom** · [project thread](https://claude.ai/code/project/chan_01TenzsRopZj4jMbvjX8uz1X?thread=cmsg_01TenzsRopZj4jMbvjX8uz1XRDknyaA6oa7MrKZVWEcnFa)_ Fixes #32664 domain:skills#1 · os-project-manager · session_01FEkQ5omJjY7zqYeR48ExxC Clause-②: no Metadata-protocol: none ## 维护者速读 - 改了什么:ADR-0130 D2(两处)、其 Non-goals 与备选 5、ADR-0141 的 Unchanged 行,各加一条带日期的 ⚠️ 指向,点名 2026-11-12 对 ADR-0019 D3 的修订与 `958734cbac`,原裁决句一字不删;设计文档 `marketplace-publishing.md` 与公开文档页 `audience-based-interfaces.mdx` 的「套件折叠成一个应用」句改写为修订后的规则。 - 为什么改:ADR-0019 D3 已按「改成 Salesforce 模式」修订(一个套件可呈现多个应用,每个应用由不同包定义,应用包至多一个应用),但 ADR-0130/0141 仍写「D1–D3 原文不变」,设计文档与文档页仍教「一个应用、永不套件」;人或 AI 搜 D3 会落到旧读法。 - 风险与回滚:纯文档,4 个文件 +88/−20,不动代码、schema、技能;回滚即还原本 PR。 - 先看:`docs/adr/0130-release-artifact-as-co-ownership-boundary.md` D2 下两条指向(:211、:235);`docs/design/marketplace-publishing.md` §6 新增的 Shape C 与改写的「Not allowed」框;`content/docs/ui/audience-based-interfaces.mdx` 第 22 行。 - 两分钟验证:`git diff origin/main -- docs/adr/`,预期只见新增的 ⚠️ 指向行,无任何删除行。 - 需要你做的:受管面 Tier H(`docs/adr/**`):请批准或合并。 ## What changes Four files, +88 / −20. The amended rule is quoted, not paraphrased, from ADR-0019 D3's amendment note on `main` (`ba35dfd7`): "A suite (one install: an app package plus the module packages it composes) MAY surface more than one app, provided each app is defined by a different package of the suite, and an app package defines at most one app." - **`docs/adr/0130-release-artifact-as-co-ownership-boundary.md`** (+26 / −0, no ruled sentence touched). - D2, after "D1–D3 stand verbatim and unamended": a dated pointer naming the amendment, #32585 and `958734cbac`, quoting the rule, and saying D1 and D2 are not amended; of "installs, opens, uninstalls" only "opens" reads differently (ADR-0019's note under D1). - D2, after the ⛔ line: a pointer quoting ADR-0019's own "Records that restate D3" note: the line "stands as drawn", "What ADR-0130 calls a suite is a container a consumer browses or installs, and that stays removed", and the "exactly one consumer-visible consequence" "gains a second: a module the app package brought may surface an app of its own." - Non-goals, "Not a suite": a pointer saying which "suite" the line excludes, since the amended D3 uses the word for one install of an app package with its modules. - Alternative 5, "ADR-0019 D3 by another name": a pointer saying the fold is reversed and the rejection stands on what the amendment keeps: D1, D2, and a suite "is no second consumer unit. It has no listing and no package type of its own." - **`docs/adr/0141-inter-app-dependency-declared-checked-before-install.md`** (+8 / −0): a pointer after the **Unchanged** line, whose consumer-model item is kept as the reading of 2026-10-25. - **`docs/design/marketplace-publishing.md`** (+53 / −19): a new dated `Updated:` header line (the 2026-05-31 line kept); §1's HotCRM paragraph rewritten from "being refolded into a single consumer App" to the suite it ships as (hotcrm `main` at `ac4dd3d`: sales in the app package, service and marketing in their module packages); §2.1's taxonomy line; §6's lead rewritten to the amended rule, "(recommended for HotCRM)" dropped from Shape A, a new **6.3 Shape C** (a suite through `composeStacks(..., { manifest: 'preserve' })`), and the "Not allowed" box rewritten to one package surfacing N apps plus a suite as a second consumer unit, naming `STACK_SINGLE_APP_VIOLATION` for `type: app` and `type: module`; Summary item 5. - **`content/docs/ui/audience-based-interfaces.mdx`** (+1 / −1): "More audiences therefore never mean more apps" becomes per package, a `type: 'module'` package is held to one app too (`packages/spec/src/stack.zod.ts#SINGLE_APP_PACKAGE_TYPES`, `app` and `module`), and a suite may surface more than one app, each defined by a different package. The "See also" line ("one app per package") still holds and is unchanged. ## Acceptance notes - **Nothing already landed.** Commits on each file since `958734cbac` (GitHub REST, `commits?path=`): ADR-0130's last is PR #32846 (`2d52e297d3`), which dated only the §1.5 `validateSingleApp` row; ADR-0141's last is #31415 (2026-11-08); the design doc's last is #18838 (2026-09-17); the docs page's last is #29447 (2026-11-02). None carries these pointers. - **Left as written, still true:** ADR-0130's TL;DR "does not move a single letter (D2)" (its D2 now carries the pointer) and References "(unamended by this record)"; ADR-0141 D6 "ADR-0019 keeps its text verbatim" and its Cross-references line (both describe ADR-0141's own act); ADR-0141 Context's "the standalone module is therefore an App in its own right" (the shelved cross-artifact consumer). - **Same family, outside this card's surface, noted only:** the header comment of `packages/spec/src/kernel/package-registry.zod.ts` says "a consumer package defines at most one app — there is no 'suite contains apps' aggregator", and the design doc's §2.2 quotes it. Read per package it still holds (no package of a suite defines more than one app), so it is not a defect; a wording pass is the spec lane's to pick up. - The design doc's Shape A example still uses HotCRM-style ids as an illustration; only its "recommended for HotCRM" heading was dropped. ## Verification <details><summary>Derived gates on head 8bfdf6e (48 of 48 exit 0)</summary> `node scripts/pm/dispatch-gates.mjs --commands --repo objectstack-ai/objectstack` derived 48 commands; each ran with its exit captured before any pipe. The nine package-filter gates were rerun after `turbo run build --filter=@objectstack/lint... --filter=@objectstack/client-react...` under the lock (VERDICT command-exit 0); the first pass of `check:skill-examples`, taken before that build, answered exit 3 (prerequisite not built) and is superseded by the rerun below. `--ran`: "48 derived famil(ies) accounted for — 48 run, 0 NOT-MEASURED". Control-byte self-scan of the four files: no hit. ``` node scripts/check-adr-links.mjs :: exit 0 node scripts/check-adr-links.mjs --self-test :: exit 0 node scripts/check-closing-keyword-parity.mjs :: exit 0 node scripts/check-closing-keyword-parity.mjs --self-test :: exit 0 node scripts/check-comment-mask-corpus.mjs :: exit 0 node scripts/check-doc-route-spelling.mjs --advisory :: exit 0 node scripts/check-doc-route-spelling.mjs --self-test :: exit 0 node scripts/check-docs-section-name.mjs :: exit 0 node scripts/check-docs-section-name.mjs --self-test :: exit 0 node scripts/check-section-landing-index.mjs :: exit 0 node scripts/check-section-landing-index.mjs --self-test :: exit 0 node scripts/ci/plan-test-core-shards.mjs --self-test :: exit 0 pnpm check:adr-anchors :: exit 0 pnpm check:adr-index :: exit 0 pnpm check:adr-symbol-anchors :: exit 0 pnpm check:ci-filter-parity :: exit 0 pnpm check:closed-ceremony-text :: exit 0 pnpm check:corpus-claim-drift :: exit 0 pnpm check:cross-package-test-inputs :: exit 0 pnpm check:doc-anchors :: exit 0 pnpm check:doc-authoring :: exit 0 pnpm check:doc-frontmatter :: exit 0 pnpm check:docs-audit-scope :: exit 0 pnpm check:docs-redirects :: exit 0 pnpm check:docs-single-h1 :: exit 0 pnpm check:docs-spec-enumerations :: exit 0 pnpm check:docs-transcript-drift :: exit 0 pnpm check:driver-memory-census :: exit 0 pnpm check:gitlink-declared :: exit 0 pnpm check:nul-bytes :: exit 0 pnpm check:pm-governed-merges :: exit 0 pnpm check:pm-prior-rulings :: exit 0 pnpm check:published-readme-links :: exit 0 pnpm check:react-page-adapter-contract :: exit 0 pnpm check:refd-timer-probe :: exit 0 pnpm check:role-word :: exit 0 pnpm check:skill-identifier-liveness :: exit 0 pnpm check:vendor-version-stamps :: exit 0 pnpm check:watch-hint-literal :: exit 0 pnpm --filter @objectstack/lint run check:doc-formula-expressions :: exit 0 pnpm --filter @objectstack/lint run check:doc-security-posture :: exit 0 pnpm --filter @objectstack/spec run check:docs :: exit 0 pnpm --filter @objectstack/spec run check:empty-state :: exit 0 pnpm --filter @objectstack/spec run check:liveness :: exit 0 pnpm --filter @objectstack/spec run check:skill-examples :: exit 0 pnpm --filter @objectstack/spec run check:strictness-ledger :: exit 0 pnpm --filter @objectstack/spec run check:variant-docs :: exit 0 pnpm --filter @objectstack/spec run check:yaml-examples :: exit 0 ``` </details> <details><summary>Tier and governed-merge verdicts</summary> - `dispatch-gates --tier`: MANDATORY contract-review tier for `docs/adr/**` (no one-line exit). This card thread ran on the claim's default tier; named as a deviation in the report, and the seat's in-seat contract review at tier is the owed record. - `check-governed-merges.mjs --branch claude/project-thread-58mkv4`: exit 3, GOVERNED, landing tier H (人合), `docs/adr/** ×2`; `content/docs/ui/audience-based-interfaces.mdx` and `docs/design/marketplace-publishing.md` are not on the register; 108 changed lines, under the 3000 threshold. - Changeset: `skip-changeset` (`docs/adr/**`, `docs/design/**` and `content/docs/**` ship in no package's `files[]`). </details> --- _Generated by [Claude Code](https://claude.ai/code/session_01FEkQ5omJjY7zqYeR48ExxC)_ <!-- signed: domain:skills#1 · os-project-manager · session_01FEkQ5pjSPT7ui2EUcunaVb --> Co-authored-by: Claude <noreply@anthropic.com>
1 parent 426bf65 commit 30d0eb7

4 files changed

Lines changed: 88 additions & 20 deletions

‎content/docs/ui/audience-based-interfaces.mdx‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ description: "Serve one dataset to different audiences: give end users a curated
1919

2020
The built-in permission sets already encode this split: `member_default` and `viewer_readonly` do **not** carry `studio.access` / `manage_metadata`, so Studio and schema-design surfaces are invisible to them; `admin_full_access` carries both, while `organization_admin` gets `setup.access` only — the Setup shell is reachable but Studio and schema design stay hidden from org-scoped admins (see [`default-permission-sets.ts`](https://github.com/objectstack-ai/objectstack/blob/main/packages/plugins/plugin-security/src/objects/default-permission-sets.ts)).
2121

22-
**One package, one app.** A package of `type: 'app'` exposes **exactly one** App — `defineStack` refuses a second at load, per ADR-0019 (app-as-consumer-unit) D3. More audiences therefore never mean more apps: they are navigation groups **inside** that one app, gated by `requiredPermissions` exactly as below.
22+
**One package, one app.** A package of `type: 'app'` exposes **exactly one** App — `defineStack` refuses a second at load, per ADR-0019 (app-as-consumer-unit) D3; a `type: 'module'` package is held to at most one app the same way. More audiences in one package therefore never mean more apps: they are navigation groups **inside** that one app, gated by `requiredPermissions` exactly as below. More apps come only from more packages: a suite (one install: an app package plus the module packages it composes) may surface more than one app, each defined by a different package of the suite (ADR-0019 D3, amended 2026-11-12).
2323

2424
### 1. Gate the app and its navigation
2525

‎docs/adr/0130-release-artifact-as-co-ownership-boundary.md‎

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -208,6 +208,16 @@ already filters them out of the consumer marketplace and
208208
`MarketplaceListingSchema.packageType` already cannot represent a non-App listing — neither
209209
changes.
210210

211+
> ⚠️ **Pointer (2026-11-14): ADR-0019 D3 was amended on 2026-11-12**
212+
> ([#32585](https://github.com/objectstack-ai/objectstack/issues/32585), merged as `958734cbac`).
213+
> "D1–D3 stand verbatim and unamended" above is the reading of 2026-09-01 and is kept as written.
214+
> The amended rule: "A suite (one install: an app package plus the module packages it composes) MAY
215+
> surface more than one app, provided each app is defined by a different package of the suite, and
216+
> an app package defines at most one app." D1 and D2 are not amended, so the consumer still
217+
> installs and uninstalls one thing, the single `type: app` package. Of the three verbs only
218+
> "opens" reads differently: a user opens an app, and a suite may offer more than one (ADR-0019's
219+
> note under D1).
220+
211221
D4 of ADR-0019 accommodates this case in its own words, unchanged: *"An App declares and owns
212222
**a set of namespaces**; uninstall is atomic over that set"* (`docs/adr/0019-app-as-consumer-unit.md`,
213223
`docs/adr/0019-app-as-consumer-unit.md`) — a **set**, and its parenthetical already cites the very `Map<namespace, Set<packageId>>`
@@ -222,6 +232,14 @@ a consumer can partially uninstall. It has exactly one consumer-visible conseque
222232
you installed brought its modules — and that is the same consequence a plugin inside a package
223233
has today.
224234

235+
> ⚠️ **Pointer (2026-11-14), the same amendment** (`958734cbac`). ADR-0019's amendment note,
236+
> under "Records that restate D3", reads this paragraph: the line "stands as drawn", and "What
237+
> ADR-0130 calls a suite is a container a consumer browses or installs, and that stays removed."
238+
> From the amendment ADR-0019 uses "suite" for one install of an app package with its modules, "a
239+
> descriptive word, not a package type"; that is not the container this line excludes. "Exactly
240+
> one consumer-visible consequence" above is the reading of 2026-09-01 and is kept as written; it
241+
> "gains a second: a module the app package brought may surface an app of its own."
242+
225243
**Recording convention.** ADR-0019's text is **not rewritten**. This record cross-references it
226244
and is listed in its own `Builds on` line; per this repository's convention a governed record is
227245
amended by an additive addendum or by a successor that cites it (the shape ADR-0048's 2026-08-08
@@ -430,6 +448,10 @@ It is listed again under Non-goals.
430448
become the wedge that reintroduces one.
431449
- **The artifact as a consumer-visible unit.** D2's ⛔ line. Not a suite, not a browse target, not
432450
an install target, not partially uninstallable.
451+
⚠️ *Pointer (2026-11-14):* "suite" here is the container a consumer browses or installs, which
452+
stays removed after ADR-0019 D3's 2026-11-12 amendment (`958734cbac`); the amended D3 uses the
453+
word for one install of an app package with its modules, which may surface several apps, each
454+
defined by a different package (see the pointers under D2).
433455
- **Implementing segmented artifact loading.** D4 reserves the key position only. The segmented
434456
form itself needs its own decision.
435457
- **A second ordering mechanism.** D5. `resolvePluginOrder` or nothing.
@@ -515,6 +537,10 @@ turn into a mechanism, and it does not become one until the cards above ship.
515537
5. **Let the artifact be a consumer-visible container ("a suite, but a good one").** Rejected
516538
outright: it is ADR-0019 D3 by another name, and that record's argument does not weaken
517539
because the container is better built.
540+
⚠️ *Pointer (2026-11-14):* ADR-0019 D3 was amended on 2026-11-12 (`958734cbac`): its fold is
541+
reversed, and a suite may surface several apps, each defined by a different package. The
542+
rejection stands on what the amendment keeps: D1 and D2 are unchanged, and a suite "is no
543+
second consumer unit. It has no listing and no package type of its own."
518544

519545
---
520546

‎docs/adr/0141-inter-app-dependency-declared-checked-before-install.md‎

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -611,6 +611,14 @@ an App), the artifact as a control-plane noun that installs whole (ADR-0130 D2),
611611
version per artifact (ADR-0130 D6), permission sets (ADR-0086 D4), the save door's closure rules, the snapshot shape
612612
(D8, until its own card), and the compile-time boundary (`os validate` refuses a lookup into another artifact, D1).
613613

614+
> ⚠️ **Pointer (2026-11-14): ADR-0019 D3 was amended on 2026-11-12**
615+
> ([#32585](https://github.com/objectstack-ai/objectstack/issues/32585), merged as `958734cbac`). The consumer-model
616+
> item of the **Unchanged** line above is the reading of 2026-10-25 and is kept as written. The amended rule: "A suite
617+
> (one install: an app package plus the module packages it composes) MAY surface more than one app, provided each app is
618+
> defined by a different package of the suite, and an app package defines at most one app." D1, D2 and D4 are not
619+
> amended, so one app package still installs and uninstalls as one; of the three verbs only "opens" reads differently: a
620+
> user opens an app, and a suite may offer more than one (ADR-0019's note under D1).
621+
614622
---
615623

616624
## Alternatives considered

‎docs/design/marketplace-publishing.md‎

Lines changed: 53 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,11 @@
55
> **Updated:** 2026-05-31 — §1–2 and §6 aligned to ADR-0019 (App as the
66
> consumer-facing unit; no "suite contains apps"; consumer Marketplace lists
77
> only `type: app`).
8+
> **Updated:** 2026-11-14 — §1, §2.1, §6 and the Summary follow ADR-0019 D3 as
9+
> amended on 2026-11-12 (`958734cbac`): a suite (one install: an app package
10+
> plus the module packages it composes) may surface more than one app, each
11+
> defined by a different package, and an app package defines at most one app.
12+
> The 2026-05-31 line above is kept as written.
813
> **Status:** Design Specification
914
> **Target Version:** v3.2 – v4.0
1015
@@ -49,14 +54,19 @@ The marketplace protocol consists of three primary schema files:
4954

5055
### Reference Implementation
5156

52-
**HotCRM** (`objectstack-ai/hotcrm`) demonstrates a real-world application. Per
53-
ADR-0019, it is being refolded into a **single consumer App** (download = open =
54-
uninstall) whose internal plugins are invisible "frameworks inside the bundle":
55-
- Root `objectstack.config.ts` with `type: 'app'` — one consumer-facing App
56-
- The former sub-plugins (crm, finance, marketing, …) are internal
57-
contributions bundled inside the App, not separately listed or installed
58-
- The App owns the set of namespaces those contributions use; uninstall is
59-
atomic over that set
57+
**HotCRM** (`objectstack-ai/hotcrm`) demonstrates a real-world application. It
58+
ships as a **suite** under ADR-0019 D3 as amended on 2026-11-12: one release
59+
artifact whose consumer unit is its `type: 'app'` package, plus the module
60+
packages it composes (ADR-0130):
61+
- The `type: 'app'` package is the one thing listed, installed and uninstalled
62+
(ADR-0019 D1, D2); its modules are not separately listed or installed
63+
- The suite surfaces several apps, each defined by a different package: sales
64+
in the app package, service and marketing in their module packages (hotcrm
65+
`main` at `ac4dd3d`: `src/sales/apps/crm.app.ts`,
66+
`src/service/apps/service.app.ts`, `src/marketing/apps/marketing.app.ts`);
67+
no package defines more than one app
68+
- The app package owns the set of namespaces its modules use; uninstall is
69+
atomic over that set (ADR-0019 D4)
6070

6171
---
6272

@@ -70,7 +80,7 @@ The ObjectStack ecosystem exposes **one consumer-facing noun: the App.**
7080
App ← the only consumer unit (download = open = uninstall)
7181
├── Type: app (the only consumer-installable type; see isConsumerInstallable)
7282
├── Namespace(s): the App owns a set; uninstall is atomic over the set
73-
├── Apps: at most one app surface per package (one app, many tabs — no suite)
83+
├── Apps: at most one app surface per package (a suite surfaces one per package)
7484
└── Internal contributions (invisible): plugin | driver | server | ui | theme | agent | module
7585
— "frameworks inside the .app bundle": bundled or operator-provisioned,
7686
never independently listed or installed by a consumer
@@ -380,12 +390,16 @@ Steps:
380390

381391
## 6. Composing a Multi-Plugin Application (ADR-0019)
382392

383-
The consumer model has **one user-visible noun — the App — and no "suite
384-
contains apps" aggregator**. A solution built from many internal plugins has
385-
exactly two valid shapes; both ship as *one App* (or several independent Apps)
386-
to the consumer, never as a wrapper that surfaces N apps.
393+
The consumer model has **one listed, installed and uninstalled noun — the App,
394+
that is the `type: app` package — and no package that surfaces N apps**. Under
395+
ADR-0019 D3 as amended on 2026-11-12 (`958734cbac`), a suite (one install: an
396+
app package plus the module packages it composes) may surface more than one
397+
app, provided each app is defined by a different package of the suite; an app
398+
package, and a module package, defines at most one app. A solution built from
399+
many internal plugins has three valid shapes, and each ships to the consumer as
400+
*one App* per listing.
387401

388-
### 6.1 Shape A — One App, internal plugins bundled (recommended for HotCRM)
402+
### 6.1 Shape A — One App, internal plugins bundled
389403

390404
Compose all internal plugins into a single `type: 'app'` package. The plugins
391405
are "frameworks inside the .app bundle" — invisible to the consumer. The App
@@ -425,10 +439,30 @@ os publish # com.hotcrm.finance (type: app)
425439
**Cons:** verticals do not share one install; cross-app data sharing is a
426440
separate concern (see ADR-0019 §Out of scope).
427441

428-
> **Not allowed:** a "meta-package" / suite whose only job is to surface N apps
429-
> to the consumer — the Office "suite contains applications" model ADR-0019
430-
> removes. `defineStack` enforces *at most one app* per `type: app` package, and
431-
> the consumer Marketplace lists only `type: app`.
442+
### 6.3 Shape C — A suite: one app package, modules that each surface an app (HotCRM)
443+
444+
Ship one release artifact (ADR-0130) holding the `type: 'app'` package and the
445+
`type: 'module'` packages it composes. The consumer lists, installs and
446+
uninstalls the app package; the modules come with it. Each package may define
447+
one app, so the suite offers several apps, switched from the app launcher.
448+
449+
```typescript
450+
// objectstack.config.ts
451+
export default composeStacks(
452+
[serviceStack, marketingStack, salesStack], // each a defineStack() with at most one app
453+
{ manifest: 'preserve' }, // one artifact, one package per stack
454+
);
455+
```
456+
457+
**Pros:** one listing and one install, with an app per business area.
458+
**Cons:** the modules version with the app package (ADR-0130 D6).
459+
460+
> **Not allowed:** one package that surfaces N apps, and a suite as a second
461+
> consumer unit: a suite "is no second consumer unit. It has no listing and no
462+
> package type of its own" (ADR-0019 D3 amendment note). `defineStack` refuses
463+
> a `type: app` or `type: module` package that defines more than one app
464+
> (`STACK_SINGLE_APP_VIOLATION`), and the consumer Marketplace lists only
465+
> `type: app`.
432466
433467
---
434468

@@ -617,7 +651,7 @@ This comprehensive design document establishes the **Marketplace Protocol** for
617651
2. **Publishing**: 6-step flow (develop → validate → build → submit → review → publish)
618652
3. **Installation**: 4 channels (CLI, SDK, API, UI) with 30+ metadata type registration
619653
4. **Lifecycle**: State machine for install/enable/disable/upgrade/uninstall
620-
5. **Composition** (ADR-0019): one App (internal plugins bundled) or several independent Apps — never a suite
654+
5. **Composition** (ADR-0019, D3 as amended 2026-11-12): one App (internal plugins bundled), several independent Apps, or a suite whose app package and modules each surface at most one app — never one package that surfaces N apps
621655
6. **Security**: 5-level verification, signing, automated scanning, permission review
622656
7. **Pricing**: 6 models (free to enterprise) with license validation
623657
8. **Roadmap**: 5 phases across 4 quarters

0 commit comments

Comments
 (0)