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
refactor(security): ADR-0057 open/paid seam — hierarchy scopes via pluggable IHierarchyScopeResolver
Hierarchy-relative visibility (scope unit/unit_and_below/own_and_reports) is an
enterprise capability, not open-core. The open framework keeps the secure baseline
(RLS/sharing/roles/own·org scope, BU data model + explicit business_unit recipient)
and a pluggable seam; the resolver implementation ships in the private
@objectstack/security-enterprise.
- spec/contracts: IHierarchyScopeResolver + HierarchyScope.
- plugin-sharing: SharingService delegates unit*/own_and_reports to a late-bound
resolver (hierarchy-scope-resolver service); fails CLOSED to owner-only when absent
(never fail-open). Removed the BU/manager rollup logic from the open SharingService.
- spec/defineStack: compile-error if a grant uses a hierarchy scope without
requires:['hierarchy-security'] (ADR-0049 — no silent lie).
- dogfood showcase-scope-depth: registers a reference resolver (test fixture) to prove
the seam (5/5), incl. a fail-closed case (no resolver → owner-only).
- authz-conformance + ADR-0057: record the seam.
Full build 75/75; spec 6599; dogfood 21/123; sharing 63; security 112 — all green.
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
0 commit comments