Repository navigation
Description
Ruled: 7000155587 · letter A · 2026-11-19T04:54Z
维护者速读
- 问题: 一家客户同时装 CRM、SRM 和以后的生产套件时,同一家公司、同一个物料会各存一份,互相不认,无法跨套件问数和串流程。今天还没有客户同时装两个套件。
- 选项: A 只约定匹配键,按编码对齐,客户无感,约 3 个 PR。B 加一个只读的薄登记应用,各套件挂关联,但要先补平台能力,约 12–20 个 PR。C 合并成统一的往来单位主数据,要迁移已冻结的对象,以月计。
- 推荐 A,并写明转 B 的触发条件。 理由:现在没有客户会撞上,而 B 依赖的跨应用关联今天在构建时就会被拒。
- 不裁的后果: 生产套件开工时会自建第三份物料和工厂,匹配键各写各的,以后只能人工对账。
你要做的: 回一个字母,比如「A」。另需同时确认:生产套件复用 hotsrm 的物料和工厂,还是自建并按键对齐(这一条要在 hotsrm v0.7 冻结前定)。
Filing gate ②: a decision only the maintainer can make. Source: maintainer — 「立一个平台决策卡」 and 「你用fable帮我综合分析一下」 (2026-11-19, project thread Plan marketplace apps from open-source references). Filed by thread session session_01JQwxbZH5uwQm82itbUnyZX. Analysis-tier: fable.
Grading: area:package · type: none (decision card) · p2 · reach: no customer runs two suites today · evidence: read (ADR text and lint source; no build/install run).
Business context
- Managed suites live in separate repos: hotcrm (sell side, @objectstack 18.6.0), hotsrm (buy side, 18.3.0; core + industry packs + customer private layer; core API names frozen, 28-object freeze at v0.7), and a planned production-execution suite for the only EE customer today, who also wants supply chain. A second customer will use CRM.
- Each repo owns its master data:
crm_account/crm_productvssrm_supplier/srm_material/srm_plant. Across suites there are no shared keys today. - Beneficiary: any customer that installs two suites; first expected when the production suite meets hotsrm at the EE customer.
Governing text
- ADR-0141 D1: a declared dependency opens the reference at the save door, but "the build still refuses a declared lookup into another artifact … Closing that gap at build is deferred by the ruling on validate/lint/build refuse a lookup or record_change trigger to an object provided by a package in manifest.dependencies — the publish gate already resolves that closure #25805" (
docs/adr/0141-inter-app-dependency-declared-checked-before-install.md, D1). packages/lint/src/validate-object-references.ts:60-70: a lookup resolves only in the stack's own objects or its artifact'spackages[].- ADR-0146 D10: a vendor package may add fields to another package's object (
objectExtensions); customer customization goes to the.custompackage (__cfields); base fields allow display-only changes. - ADR-0005: no environment overlay of objects or fields.
- Only
type: appis customer-installable (packages/spec/src/kernel/plugin.zod.ts:110-118); install refuses a missing dependency with422 DEPENDENCY_MISSING(packages/metadata-protocol/src/protocol-package-install.ts:377-388; cloudservice-cloud/src/routes/package-install/install.ts).
Options
| What | Customer effect | Effort | |
|---|---|---|---|
| A (recommended) | A key contract, no shared package: party key = country + credit code / registration no; item key = ERP material no; plant key = plant code. hotsrm already has these fields; hotcrm adds a country basis for registration_number and an ERP number on products. Cross-suite questions match by key. |
None visible; matching is as good as the keys (hotcrm keys are optional today). | ~3 PRs: hotsrm contract doc + pinning test, hotcrm fields, production-suite first card cites the contract. No platform change. |
| B | A thin read-only registry app (party, item), derived from suite objects by a find-or-create flow; each suite adds a lookup to it. Suite objects stay the editing surface. |
One extra required app per install; a single registry for cross-suite questions. | 12–20 PRs: reopen #25805 (build-time cross-artifact lookup), new repo, align suite versions, sync flows, backfill. Fallback (compose the registry into each suite) likely collides on namespace when a second suite installs (packages/objectql/src/registry.ts:1130-1170, inferred, not run). |
| C | One shared party model (customer and supplier are roles of one record, as Odoo res.partner / SAP Business Partner). |
Best consistency; every business field falls under the base-field customization limits. | Months; breaks hotsrm's frozen core; the shared-platform-master-data alternative was rejected in ADR-0141 (#25403). |
Four facets
os-decision-facets
- ① Long-term soundness: B — dependency direction matches ADR-0141 ("a master-data app is an ordinary app others depend on") and can grow toward C.
- ② Real business pull: A — zero customers run two suites; the EE customer's materials, plants and suppliers already carry ERP numbers, so the ERP is the de-facto registry.
- ③ AI mistakes: A plus a pinned key contract; B adds derived-sync metadata and duplicate parties wherever CRM keys are missing.
- ④ No sprawl: A — zero platform change; B reopens a not_planned platform card and adds a repo.
Prior rulings read: master data / party / cross-app dependency → ADR-0141 ([Decision] 一个应用能否声明依赖另一个应用并引用其对象(ADR-0019 推迟的应用间依赖) #25403 ruled B′; alternative 3 shared platform master data rejected; D7 note [decision] ADR-0141 carve-out: five measured gaps keep an app artifact from compiling or running with a dependent module artifact absent (lookups, actions, widgets, guard hooks, record-change flows) #26986 Q0=A), validate/lint/build refuse a lookup or record_change trigger to an object provided by a package in manifest.dependencies — the publish gate already resolves that closure #25805 ruled D (not_planned), ADR-0019 §Out of scope (amended by ADR-0019 (app-as-consumer-unit) D3 amendment: a suite may surface several apps, each owned by one module package of the suite; an app package still defines at most one app; one terminology for package, module, app and suite #32585), ADR-0130, ADR-0146 D10, ADR-0005, ADR-0048; hotsrm ADR-0002/0007/0008/0009. Issue bodies read only through ADR quotes.
Recommendation
A now, with B's trigger written down: the first customer that installs two suites whose master data does not come from one ERP, or the production suite deciding to own its master data instead of reading it from ERP.
Confidence gaps (any could flip it): no build/install was run for "two artifacts + dependency + lookup"; the fallback's namespace collision is inferred; no data on how often a customer is also a supplier; the production suite's object list has not been read (if it owns materials rather than reading ERP, lean B).
Self-check: looking at ① alone gives B; do ②③④ flip it — yes: no customer pull, B's lookup is refused at build today, and it adds a repo and sync flows.
After the ruling (for A)
- objectstack, 0 PRs: a capability probe — two minimal apps, dependency + cross-artifact lookup, build and install, plus the fallback's namespace collision; record results on validate/lint/build refuse a lookup or record_change trigger to an object provided by a package in manifest.dependencies — the publish gate already resolves that closure #25805 as B's cost sheet.
- hotsrm, 1 PR: the key contract doc and a test pinning it (fields already exist).
- hotcrm, 1 PR: country basis for
registration_number, an ERP number on products; still not unique. - Production suite: its first card cites the same key contract.
Before hotsrm v0.7 freezes: whether the production suite reusessrm_material/srm_plant(composed into one artifact per hotsrm ADR-0002) or owns its own and aligns by key; whether the key field names freeze as the cross-suite contract; and that addingparty/itemlookups later counts as additive, so deferring B is not locked out by the freeze.
Dedupe: "[Decision]" shared master data across suites (85 hits), base_party OR "identity registry" OR "cross-suite" (159 hits), party OR "master data" suite hotsrm OR hotcrm (5108 hits, top 10 read) — no open card on this question; nearest closed: #25805, #32585, #31362.
Reader after ruling: the objectstack package lane for the probe; the hotsrm and hotcrm repo seats for their PRs.
Generated by Claude Code
Activity
os-warren commentedon Nov 19, 2026
Ruling: A — key contract only; each suite owns its own party/item records; no shared base package.
Maintainer, 2026-11-19T04:54Z (in the planning thread): 「我觉得用户不同,管理的人不同,权限不同,各自独立数据好像没什么问题,而且客户大概率不会同时上多个模块,只是需要考虑多个套件之间是否考虑有数据关联或者同步的方案。」
Reading: different users, owners and permissions per suite make independent data acceptable, and customers will rarely run several suites at once. What remains open is how suites link or sync when one does. That is a design question for a follow-up, not a reopening of this card.
Post-ruling steps stand as written in the body. One addition is being discussed with the maintainer and is not filed yet: a cross-suite linkage/sync pattern. The candidate rests on two rules:
No bidirectional sync is proposed.
Generated by Claude Code
os-bill commentedon Nov 19, 2026
Ruling on the open follow-up: cross-suite linkage. All five recommendations accepted.
Maintainer, 2026-11-19T05:46:53Z (project thread), answering the five-point recommendation: 「同意」. The analysis behind it ran on Fable and was read-only, at
main05e0eb8.This adds to ruling A above and does not reopen it.
writeMode: 'upsert'+matchFields= the contract keys). Same-environment linkage waits for the first customer that runs two suites.srm_material/srm_plant. It composes into one release artifact with hotsrm (ADR-0130), and its bills of material and work orders look those objects up directly. No platform change is needed.unique/indexes, not onfield.externalId, which nothing reads (packages/spec/src/data/field.zod.ts:2818).party/itemlookups later counts as additive.srm_material.uomstores a UN/ECE Rec 20 code instead of free text. When the platform unit list lands, it adds validation only and leaves stored values unchanged. A quantity that crosses suites carries its unit code. hotcrm order lines gain an optional unit code field. The field naming follows whatever Units of measure on the platform: a standard unit list, quantity fields that carry their unit, and conversion #35339 settles.Flips to watch. Item 3 falls back to "own objects aligned by key, with sync built first" if any of these turns out true:
None of these has been checked yet.
Readers.
uomas a Rec 20 code; the optional package split.These suite cards belong in their own repos, and this record is their source.
Deferred until a customer needs them (not filed):
BatchRecord.externalIdis declared but never read (packages/metadata-protocol/src/protocol-batch-data.ts:474). It needs enforce-or-remove under ADR-0049.Full analysis: project file
card-35328/linkage-analysis.md.Generated by Claude Code
objectstack-fleet commentedon Nov 19, 2026
triage#1 · hotlong · session_01Q4EjjMnyLqJdzuktEmRPXH
Triage: a decision card for the maintainer (shared master data across the managed suites); rationale: area:package.
needs-user-decisionis added so nothing dispatches it before his letter.objectstack-fleet commentedon Nov 25, 2026
repo:hotcrm#2 · sunhaolin · session_017xRBcV3h25dAMNWki8e1ns
Ruling confirmed · 2026-11-25T09:02Z
Maintainer, verbatim (hotcrm seat 2's session
session_017xRBcV3h25dAMNWki8e1ns, 2026-11-25): 「5 确认」. It answers the seat's question 「确认 A 不变、结卡吗?」. That question followed a read-only Fable re-analysis (four axes, efforthigh, at objectstackmaind62f9e9c).Ruled:
needs-user-decisionwas re-added by triage after the ruling (7001540570) and comes off in the same stroke.Asked and not answered. These are not ruled and are recorded here so they are not lost. Each needs its own card or the maintainer's word:
clm_partyjoin the same convention, with unified field names?The re-analysis also proposed three measurable restart triggers for option B:
srm_material.They are recorded as a proposal, not a ruling.