Skip to content

Studio save of a package-declared permission set forks it into a silent, undiscoverable overlay #11513

Description

@os-sam

Split out from #9952's maintainer ruling (2026-08-20), which named it explicitly:

⚠️ Follow-up worth its own card, filed by whoever lands this if not absorbed: the overlay-shadow mechanism itself (a Studio save of a package-declared set silently forking it from the package, customized flag untouched) — arguably the real product defect the field report uncovered.

#9952 built the surfacing half (a drift_status/drift_detail diagnostic + a "Needs Attention" Setup view + a sanctioned "Discard Overlay" action) — an independent detector that catches an overlay-shadowed set even when the row's own customized flag reads wrong. It does not fix the underlying mechanism this card is about:

The mechanism

A sys_metadata overlay of a package-declared (artifact-backed) permission set can exist today — either a legacy row created while permission still had allowOrgOverride: true (pre-#6483/PR #6608, i.e. before ADR-0094 D5-R, 2026-08-09), or a fresh one created through the documented OS_METADATA_WRITABLE=permission operator hatch. Once it exists:

Why it is a product defect, not just a missing diagnostic

#9952's drift_status field tells an admin that a set has drifted and why, and gives them a button to fix it — but nothing stops the fork from happening again the same way, and nothing makes customized itself correct independent of managed_by. An admin who has never opened the new "Needs Attention" view has no reason to know a Studio save on a package-declared set (via the operator hatch) silently committed them to a permanently-shadowed set.

Candidates worth considering (not scoped/decided — for whoever picks this up)

Related: #9952 (parent field report — surfacing + discard action), #8672 (open — org-less materialization, same file).

Metadata

Metadata

Assignees

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions