@lunora/advisor 1.0.0-alpha.294 → 1.0.0-alpha.295

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/dist/index.d.mts CHANGED
@@ -3294,8 +3294,8 @@ declare const commitOrderedHardDelete: Lint;
3294
3294
  * built one hop earlier from `args`), any caller can hand in another tenant's
3295
3295
  * key and reach that tenant's container instance. The fix is to derive the
3296
3296
  * key from a server-trusted identity (`` `${ctx.auth.userId}` ``) or a record
3297
- * the caller owns — a key that references `ctx` is treated as scoped and is
3298
- * not flagged. `.any()`/`.pool()` are not sinks (they take no key).
3297
+ * the caller owns. Only that identity, or a db read bound to it, scopes a key:
3298
+ * `ctx.env.PREFIX` is the same for every caller and does not. `.any()`/`.pool()` are not sinks (they take no key).
3299
3299
  *
3300
3300
  * Runs only when the codegen feeder supplies container key-access evidence
3301
3301
  * (`context.containerKeyAccesses`); a runtime caller flags nothing. One
@@ -3852,8 +3852,9 @@ declare const insertManyUnsafeUserData: Lint;
3852
3852
  * `args.*`, or a key built one hop earlier from `args`), any caller can hand in
3853
3853
  * another user's key and read, overwrite, or delete that user's entry. The fix is
3854
3854
  * to prefix every key with a server-trusted identity (`` `${ctx.auth.userId}:…` ``)
3855
- * so a caller can only ever address their own entries — a key that references
3856
- * `ctx` is treated as scoped and is not flagged. `list` is not a sink (it takes a
3855
+ * so a caller can only ever address their own entries. Only the caller's `ctx.auth`
3856
+ * identity, or a db read bound to it, scopes a key: a server-trusted value the same
3857
+ * for every caller (`ctx.env.PREFIX`) does not. `list` is not a sink (it takes a
3857
3858
  * prefix, not a per-entry key).
3858
3859
  *
3859
3860
  * Runs only when the codegen feeder supplies KV key-access evidence
@@ -4732,8 +4733,8 @@ declare const storageGenerateUploadUrlNoContentTypePin: Lint;
4732
4733
  * a key built one hop earlier from `args`), any caller can name any object — reading,
4733
4734
  * overwriting, or deleting another user's file. The fix is to prefix the key with a
4734
4735
  * server-trusted identity (`` `${ctx.auth.userId}/…` ``) or to resolve the object
4735
- * through a record the caller is known to own; a key that references `ctx` is treated
4736
- * as scoped and is not flagged.
4736
+ * through a record the caller is known to own. Only that identity, or a db read bound
4737
+ * to it, scopes a key: `ctx.env.PREFIX` is the same for every caller and does not.
4737
4738
  *
4738
4739
  * Runs only when the codegen feeder supplies storage-key evidence
4739
4740
  * (`context.storageKeyAccesses`); a runtime caller flags nothing. One finding per
@@ -5026,8 +5027,9 @@ declare const userCreatingMutationWithoutCaptcha: Lint;
5026
5027
  * value built one hop earlier from `args`), any caller can hand in another
5027
5028
  * tenant's namespace and read or poison that tenant's vectors. The fix is to
5028
5029
  * derive the namespace from a server-trusted identity (`` `${ctx.auth.orgId}` ``)
5029
- * so a caller can only ever address their own partition — a namespace that
5030
- * references `ctx` is treated as scoped and is not flagged.
5030
+ * so a caller can only ever address their own partition. Only the caller's
5031
+ * `ctx.auth` identity, or a database read bound to it, scopes a namespace: a
5032
+ * server-trusted value the same for every caller (`ctx.env.PREFIX`) does not.
5031
5033
  *
5032
5034
  * Runs only when the codegen feeder supplies vector-namespace evidence
5033
5035
  * (`context.vectorNamespaceAccesses`); a runtime caller flags nothing. One
package/dist/index.d.ts CHANGED
@@ -3294,8 +3294,8 @@ declare const commitOrderedHardDelete: Lint;
3294
3294
  * built one hop earlier from `args`), any caller can hand in another tenant's
3295
3295
  * key and reach that tenant's container instance. The fix is to derive the
3296
3296
  * key from a server-trusted identity (`` `${ctx.auth.userId}` ``) or a record
3297
- * the caller owns — a key that references `ctx` is treated as scoped and is
3298
- * not flagged. `.any()`/`.pool()` are not sinks (they take no key).
3297
+ * the caller owns. Only that identity, or a db read bound to it, scopes a key:
3298
+ * `ctx.env.PREFIX` is the same for every caller and does not. `.any()`/`.pool()` are not sinks (they take no key).
3299
3299
  *
3300
3300
  * Runs only when the codegen feeder supplies container key-access evidence
3301
3301
  * (`context.containerKeyAccesses`); a runtime caller flags nothing. One
@@ -3852,8 +3852,9 @@ declare const insertManyUnsafeUserData: Lint;
3852
3852
  * `args.*`, or a key built one hop earlier from `args`), any caller can hand in
3853
3853
  * another user's key and read, overwrite, or delete that user's entry. The fix is
3854
3854
  * to prefix every key with a server-trusted identity (`` `${ctx.auth.userId}:…` ``)
3855
- * so a caller can only ever address their own entries — a key that references
3856
- * `ctx` is treated as scoped and is not flagged. `list` is not a sink (it takes a
3855
+ * so a caller can only ever address their own entries. Only the caller's `ctx.auth`
3856
+ * identity, or a db read bound to it, scopes a key: a server-trusted value the same
3857
+ * for every caller (`ctx.env.PREFIX`) does not. `list` is not a sink (it takes a
3857
3858
  * prefix, not a per-entry key).
3858
3859
  *
3859
3860
  * Runs only when the codegen feeder supplies KV key-access evidence
@@ -4732,8 +4733,8 @@ declare const storageGenerateUploadUrlNoContentTypePin: Lint;
4732
4733
  * a key built one hop earlier from `args`), any caller can name any object — reading,
4733
4734
  * overwriting, or deleting another user's file. The fix is to prefix the key with a
4734
4735
  * server-trusted identity (`` `${ctx.auth.userId}/…` ``) or to resolve the object
4735
- * through a record the caller is known to own; a key that references `ctx` is treated
4736
- * as scoped and is not flagged.
4736
+ * through a record the caller is known to own. Only that identity, or a db read bound
4737
+ * to it, scopes a key: `ctx.env.PREFIX` is the same for every caller and does not.
4737
4738
  *
4738
4739
  * Runs only when the codegen feeder supplies storage-key evidence
4739
4740
  * (`context.storageKeyAccesses`); a runtime caller flags nothing. One finding per
@@ -5026,8 +5027,9 @@ declare const userCreatingMutationWithoutCaptcha: Lint;
5026
5027
  * value built one hop earlier from `args`), any caller can hand in another
5027
5028
  * tenant's namespace and read or poison that tenant's vectors. The fix is to
5028
5029
  * derive the namespace from a server-trusted identity (`` `${ctx.auth.orgId}` ``)
5029
- * so a caller can only ever address their own partition — a namespace that
5030
- * references `ctx` is treated as scoped and is not flagged.
5030
+ * so a caller can only ever address their own partition. Only the caller's
5031
+ * `ctx.auth` identity, or a database read bound to it, scopes a namespace: a
5032
+ * server-trusted value the same for every caller (`ctx.env.PREFIX`) does not.
5031
5033
  *
5032
5034
  * Runs only when the codegen feeder supplies vector-namespace evidence
5033
5035
  * (`context.vectorNamespaceAccesses`); a runtime caller flags nothing. One
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@lunora/advisor",
3
- "version": "1.0.0-alpha.294",
3
+ "version": "1.0.0-alpha.295",
4
4
  "description": "Schema & query lints (splinter-style advisors) for Lunora, feeding the Studio Advisors view",
5
5
  "keywords": [
6
6
  "advisor",