@adaptic/backend 0.0.1041 → 0.0.1042
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.
|
@@ -57,7 +57,29 @@ export declare const IR_MODELS: readonly EnhanceModelName[];
|
|
|
57
57
|
*
|
|
58
58
|
* Decorating them changes NO behaviour while the checker is in shadow — a
|
|
59
59
|
* would-deny is logged and counted and then allowed. What it changes is that
|
|
60
|
-
* the exposure becomes measurable.
|
|
60
|
+
* the exposure becomes measurable.
|
|
61
|
+
*
|
|
62
|
+
* `Fund` joined them on 2026-09-27, and it is the one admission that corrects a
|
|
63
|
+
* belief rather than adding a surface. The exposure is an unauthenticated
|
|
64
|
+
* request receiving HTTP 200 with every fund's P&L — measured on the deployed
|
|
65
|
+
* API by Sophie Nguyen at 02:42Z and independently by James Kirkland at
|
|
66
|
+
* 09:46:56Z, not inferred from the schema. `Fund` carries `aum`,
|
|
67
|
+
* `navPerShare` and `highWaterMarkNav`.
|
|
68
|
+
*
|
|
69
|
+
* The belief it corrects: this gap was being treated as something the
|
|
70
|
+
* `CORTEX_AUTHCHECKER_ENFORCE` flip would close. **It would not have.** `Fund`
|
|
71
|
+
* was in neither list, so its reads were never decorated, so the checker never
|
|
72
|
+
* ran for them — and per the paragraph above, a query the checker never runs
|
|
73
|
+
* for is a query it cannot even count. Waiting for the enforcement flip would
|
|
74
|
+
* have closed the four models here and left every fund's P&L answering to
|
|
75
|
+
* anyone, with nothing in the would-deny ratio to show it. Coverage and
|
|
76
|
+
* enforcement are separate axes and only one of them was being tracked.
|
|
77
|
+
*
|
|
78
|
+
* `FundAssignment` is a candidate and is deliberately NOT admitted here. It
|
|
79
|
+
* reveals which accounts belong to which fund, which is structural rather than
|
|
80
|
+
* P&L, and no anonymous probe of it has been run. Admitting it on inspection
|
|
81
|
+
* would break the criterion this list is built on — by measurement, not by
|
|
82
|
+
* reading the schema. Measure it, then admit it. Enforcement cannot be argued from a
|
|
61
83
|
* would-deny ratio that reflects only surfaces nobody ever authenticated to,
|
|
62
84
|
* and the measurement has to exist before the decision does.
|
|
63
85
|
*/
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"authorization-map.d.ts","sourceRoot":"","sources":["../../../src/auth/authorization-map.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;GA0BG;AAIH,OAAO,EAEL,KAAK,mBAAmB,EACzB,MAAM,iCAAiC,CAAC;AAIzC,yEAAyE;AACzE,KAAK,gBAAgB,GAAG,MAAM,mBAAmB,CAAC;AAElD;;;GAGG;AACH,eAAO,MAAM,SAAS,EAAE,SAAS,gBAAgB,EAMhD,CAAC;AAEF
|
|
1
|
+
{"version":3,"file":"authorization-map.d.ts","sourceRoot":"","sources":["../../../src/auth/authorization-map.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;GA0BG;AAIH,OAAO,EAEL,KAAK,mBAAmB,EACzB,MAAM,iCAAiC,CAAC;AAIzC,yEAAyE;AACzE,KAAK,gBAAgB,GAAG,MAAM,mBAAmB,CAAC;AAElD;;;GAGG;AACH,eAAO,MAAM,SAAS,EAAE,SAAS,gBAAgB,EAMhD,CAAC;AAEF;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAiDG;AACH,eAAO,MAAM,yBAAyB,EAAE,SAAS,gBAAgB,EAMhE,CAAC;AAmCF,mEAAmE;AACnE,MAAM,WAAW,uBAAuB;IACtC,yDAAyD;IACzD,QAAQ,CAAC,kBAAkB,EAAE,MAAM,CAAC;IACpC,oDAAoD;IACpD,QAAQ,CAAC,oBAAoB,EAAE,MAAM,CAAC;IACtC,4FAA4F;IAC5F,QAAQ,CAAC,kBAAkB,EAAE,MAAM,CAAC;IACpC,0EAA0E;IAC1E,QAAQ,CAAC,gBAAgB,EAAE,MAAM,CAAC;IAClC;;;;OAIG;IACH,QAAQ,CAAC,cAAc,EAAE,SAAS,MAAM,EAAE,CAAC;CAC5C;AAmBD,6DAA6D;AAC7D,UAAU,qBAAqB;IAC7B,QAAQ,CAAC,GAAG,EAAE,mBAAmB,CAAC;IAClC,QAAQ,CAAC,OAAO,EAAE,uBAAuB,CAAC;CAC3C;AAED;;;;;GAKG;AACH,wBAAgB,2BAA2B,IAAI,qBAAqB,CAoEnE;AAID;;;;;;;;;;;GAWG;AACH,wBAAgB,2BAA2B,IAAI,uBAAuB,CAcrE"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"authorization-map.js","sourceRoot":"","sources":["../../../src/auth/authorization-map.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;GA0BG;AAEH,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAC1C,OAAO,EAAE,MAAM,EAAE,MAAM,gBAAgB,CAAC;AACxC,OAAO,EACL,wBAAwB,GAEzB,MAAM,iCAAiC,CAAC;AACzC,OAAO,KAAK,cAAc,MAAM,iCAAiC,CAAC;AAClE,OAAO,EAAE,MAAM,EAAE,MAAM,iBAAiB,CAAC;AAKzC;;;GAGG;AACH,MAAM,CAAC,MAAM,SAAS,GAAgC;IACpD,UAAU;IACV,SAAS;IACT,qBAAqB;IACrB,kBAAkB;IAClB,aAAa;CACd,CAAC;AAEF
|
|
1
|
+
{"version":3,"file":"authorization-map.js","sourceRoot":"","sources":["../../../src/auth/authorization-map.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;;;;;;;;;;;;GA0BG;AAEH,OAAO,EAAE,UAAU,EAAE,MAAM,cAAc,CAAC;AAC1C,OAAO,EAAE,MAAM,EAAE,MAAM,gBAAgB,CAAC;AACxC,OAAO,EACL,wBAAwB,GAEzB,MAAM,iCAAiC,CAAC;AACzC,OAAO,KAAK,cAAc,MAAM,iCAAiC,CAAC;AAClE,OAAO,EAAE,MAAM,EAAE,MAAM,iBAAiB,CAAC;AAKzC;;;GAGG;AACH,MAAM,CAAC,MAAM,SAAS,GAAgC;IACp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,IAAI,OAAO,CAAC,cAAc,CAAC,MAAM,GAAG,CAAC,EAAE,CAAC;QACtC,MAAM,CAAC,IAAI,CACT,yGAAyG,EACzG,EAAE,cAAc,EAAE,OAAO,CAAC,cAAc,EAAE,CAC3C,CAAC;IACJ,CAAC;IACD,cAAc,GAAG,OAAO,CAAC;IACzB,OAAO,OAAO,CAAC;AACjB,CAAC"}
|
|
@@ -65,7 +65,29 @@ export const IR_MODELS = [
|
|
|
65
65
|
*
|
|
66
66
|
* Decorating them changes NO behaviour while the checker is in shadow — a
|
|
67
67
|
* would-deny is logged and counted and then allowed. What it changes is that
|
|
68
|
-
* the exposure becomes measurable.
|
|
68
|
+
* the exposure becomes measurable.
|
|
69
|
+
*
|
|
70
|
+
* `Fund` joined them on 2026-09-27, and it is the one admission that corrects a
|
|
71
|
+
* belief rather than adding a surface. The exposure is an unauthenticated
|
|
72
|
+
* request receiving HTTP 200 with every fund's P&L — measured on the deployed
|
|
73
|
+
* API by Sophie Nguyen at 02:42Z and independently by James Kirkland at
|
|
74
|
+
* 09:46:56Z, not inferred from the schema. `Fund` carries `aum`,
|
|
75
|
+
* `navPerShare` and `highWaterMarkNav`.
|
|
76
|
+
*
|
|
77
|
+
* The belief it corrects: this gap was being treated as something the
|
|
78
|
+
* `CORTEX_AUTHCHECKER_ENFORCE` flip would close. **It would not have.** `Fund`
|
|
79
|
+
* was in neither list, so its reads were never decorated, so the checker never
|
|
80
|
+
* ran for them — and per the paragraph above, a query the checker never runs
|
|
81
|
+
* for is a query it cannot even count. Waiting for the enforcement flip would
|
|
82
|
+
* have closed the four models here and left every fund's P&L answering to
|
|
83
|
+
* anyone, with nothing in the would-deny ratio to show it. Coverage and
|
|
84
|
+
* enforcement are separate axes and only one of them was being tracked.
|
|
85
|
+
*
|
|
86
|
+
* `FundAssignment` is a candidate and is deliberately NOT admitted here. It
|
|
87
|
+
* reveals which accounts belong to which fund, which is structural rather than
|
|
88
|
+
* P&L, and no anonymous probe of it has been run. Admitting it on inspection
|
|
89
|
+
* would break the criterion this list is built on — by measurement, not by
|
|
90
|
+
* reading the schema. Measure it, then admit it. Enforcement cannot be argued from a
|
|
69
91
|
* would-deny ratio that reflects only surfaces nobody ever authenticated to,
|
|
70
92
|
* and the measurement has to exist before the decision does.
|
|
71
93
|
*/
|
|
@@ -74,6 +96,7 @@ export const TENANT_SCOPED_READ_MODELS = [
|
|
|
74
96
|
'OrgMembership',
|
|
75
97
|
'User',
|
|
76
98
|
'AuditLog',
|
|
99
|
+
'Fund',
|
|
77
100
|
];
|
|
78
101
|
/**
|
|
79
102
|
* Action-name prefixes that MUTATE. Everything else on a generated CRUD
|
package/package.json
CHANGED