Skip to content

Commit cc1bc47

Browse files
os-zhuangclaude
andcommitted
fix(spec): classify readScope/writeScope in permission liveness ledger (ADR-0057)
Spec property liveness gate (ADR-0054) requires every authorable property be classified. readScope/writeScope are live (consumed by permission-evaluator getEffectiveScope + sharing owner-match; hierarchy values delegated to the enterprise resolver, fail-closed in open). Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
1 parent 80e966f commit cc1bc47

1 file changed

Lines changed: 10 additions & 0 deletions

File tree

packages/spec/liveness/permission.json

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -46,6 +46,16 @@
4646
"modifyAllRecords": {
4747
"status": "live",
4848
"evidence": "packages/plugins/plugin-security/src/permission-evaluator.ts:60"
49+
},
50+
"readScope": {
51+
"status": "live",
52+
"evidence": "packages/plugins/plugin-security/src/permission-evaluator.ts (getEffectiveScope) + packages/plugins/plugin-sharing/src/sharing-service.ts (owner-match widened by readScope; hierarchy values delegated to IHierarchyScopeResolver)",
53+
"note": "ADR-0057 D1 — read access DEPTH (own/own_and_reports/unit/unit_and_below/org). own/org enforced in open edition; hierarchy values via the enterprise hierarchy-scope-resolver (fail-closed to owner-only when absent; defineStack requires 'hierarchy-security'). Proven: packages/dogfood/test/showcase-scope-depth.dogfood.test.ts."
54+
},
55+
"writeScope": {
56+
"status": "live",
57+
"evidence": "packages/plugins/plugin-security/src/permission-evaluator.ts (getEffectiveScope) + packages/plugins/plugin-sharing/src/sharing-service.ts (canEdit owner-set widened by writeScope; hierarchy values delegated)",
58+
"note": "ADR-0057 D1 — write access DEPTH (same enum as readScope)."
4959
}
5060
}
5161
},

0 commit comments

Comments
 (0)