You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix(platform-objects,core): sys_metadata_activation ships tenant-less — drop the reserved organization_id before 17.3 is cut (ADR-0126 amended by ADR-0131 D6/D7) #15024
Re-scoped on the maintainer's ruling (2026-09-04, live chat: 「所以 ADR-0126 不能简单的关掉」「hotcrm 是标准的软件包,客户安装之后能根据业务需求实现具体的定制」「同意」). ADR-0126 is amended, not superseded (PR #14976, ADR-0131 D6): its regimes stand at environment scope and the packaged-flow / packaged-action disable + clone machinery ships in 17.3. What does NOT ship is a nullable tenant column on a new table. ⚠️Must land before the 17.3 tag.
The ADR-0126 D3 per-organization pre-chart ("per-org disable for record-change-triggered flows only, when a customer asks") is not implemented here and is recorded in ADR-0131 D6 as returning, if ever, as a separate org-owned object — never as a column on this ledger.
Any migration or index that names the column on this table is removed (the table never shipped: plain removal, ADR-0087 entry noting "unreleased").
⛔ Do not revert #12185 / #12190 / #12296 / #12348 / #12419 / #12491 — that was this card's first scope and is withdrawn. ⛔ Do not touch sys_metadata, ADR-0005's overlay path or the permission-set write-through — v18, ADR-0131.
Acceptance
git grep -n organization_id -- packages/core/src/utils/metadata-activation-store.ts packages/platform-objects/src/**/sys-metadata-activation* returns nothing; the DDL for sys_metadata_activation has no organization_id; automation / core / platform-objects suites green; disabling a packaged flow on an isolated rig still requires the operator capability and still refuses at execute(); the fix commit is confirmed NOT an ancestor of @objectstack/account@17.2.0 (positive control: one 17.2.0 commit IS).
Re-scoped on the maintainer's ruling (2026-09-04, live chat: 「所以 ADR-0126 不能简单的关掉」「hotcrm 是标准的软件包,客户安装之后能根据业务需求实现具体的定制」「同意」). ADR-0126 is amended, not superseded (PR #14976, ADR-0131 D6): its regimes stand at environment scope and the packaged-flow / packaged-action disable + clone machinery ships in 17.3. What does NOT ship is a nullable tenant column on a new table.⚠️ Must land before the 17.3 tag.
业务一句话
ADR-0126 的活化账本
sys_metadata_activation是「本环境把哪个受管流程关掉了」这种部署级状态,不属于任何组织。它今天带着一个「预留、先写 NULL」的organization_id列,正是 ADR-0131 要消灭的形状。发版前把这列去掉,让这张表以无组织列的部署级状态表出厂。Scope
sys_metadata_activation(packages/platform-objects, declared by feat(platform-objects): declaresys_metadata_activation, the ADR-0126 §4 activation ledger #12185) declaressystemFields.tenant: false; the store (packages/core/src/utils/metadata-activation-store.ts, Ledger convergence: registration home + one store implementation (ADR-0126 §4/§8, maintainer-ruled) #12419) drops itsorganization_id == nullfilter and the "RESERVED, never written" docblock — there is no column to reserve.execute()-time consult (feat(automation): durable packaged-flow disable — activation ledger, execute() consult, operator gate #12296) are untouched and stay pinned.⛔ Do not revert #12185 / #12190 / #12296 / #12348 / #12419 / #12491 — that was this card's first scope and is withdrawn. ⛔ Do not touch
sys_metadata, ADR-0005's overlay path or the permission-set write-through — v18, ADR-0131.Acceptance
git grep -n organization_id -- packages/core/src/utils/metadata-activation-store.ts packages/platform-objects/src/**/sys-metadata-activation*returns nothing; the DDL forsys_metadata_activationhas noorganization_id; automation / core / platform-objects suites green; disabling a packaged flow on anisolatedrig still requires the operator capability and still refuses atexecute(); the fix commit is confirmed NOT an ancestor of@objectstack/account@17.2.0(positive control: one 17.2.0 commit IS).Refs: ADR-0131 (PR #14976) D6 / D7 / D14 · ADR-0126 D2 / D3 · #12155 · #12419 · #13564.