@geonosis/policy 3.6.0 → 3.7.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.
- package/CHANGELOG.md +8 -0
- package/README.md +11 -20
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,13 @@
|
|
|
1
1
|
# @geonosis/policy
|
|
2
2
|
|
|
3
|
+
## 3.7.0
|
|
4
|
+
|
|
5
|
+
This package had no change of its own in 3.7.0. What the group changed under that number is in `GROUP-CHANGELOG.md`, in the `@geonosis/cli` package.
|
|
6
|
+
|
|
7
|
+
## 3.6.1
|
|
8
|
+
|
|
9
|
+
This package had no change of its own in 3.6.1. What the group changed under that number is in `GROUP-CHANGELOG.md`, in the `@geonosis/cli` package.
|
|
10
|
+
|
|
3
11
|
## 3.6.0
|
|
4
12
|
|
|
5
13
|
This package had no change of its own in 3.6.0. What the group changed under that number is in `GROUP-CHANGELOG.md`, in the `@geonosis/cli` package.
|
package/README.md
CHANGED
|
@@ -97,22 +97,12 @@ stay consumer-side, and the seven behaviours that deliberately differ.
|
|
|
97
97
|
{ "packs": [{ "pack": "thresholds", "options": { "sourceRoots": ["packages", "apps"] } }] }
|
|
98
98
|
```
|
|
99
99
|
|
|
100
|
-
`@geonosis/verify-arch`'s `thresholds` pack, two checks:
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
per-file linter can reach: `grep` finds both, and only something holding the whole graph can say
|
|
107
|
-
they disagree.
|
|
108
|
-
|
|
109
|
-
The name shapes are a **default** rather than an empty list, for the reason `rails` defaults its
|
|
110
|
-
threat classes and not its `caps.auth`: `_MS` and `MAX_` are the units and bounds a threshold is
|
|
111
|
-
spelled in, and none of them is one repo's word for one repo's thing. A repo adds its own with
|
|
112
|
-
`names`, excuses one with `allow`, and names its own wrapper with `helper`.
|
|
113
|
-
|
|
114
|
-
A bound declared **inside a function** is left alone — it is a step in an algorithm, not a
|
|
115
|
-
repo-wide decision — and the anchor that does that is column zero.
|
|
100
|
+
`@geonosis/verify-arch`'s `thresholds` pack, two checks: **T1.1**, a module-scope `const` with a
|
|
101
|
+
threshold-shaped name and a bare number for a value, and **T1.2**, one such name declared with two
|
|
102
|
+
different values in two files. The name shapes it looks for by default, the options that add to and
|
|
103
|
+
excuse them, and why a bound inside a function is left alone are in that package's README, under
|
|
104
|
+
`### thresholds`. A finding there is a number that decides behaviour and can say only "me, an hour
|
|
105
|
+
ago" when asked why; `declareThreshold` is what gives it an answer.
|
|
116
106
|
|
|
117
107
|
## a Workers + D1 app, corrected
|
|
118
108
|
|
|
@@ -150,6 +140,9 @@ worth precisely as much as its journal is fed, which today is not at all.
|
|
|
150
140
|
`@geonosis/integrations` for that reason and it was right to; this package ships inside 1.0.0 with
|
|
151
141
|
a Medusa storefront's kernel as its only live consumer and musa's lattice as a second fixture, not a second
|
|
152
142
|
consumer. It is DONE when a Medusa storefront depends on the published version and has deleted its `lib/`.
|
|
143
|
+
Read on 2026-10-17: its rules-engine plugin depends on the published version and reads through
|
|
144
|
+
`definePolicy` and `readPolicy`, and its `lib/` still holds its own files beside them, so it is not
|
|
145
|
+
done.
|
|
153
146
|
|
|
154
147
|
## What it deliberately does NOT do
|
|
155
148
|
|
|
@@ -172,7 +165,5 @@ import { definePolicy } from '@geonosis/policy' // ESM, module: Node16 or E
|
|
|
172
165
|
const { definePolicy } = require('@geonosis/policy') // CommonJS
|
|
173
166
|
```
|
|
174
167
|
|
|
175
|
-
An ESM-only package is a wall for such a backend
|
|
176
|
-
|
|
177
|
-
import is TS1479 and `await import()` cannot serve the synchronous `describe()` registration its 107
|
|
178
|
-
suites are built on.
|
|
168
|
+
An ESM-only package is a wall for such a backend; [the testbed's README](../testbed/README.md#consumable-from-commonjs)
|
|
169
|
+
has the measurement.
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@geonosis/policy",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.7.0",
|
|
4
4
|
"types": "./dist/index.d.ts",
|
|
5
5
|
"description": "A threshold is a value plus the authority that set it, the subject it reaches and the reason it exists. The precedence lattice, the rule → config → constant read with its fallback journalled once per boot, the learning loop, the generated policy prose, and a permission lattice with the runtime lifted out.",
|
|
6
6
|
"keywords": [
|