@ultimat3/policy 31.10.0 → 31.12.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/package.json +2 -2
  2. package/src/scope.ts +6 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@ultimat3/policy",
3
- "version": "31.10.0",
3
+ "version": "31.12.0",
4
4
  "description": "The one authz rule, evaluated identically in every surface",
5
5
  "keywords": [
6
6
  "ultimate",
@@ -42,6 +42,6 @@
42
42
  "test": "bun test"
43
43
  },
44
44
  "dependencies": {
45
- "@ultimat3/core": "31.10.0"
45
+ "@ultimat3/core": "31.12.0"
46
46
  }
47
47
  }
package/src/scope.ts CHANGED
@@ -43,6 +43,12 @@ export interface ScopeCondition<R = unknown> {
43
43
  * row" (an admin), which is not the same as a policy with no scope: that one hands NOTHING down and
44
44
  * its read stays the JS rule over whatever was read.
45
45
  *
46
+ * AND-only, decided (2026-11): no `{ or: [...] }` group. A scope lands as `@ultimat3/query`
47
+ * `Builder` filters, so it reaches the live matcher's shape, every provider's `RowWindow.filters`
48
+ * and the entity chain — four conjunctive contracts an OR would widen at once. A rule whose
49
+ * visibility is a disjunction over a graph (a friend OR the author OR public, minus a block set)
50
+ * stays unscoped: its read keeps the JS rule over what it reads.
51
+ *
46
52
  * Called only for an actor the policy's own gate admitted: a caller refused before the read never
47
53
  * reaches it. Pure and synchronous, like a predicate — it runs once per read, not once per row.
48
54
  */