@astrale-os/kernel-core 1.0.0-beta.1 → 1.0.0-beta.2

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.
@@ -12,5 +12,8 @@ export function authorityRelation(target, role, description) {
12
12
  target: { as: role, accepts: [target], incoming: '0..*' },
13
13
  description,
14
14
  extends: [Edge],
15
+ // The installed authority map is observed through Identity.can, never read wholesale: only the
16
+ // Kernel Domain and Root read its Edges.
17
+ policies: { read: false, traverse: false },
15
18
  });
16
19
  }
@@ -11,12 +11,14 @@ const nodeId = {
11
11
  // mutation cannot create an Execution, change its Properties or rewrite its created_by Edge; its
12
12
  // authority Domain deletes it by ordinary mutation. `function` is a scalar, not an Edge, so deleting
13
13
  // the Function never has to detach its Executions. State and outcome are read through the engine.
14
- // No Class Policy: Runtime admits every Execution method against these facts, and a relational
15
- // read Policy here would join every polymorphic Query reaching Node or Timestamped.
14
+ // Runtime admits every Execution method against these facts; a public read sees none of them, since
15
+ // `input` carries the arguments of the call. The constant rule joins nothing, where a relational
16
+ // read Policy would join every polymorphic Query reaching Node or Timestamped.
16
17
  export const Execution = nodeClass({
17
18
  abstract: false,
18
19
  description: 'One accepted durable call of a Function, recorded as immutable facts.',
19
20
  extends: [Node, Timestamped],
21
+ policies: { read: false, traverse: false },
20
22
  properties: {
21
23
  function: nodeId,
22
24
  version: { type: 'string', fullMatch: 'sha256:[0-9a-f]{64}' },
@@ -8832,38 +8832,24 @@ export declare const KernelRootFunctions: readonly ((import("@astrale-os/kernel-
8832
8832
  };
8833
8833
  readonly key: "kernel.astrale.ai:function.install";
8834
8834
  readonly execution: undefined;
8835
- }) | (import("@astrale-os/kernel-dsl/v1").ResolvedFunction<{
8836
- invocation?: {
8837
- source: string;
8838
- id: string;
8839
- } | undefined;
8840
- topics?: {
8841
- exact?: string[] | undefined;
8842
- prefixes?: string[] | undefined;
8843
- } | undefined;
8844
- principal?: string | undefined;
8845
- since?: string | undefined;
8846
- until?: string | undefined;
8847
- cursor?: string | undefined;
8848
- limit?: number | undefined;
8849
- }, {
8835
+ }) | (import("@astrale-os/kernel-dsl/v1").ResolvedFunction<import("@astrale-os/kernel-dsl/v1").BinaryInputProjection<{
8836
+ mediaType: string;
8837
+ }>, {
8850
8838
  readonly mode: 'value';
8851
8839
  readonly value: {
8852
- records: unknown[];
8853
- frontier: {
8854
- id: string;
8855
- first?: number | undefined;
8856
- committed: number;
8857
- durable: number;
8840
+ receipt: string;
8841
+ ref: {
8842
+ digest: string;
8843
+ mediaType: string;
8844
+ size: number;
8858
8845
  };
8859
- cursor?: string | undefined;
8860
- gap?: unknown;
8846
+ expiresAt: string;
8861
8847
  };
8862
8848
  }, "authorized", import("@astrale-os/kernel-dsl/v1").CallablePolicy> & {
8863
- readonly ref: import("@astrale-os/kernel-dsl/v1").FunctionRef<"journal"> & {
8849
+ readonly ref: import("@astrale-os/kernel-dsl/v1").FunctionRef<"upload"> & {
8864
8850
  readonly origin: "kernel.astrale.ai";
8865
8851
  };
8866
- readonly key: "kernel.astrale.ai:function.journal";
8852
+ readonly key: "kernel.astrale.ai:function.upload";
8867
8853
  readonly execution: undefined;
8868
8854
  }) | (import("@astrale-os/kernel-dsl/v1").ResolvedFunction<{
8869
8855
  ast: {
@@ -9427,35 +9413,38 @@ export declare const KernelRootFunctions: readonly ((import("@astrale-os/kernel-
9427
9413
  };
9428
9414
  readonly key: "kernel.astrale.ai:function.uninstall";
9429
9415
  readonly execution: undefined;
9430
- }) | (import("@astrale-os/kernel-dsl/v1").ResolvedFunction<import("@astrale-os/kernel-dsl/v1").BinaryInputProjection<{
9431
- mediaType: string;
9432
- }>, {
9416
+ }) | (import("@astrale-os/kernel-dsl/v1").ResolvedFunction<{
9417
+ invocation?: {
9418
+ source: string;
9419
+ id: string;
9420
+ } | undefined;
9421
+ topics?: {
9422
+ exact?: string[] | undefined;
9423
+ prefixes?: string[] | undefined;
9424
+ } | undefined;
9425
+ principal?: string | undefined;
9426
+ since?: string | undefined;
9427
+ until?: string | undefined;
9428
+ cursor?: string | undefined;
9429
+ limit?: number | undefined;
9430
+ }, {
9433
9431
  readonly mode: 'value';
9434
9432
  readonly value: {
9435
- receipt: string;
9436
- ref: {
9437
- digest: string;
9438
- mediaType: string;
9439
- size: number;
9433
+ records: unknown[];
9434
+ frontier: {
9435
+ id: string;
9436
+ first?: number | undefined;
9437
+ committed: number;
9438
+ durable: number;
9440
9439
  };
9441
- expiresAt: string;
9440
+ cursor?: string | undefined;
9441
+ gap?: unknown;
9442
9442
  };
9443
9443
  }, "authorized", import("@astrale-os/kernel-dsl/v1").CallablePolicy> & {
9444
- readonly ref: import("@astrale-os/kernel-dsl/v1").FunctionRef<"upload"> & {
9444
+ readonly ref: import("@astrale-os/kernel-dsl/v1").FunctionRef<"journal"> & {
9445
9445
  readonly origin: "kernel.astrale.ai";
9446
9446
  };
9447
- readonly key: "kernel.astrale.ai:function.upload";
9448
- readonly execution: undefined;
9449
- }) | (import("@astrale-os/kernel-dsl/v1").ResolvedMethod<{
9450
- audience?: string | undefined;
9451
- ttlSeconds: number;
9452
- identity: string;
9453
- }, {
9454
- readonly mode: 'value';
9455
- readonly value: string;
9456
- }, true, false, "authorized", import("@astrale-os/kernel-dsl/v1").CallablePolicy, "kernel.astrale.ai:class.Identity.method.impersonate"> & {
9457
- readonly name: "impersonate";
9458
- readonly executable: true;
9447
+ readonly key: "kernel.astrale.ai:function.journal";
9459
9448
  readonly execution: undefined;
9460
9449
  }) | (import("@astrale-os/kernel-dsl/v1").ResolvedMethod<{
9461
9450
  iss: string;
@@ -9516,6 +9505,17 @@ export declare const KernelRootFunctions: readonly ((import("@astrale-os/kernel-
9516
9505
  readonly name: "resolve";
9517
9506
  readonly executable: true;
9518
9507
  readonly execution: undefined;
9508
+ }) | (import("@astrale-os/kernel-dsl/v1").ResolvedMethod<{
9509
+ audience?: string | undefined;
9510
+ ttlSeconds: number;
9511
+ identity: string;
9512
+ }, {
9513
+ readonly mode: 'value';
9514
+ readonly value: string;
9515
+ }, true, false, "authorized", import("@astrale-os/kernel-dsl/v1").CallablePolicy, "kernel.astrale.ai:class.Identity.method.impersonate"> & {
9516
+ readonly name: "impersonate";
9517
+ readonly executable: true;
9518
+ readonly execution: undefined;
9519
9519
  }))[];
9520
9520
  export { AuthorityOperationOrder, AuthorityOperations, operationOf } from '../authority/index.js';
9521
9521
  export type { AuthorityOperation, AuthorityRelation } from '../authority/index.js';
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@astrale-os/kernel-core",
3
- "version": "1.0.0-beta.1",
3
+ "version": "1.0.0-beta.2",
4
4
  "description": "Astrale Kernel Core - Types, Invariants, and Pure Logic",
5
5
  "license": "Apache-2.0",
6
6
  "repository": {
@@ -160,7 +160,7 @@
160
160
  "access": "public"
161
161
  },
162
162
  "dependencies": {
163
- "@astrale-os/kernel-dsl": "1.0.0-beta.1",
163
+ "@astrale-os/kernel-dsl": "1.0.0-beta.2",
164
164
  "@noble/hashes": "2.3.0",
165
165
  "@types/json-schema": "^7.0.15",
166
166
  "dequal": "2.0.3"